Skip to content

Glossary: C++ Beyond the Basics

Reference count

Also written: use_count

How many `std::shared_ptr`s point at one object. Copying adds one, destroying takes one away, and the object is deleted at zero.

Where the book teaches it

Related terms

Shared pointerWeak pointer