Skip to content

Glossary: C++ Basics

new and delete

Also written: new, delete

Older C++ keywords: `new` makes a value that lives until you `delete` it. Forgetting `delete` causes a memory leak, and modern C++ avoids both.

Where the book teaches it

Related terms

Memory leakRAII