Defined Terms
allocator Library class that allocates unconstructed memory.
dangling pointer A pointer that refers to memory that once had an object but no longer does. Program errors due to dangling pointers are notoriously difficult to debug.
delete Frees memory allocated by new. delete p frees the object and delete [] p frees the array to which p points. p may be null or point to memory allocated by new.
deleter Function passed to a smart pointer to use in place of delete when destroying the object to which the pointer is bound.
destructor Special member function that cleans up an object when the object goes out of scope or is deleted.
dynamically allocated Object that is allocated on the free store. Objects allocated on the free store exist ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access