Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 1.17 KB

special_members.md

File metadata and controls

28 lines (23 loc) · 1.17 KB

Special Member Functions in C++

?image https://cdn.discordapp.com/attachments/861906541823918101/877150143089098792/b2VBV.png

Special member functions in C++, such as constructors must be handled carefully to manage resources of a class. The C++ community has agreed on three guidelines:

Rule of Zero

?inline Nothing defined/explicitly defaulted. Class is an aggregate type.

Rule of Three

?inline

Rule of Five

?inline

Footer

?footer Red cells in the image are deprecated behaviour