How To Achieve Rule Of Zero

2020-04-13

We have all heard about the the rule of Five and rule of Zero when it comes to C++ programming. The latter says to avoid implementing any special function as much as possible. When we talk about special member functions, we refer to:

  1. Copy constructor
  2. Copy assignment operator
  3. Move constructor
  4. Move assignment operator
  5. Destructor

Hmm, sounds like a good plan to avoid them, but how? Well, there are a few guidelines that we can follow to achieve that.

Enjoy, coding and never forget that practise is the only way to improve your skills!

References from: