public member function
<memory>
shared_ptr <T> shared_from_this();
shared_ptr <const T> shared_from_this() const;
Get shared_ptr from *this
Constructs and returns a shared_ptr object pointing to *this and sharing ownership with existing shared_ptr objects.
See also
- enable_shared_from_this
- Enable shared_from_this (class template
)