Software Engineering Folklore Codexery

Rule of three (C++ programming)

Last updated

In C++, the rule of three and rule of five are guidelines for writing exception-safe code and managing resources. They specify how to systematically use a class's default member functions to meet these objectives.

Quick Facts

Coined by
Marshall Cline
Year coined
1991
Also known as
law of the big three, the big three

Facts from the source article.

More in Software Engineering Folklore

Sources

Compiled from Wikipedia and the sources listed below. Text from Wikipedia is available under CC BY-SA 4.0; this entry is adapted from it.

Spotted an error? Know more?

Reader corrections go straight into our review queue. Suggest an edit · How this site is sourced

Comments

Loading…
Open in the interactive codex →