Skip to content

Glossary: Software Design Patterns in C++

std::unique_ptr

Also written: unique_ptr, std::make_unique, smart pointer

A smart pointer that owns one object and deletes it automatically when the pointer goes away. Products, bundles and rule lists hold their parts this way.

Where the book teaches it

Related terms

std::moveSlice