libstdc++: std::enable_shared_from_this< _Tp > Class Template Reference (original) (raw)

#include <[memory](a00140%5Fsource.html)>

Public Member Functions
shared_ptr< _Tp > shared_from_this ()
shared_ptr< const _Tp > shared_from_this () const
weak_ptr< _Tp > weak_from_this () noexcept
weak_ptr< const _Tp > weak_from_this () const noexcept
Friends
const enable_shared_from_this * __enable_shared_from_this_base (const __shared_count<> &, const enable_shared_from_this *__p)
template<typename , _Lock_policy >
class __shared_ptr

template<typename _Tp>
class std::enable_shared_from_this< _Tp >

Base class allowing use of the member function shared_from_this.

Since

C++11

Definition at line 918 of file bits/shared_ptr.h.

enable_shared_from_this() [2/2]

~enable_shared_from_this()

operator=()

shared_from_this() [1/2]

shared_from_this() [2/2]

weak_from_this() [1/2]

Get a weak_ptr referring to the object that has *this as its base.

Since

C++17

Definition at line 950 of file bits/shared_ptr.h.

weak_from_this() [2/2]

Get a weak_ptr referring to the object that has *this as its base.

Since

C++17

Definition at line 946 of file bits/shared_ptr.h.

__enable_shared_from_this_base

__shared_ptr

template<typename _Tp >

template<typename , _Lock_policy >

friend class __shared_ptr friend

The documentation for this class was generated from the following file: