.TH "std::enable_shared_from_this< _Tp >" 3 "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::enable_shared_from_this< _Tp > \- Base class allowing use of the member function \fRshared_from_this\fP\&. .SH SYNOPSIS .br .PP .PP \fR#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 class \fB__shared_ptr\fP" .br .in -1c .SH "Detailed Description" .PP .SS "template .br class std::enable_shared_from_this< _Tp >"Base class allowing use of the member function \fRshared_from_this\fP\&. .PP \fBSince\fP .RS 4 C++11 .RE .PP .SH "Member Function Documentation" .PP .SS "template \fBweak_ptr\fP< const _Tp > \fBstd::enable_shared_from_this\fP< _Tp >::weak_from_this () const\fR [inline]\fP, \fR [noexcept]\fP" Get a \fRweak_ptr\fP referring to the object that has \fR*this\fP as its base\&. .PP \fBSince\fP .RS 4 C++17 .RE .PP .SS "template \fBweak_ptr\fP< _Tp > \fBstd::enable_shared_from_this\fP< _Tp >::weak_from_this ()\fR [inline]\fP, \fR [noexcept]\fP" Get a \fRweak_ptr\fP referring to the object that has \fR*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\&.