Skip to content

Glossary: Algorithms Beyond the Basics in C++

std::unique_ptr

Also written: unique_ptr, make_unique, smart pointer

A smart pointer that owns what it points to and deletes it automatically. Each trie node owns its children this way, so there are no leaks and no `delete`.

Where the book teaches it

Related terms

nullptr