[#bsl-enable_shared_from_this-shared_from_this-0a2] = xref:bsl.adoc[bsl]::xref:bsl/enable_shared_from_this.adoc[enable_shared_from_this]::shared_from_this :relfileprefix: ../../ :mrdocs: `shared_from_this` overloads == Synopses Declared in `<bslstl_sharedptr.h>` Return a `shared_ptr` sharing ownership of this managed object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/shared_ptr-0a.adoc[bsl::shared_ptr<ELEMENT_TYPE>] xref:bsl/enable_shared_from_this/shared_from_this-0a9.adoc[shared_from_this](); ---- [.small]#xref:bsl/enable_shared_from_this/shared_from_this-0a9.adoc[_» more..._]# Return a const `shared_ptr` sharing ownership of this managed object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/shared_ptr-0a.adoc[bsl::shared_ptr<ELEMENT_TYPE const>] xref:bsl/enable_shared_from_this/shared_from_this-0ab.adoc[shared_from_this]() const; ---- [.small]#xref:bsl/enable_shared_from_this/shared_from_this-0ab.adoc[_» more..._]# == Return Value * shared pointer sharing ownership of this managed object * const shared pointer sharing ownership of this managed object [.small]#Created with https://www.mrdocs.com[MrDocs]#