Answers for "rule of five c++ example"

C++
0

default rule of five c++

class X
{
public:
   X() = default;
   
   X(X const& other) = default;
   X& operator=(X const& other) = default;
   
   X(X&& other) = default;
   X& operator=(X&& other) = default;
   
   ~X() = default;
};
Posted by: Guest on March-05-2021

Browse Popular Code Answers by Language