[#bsl-weak_ptr-0d-owner_equal-0e] = xref:bsl.adoc[bsl]::xref:bsl/weak_ptr-0d.adoc[weak_ptr]::owner_equal :relfileprefix: ../../ :mrdocs: Return whether this pointer shares ownership with `other`. == Synopsis Declared in `<bslstl_sharedptr.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ANY_TYPE> bool owner_equal(xref:bsl/weak_ptr-0d.adoc[weak_ptr<ANY_TYPE>] const& other) const noexcept; ---- == Description Return `true` if the address of the `BloombergLP::bslma::SharedPtrRep` object used by this weak pointer is equal to the address of the `BloombergLP::bslma::SharedPtrRep` object used by the specified `other` weak pointer, and `false` otherwise. == Return Value `true` if this pointer shares ownership with `other` == Parameters [cols="1,4"] |=== | Name| Description | *other* | other pointer to compare or share ownership with |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#