Definition at line 485 of file boost_shared_ptr.h.
shared_ptr | ( | ) | [inline] |
Construct an empty shared_ptr.
Definition at line 496 of file boost_shared_ptr.h.
Referenced by shared_ptr::operator=(), and shared_ptr::reset().
shared_ptr | ( | _Tp1 * | __p | ) | [inline, explicit] |
Construct a shared_ptr that owns the pointer p.
p | A pointer that is convertible to element_type*. |
std::bad_alloc,in | which case delete p is called. |
Definition at line 506 of file boost_shared_ptr.h.
References __glibcxx_function_requires.
shared_ptr | ( | _Tp1 * | __p, | |
_Deleter | __d | |||
) | [inline] |
Construct a shared_ptr that owns the pointer p and the deleter d.
p | A pointer. | |
d | A deleter. |
std::bad_alloc,in | which case d(p) is called. |
Definition at line 528 of file boost_shared_ptr.h.
References __glibcxx_function_requires.
shared_ptr | ( | const shared_ptr< _Tp1 > & | __r | ) | [inline] |
If r is empty, constructs an empty shared_ptr; otherwise construct a shared_ptr that shares ownership with r.
r | A shared_ptr. |
std::bad_alloc,in | which case |
Definition at line 546 of file boost_shared_ptr.h.
References __glibcxx_function_requires.
shared_ptr | ( | const weak_ptr< _Tp1 > & | __r | ) | [inline, explicit] |
Constructs a shared_ptr that shares ownership with r and stores a copy of the pointer stored in r.
r | A weak_ptr. |
bad_weak_ptr | when r.expired(), in which case the constructor has no effect. |
Definition at line 560 of file boost_shared_ptr.h.
References __glibcxx_function_requires, and weak_ptr::_M_ptr.
shared_ptr | ( | std::auto_ptr< _Tp1 > & | __r | ) | [inline, explicit] |
Definition at line 573 of file boost_shared_ptr.h.
References auto_ptr::get().