What is the Rule of Zero?
- A Never write any classes
- B Design classes so that no user-defined destructor or copy or move operations are needed
- C Always define all five special members
- D Avoid using the standard library
Answer
Design classes so that no user-defined destructor or copy or move operations are needed
If every member manages itself, such as string, vector and unique_ptr, the compiler-generated special members are all correct.





