.TH "std::enable_shared_from_this< _Tp >" 3cxx "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::enable_shared_from_this< _Tp > \- Base class allowing use of the member function \fCshared_from_this\fP\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBshared_ptr\fP< _Tp > \fBshared_from_this\fP ()" .br .ti -1c .RI "\fBshared_ptr\fP< const _Tp > \fBshared_from_this\fP () const" .br .in -1c .PP .RI "\fB\fP" .br .in +1c .in +1c .ti -1c .RI "\fBweak_ptr\fP< _Tp > \fBweak_from_this\fP () noexcept" .br .ti -1c .RI "\fBweak_ptr\fP< const _Tp > \fBweak_from_this\fP () const noexcept" .br .in -1c .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "\fBenable_shared_from_this\fP (const \fBenable_shared_from_this\fP &) noexcept" .br .ti -1c .RI "\fBenable_shared_from_this\fP & \fBoperator=\fP (const \fBenable_shared_from_this\fP &) noexcept" .br .in -1c .SS "Friends" .in +1c .ti -1c .RI "const \fBenable_shared_from_this\fP * \fB__enable_shared_from_this_base\fP (const __shared_count<> &, const \fBenable_shared_from_this\fP *__p)" .br .ti -1c .RI "template<\fBtypename\fP , _Lock_policy > \fBclass\fP \fB__shared_ptr\fP" .br .in -1c .SH "Detailed Description" .PP .SS "template<\fBtypename\fP _Tp> .br class std::enable_shared_from_this< _Tp >"Base class allowing use of the member function \fCshared_from_this\fP\&. .PP \fBSince\fP .RS 4 C++11 .RE .PP .SH "Member Function Documentation" .PP .SS "template<\fBtypename\fP _Tp > \fBweak_ptr\fP< const _Tp > \fBstd::enable_shared_from_this\fP< _Tp >::weak_from_this () const\fC [inline]\fP, \fC [noexcept]\fP" Get a \fCweak_ptr\fP referring to the object that has \fC*this\fP as its base\&. .PP \fBSince\fP .RS 4 C++17 .RE .PP .SS "template<\fBtypename\fP _Tp > \fBweak_ptr\fP< _Tp > \fBstd::enable_shared_from_this\fP< _Tp >::weak_from_this ()\fC [inline]\fP, \fC [noexcept]\fP" Get a \fCweak_ptr\fP referring to the object that has \fC*this\fP as its base\&. .PP \fBSince\fP .RS 4 C++17 .RE .PP .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.