The Big Three

The rule of three describes a practice that if a programmer explicitly defines any one of those three special member functions (destructor, copy constructor, copy assignment operator), then the programmer should explicitly define all three. For this reason, those three special member functions are sometimes called the big three. . A good practice is to always follow the rule of three and define the big three (destructor, copy constructor, copy assignment operator) if any one of these functions are defined.


Children
  1. Class Copy Constructor
  2. Copy Assignment Operator
  3. Deconstructors

Backlinks