[#bsl-shared_ptr-0a-owner_before-0f] = xref:bsl.adoc[bsl]::xref:bsl/shared_ptr-0a.adoc[shared_ptr]::owner_before :relfileprefix: ../../ :mrdocs: `owner_before` overloads == Synopses Declared in `<bslstl_sharedptr.h>` Return `true` if this shared pointer precedes `other` in owner order. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ANY_TYPE> bool xref:bsl/shared_ptr-0a/owner_before-02.adoc[owner_before](xref:bsl/shared_ptr-0a.adoc[shared_ptr<ANY_TYPE>] const& other) const noexcept; ---- [.small]#xref:bsl/shared_ptr-0a/owner_before-02.adoc[_» more..._]# Return `true` if the address of the `BloombergLP::bslma::SharedPtrRep` object used by this shared pointer is ordered before the address of the `BloombergLP::bslma::SharedPtrRep` object used by the specified `other` shared pointer under the total ordering defined by `std::less<BloombergLP::bslma::SharedPtrRep *>`, and `false` otherwise. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ANY_TYPE> bool xref:bsl/shared_ptr-0a/owner_before-0d.adoc[owner_before](xref:bsl/weak_ptr-0d.adoc[weak_ptr<ANY_TYPE>] const& other) const noexcept; ---- [.small]#xref:bsl/shared_ptr-0a/owner_before-0d.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#