Skip to content

Glossary: C++ Beyond the Basics

Shared pointer

Also written: std::shared_ptr, shared_ptr, std::make_shared

`std::shared_ptr` allows several owners of one object, keeping a reference count and deleting the object when the last owner goes.

Where the book teaches it

Related terms

Reference countUnique pointerWeak pointer