libycxx

class template

std::shared_ptr

Header
<memory>
Scope
std

Synopsis

template<class T>
class shared_ptr;

Member types

NameDeclaration
element_typetype alias · member type= remove_extent_t<T>
weak_typetype alias · member type= weak_ptr<T>

Member functions

NameDeclaration
shared_ptrconstructor · 15 overloadsshared_ptr() +14 more
~shared_ptrdestructor~shared_ptr()
operator=operator · 5 overloadsshared_ptr& operator=(const shared_ptr& r) +4 more
getmember functionelement_type* get() const
operator*operatoradd_lvalue_reference_t<T> operator*() const
operator->operatorT* operator->() const
operator[]operatoradd_lvalue_reference_t<element_type> operator[](ptrdiff_t i) const
owner_beforemember function template · 2 overloadsbool owner_before(const shared_ptr<U>& b) const +1 more
owner_equalmember function template · 2 overloadsbool owner_equal(const shared_ptr<U>& b) const +1 more
owner_hashmember functionsize_t owner_hash() const
resetmember function · 4 overloadsvoid reset() +3 more
swapmember functionvoid swap(shared_ptr& r)
use_countmember functionlong use_count() const
operator boolconversion functionoperator bool() const