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


ŠNokia 2008

Back to top


This material, including documentation and any related computer programs, is protected by copyright controlled by Nokia. All rights are reserved. Copying, including reproducing, storing, adapting or translating, any or all of this material requires the prior written consent of Nokia. This material also contains confidential information, which may not be disclosed to others without the prior written consent of Nokia.

Nokia is a registered trademark of Nokia Corporation. S60 and logo is a trademark of Nokia Corporation. Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. Other company and product names mentioned herein may be trademarks or tradenames of their respective owners.