.TH "std::enable_shared_from_this< _Tp >" 3cxx "Thu Feb 16 2023" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::enable_shared_from_this< _Tp > \- Base class allowing use of member function shared_from_this\&. .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 .ti -1c .RI "\fBweak_ptr\fP< const _Tp > \fBweak_from_this\fP () const noexcept" .br .ti -1c .RI "\fBweak_ptr\fP< _Tp > \fBweak_from_this\fP () noexcept" .br .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 member function shared_from_this\&. .PP Definition at line \fB792\fP of file \fBbits/shared_ptr\&.h\fP\&. .SH "Constructor & Destructor Documentation" .PP .SS "template constexpr \fBstd::enable_shared_from_this\fP< _Tp >::enable_shared_from_this ()\fC [inline]\fP, \fC [constexpr]\fP, \fC [protected]\fP, \fC [noexcept]\fP" .PP Definition at line \fB795\fP of file \fBbits/shared_ptr\&.h\fP\&. .SS "template \fBstd::enable_shared_from_this\fP< _Tp >::enable_shared_from_this (const \fBenable_shared_from_this\fP< _Tp > &)\fC [inline]\fP, \fC [protected]\fP, \fC [noexcept]\fP" .PP Definition at line \fB797\fP of file \fBbits/shared_ptr\&.h\fP\&. .SS "template \fBstd::enable_shared_from_this\fP< _Tp >::~\fBenable_shared_from_this\fP ()\fC [inline]\fP, \fC [protected]\fP" .PP Definition at line \fB803\fP of file \fBbits/shared_ptr\&.h\fP\&. .SH "Member Function Documentation" .PP .SS "template \fBenable_shared_from_this\fP & \fBstd::enable_shared_from_this\fP< _Tp >::operator= (const \fBenable_shared_from_this\fP< _Tp > &)\fC [inline]\fP, \fC [protected]\fP, \fC [noexcept]\fP" .PP Definition at line \fB800\fP of file \fBbits/shared_ptr\&.h\fP\&. .SS "template \fBshared_ptr\fP< _Tp > \fBstd::enable_shared_from_this\fP< _Tp >::shared_from_this ()\fC [inline]\fP" .PP Definition at line \fB807\fP of file \fBbits/shared_ptr\&.h\fP\&. .SS "template \fBshared_ptr\fP< const _Tp > \fBstd::enable_shared_from_this\fP< _Tp >::shared_from_this () const\fC [inline]\fP" .PP Definition at line \fB811\fP of file \fBbits/shared_ptr\&.h\fP\&. .SS "template \fBweak_ptr\fP< const _Tp > \fBstd::enable_shared_from_this\fP< _Tp >::weak_from_this () const\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB821\fP of file \fBbits/shared_ptr\&.h\fP\&. .SS "template \fBweak_ptr\fP< _Tp > \fBstd::enable_shared_from_this\fP< _Tp >::weak_from_this ()\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB817\fP of file \fBbits/shared_ptr\&.h\fP\&. .SH "Friends And Related Function Documentation" .PP .SS "template const \fBenable_shared_from_this\fP * __enable_shared_from_this_base (const __shared_count<> &, const \fBenable_shared_from_this\fP< _Tp > * __p)\fC [friend]\fP" .PP Definition at line \fB833\fP of file \fBbits/shared_ptr\&.h\fP\&. .SS "template template friend class __shared_ptr\fC [friend]\fP" .PP Definition at line \fB838\fP of file \fBbits/shared_ptr\&.h\fP\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.