[#bsl-weak_ptr-0d-owner_before-00] = xref:bsl.adoc[bsl]::xref:bsl/weak_ptr-0d.adoc[weak_ptr]::owner_before :relfileprefix: ../../ :mrdocs: Return whether this `weak_ptr` precedes `other` in owner order. == Synopses Declared in `<bslstl_sharedptr.h>` Return whether this `weak_ptr` precedes `other` in owner order. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ANY_TYPE> bool xref:bsl/weak_ptr-0d/owner_before-0a.adoc[owner_before](xref:bsl/shared_ptr-0a.adoc[shared_ptr<ANY_TYPE>] const& other) const noexcept; ---- [.small]#xref:bsl/weak_ptr-0d/owner_before-0a.adoc[_» more..._]# Return whether this `weak_ptr` precedes `other` in owner order. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ANY_TYPE> bool xref:bsl/weak_ptr-0d/owner_before-0e.adoc[owner_before](xref:bsl/weak_ptr-0d.adoc[weak_ptr<ANY_TYPE>] const& other) const noexcept; ---- [.small]#xref:bsl/weak_ptr-0d/owner_before-0e.adoc[_» more..._]# == Return Value `true` if this pointer's ownership identity precedes `other` == Parameters [cols="1,4"] |=== | Name| Description | *other* | other pointer to compare or share ownership with |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#