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.
Glossary: C++ Beyond the Basics
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.