rule of five
A resource-managing class defines destructor, copy, and move operations together.
The rule of five extends the rule of three with the move constructor and move assignment operator: declaring any of the five suppresses or changes the others, so declare all five deliberately.
See also