The rule of 5 states that if a class has a user-declared destructor, copy constructor, copy assignment constructor, move constructor, or move assignment constructor, then it must have the other 4.
sandhyamini Answered question December 16, 2023
Not a member yet? Register now
Are you a member? Login now