libstdc++
Pointer Abstractions
Collaboration diagram for Pointer Abstractions:

Classes

Functions


Detailed Description

Smart pointers, etc.


Function Documentation

template<typename _Tp , typename _Alloc , typename... _Args>
shared_ptr<_Tp> std::allocate_shared ( const _Alloc &  __a,
_Args &&...  __args 
) [inline]

Create an object that is owned by a shared_ptr.

Parameters:
__aAn allocator.
__argsArguments for the _Tp object's constructor.
Returns:
A shared_ptr that owns the newly created object.
Exceptions:
Anexception thrown from _Alloc::allocate or from the constructor of _Tp.

A copy of __a will be used to allocate memory for the shared_ptr and the new object.

Definition at line 596 of file shared_ptr.h.

template<typename _Del , typename _Tp , _Lock_policy _Lp>
_Del* std::get_deleter ( const __shared_ptr< _Tp, _Lp > &  __p) [inline]

2.2.3.10 shared_ptr get_deleter (experimental)

Definition at line 76 of file shared_ptr.h.

template<typename _Tp , typename... _Args>
shared_ptr<_Tp> std::make_shared ( _Args &&...  __args) [inline]

Create an object that is owned by a shared_ptr.

Parameters:
__argsArguments for the _Tp object's constructor.
Returns:
A shared_ptr that owns the newly created object.
Exceptions:
std::bad_alloc,oran exception thrown from the constructor of _Tp.

Definition at line 611 of file shared_ptr.h.

template<typename _Ch , typename _Tr , typename _Tp , _Lock_policy _Lp>
std::basic_ostream<_Ch, _Tr>& std::operator<< ( std::basic_ostream< _Ch, _Tr > &  __os,
const __shared_ptr< _Tp, _Lp > &  __p 
) [inline]

2.2.3.7 shared_ptr I/O

Definition at line 66 of file shared_ptr.h.