Glossary: C++ Beyond the Basics
Unique pointer
Also written: std::unique_ptr, unique_ptr, std::make_unique
`std::unique_ptr` is the single owner of a heap object and deletes it in its destructor. It is move-only, so `std::move` transfers ownership.
Glossary: C++ Beyond the Basics
Also written: std::unique_ptr, unique_ptr, std::make_unique
`std::unique_ptr` is the single owner of a heap object and deletes it in its destructor. It is move-only, so `std::move` transfers ownership.