Skip to content

Glossary: C++ Beyond the Basics

= default and = delete

Also written: = default, = delete

`= default` asks for the compiler's version of a special member, and `= delete` forbids it. Deleting both copy operations makes a move-only type.

Where the book teaches it

Related terms

Move-onlyRule of zero