The Standard C++ and Boost Libraries
Smart Pointers API Specification

Smart Pointers API Specification

Table of Contents

API Description

 


API Description

The smart pointer library provides five smart pointer class templates:

Smart Pointer Description
scoped_ptr Simple sole ownership of single objects. Non-copyable.
scoped_array Simple sole ownership of arrays. Non-copyable.
shared_ptr Object ownership shared among multiple pointers
shared_array Array ownership shared among multiple pointers.
weak_ptr Non-owning observers of an object owned by shared_ptr.
intrusive_ptr Shared ownership of objects with an embedded reference count.

These templates are designed to complement the std::auto_ptr template.

Give feedback of this article


Back to top


Copyright ©2008 Nokia Corporation. All rights reserved. This documentation can be used in the connection with this Product to help and support the user.