[#bsl-weak_ptr-0d-owner_before-0a] = xref:bsl.adoc[bsl]::xref:bsl/weak_ptr-0d.adoc[weak_ptr]::owner_before :relfileprefix: ../../ :mrdocs: Return `true` if this weak pointer precedes `other` in owner order. == Synopsis Declared in `<bslstl_sharedptr.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ANY_TYPE> bool owner_before(xref:bsl/shared_ptr-0a.adoc[shared_ptr<ANY_TYPE>] const& other) const noexcept; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#