Rule of three (C++ programming)

The rule of three and rule of five are rules of thumb in C++ for the building of exception-safe code and for formalizing rules on resource management. The rules prescribe how the default members of a class should be used to achieve these goals systematically.

Source: Wikipedia — Rule of three (C++ programming) (CC BY-SA 4.0)

Rule of three (C++ programming)

The rule of three and rule of five are rules of thumb in C++ for the building of exception-safe code and for formalizing rules on resource management. The rules prescribe how the default members of a class should be used to achieve these goals systematically.

Source: Wikipedia "Rule of three (C++ programming)" · CC BY-SA 4.0

Share this article: X · Bluesky
Privacy Policy