Return whether this pointer shares ownership with other.
Declared in <bslstl_sharedptr.h>
template<class ANY_TYPE>
bool
owner_equal(shared_ptr<ANY_TYPE> const& other) const noexcept;
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 shared pointer, and false otherwise.
true if this pointer shares ownership with other
| Name | Description |
|---|---|
| other | other pointer to compare or share ownership with |