Return whether this pointer shares ownership with other.
Declared in <bslstl_sharedptr.h>
Return whether this pointer shares ownership with other.
template<class ANY_TYPE>
bool
owner_equal(shared_ptr<ANY_TYPE> const& other) const noexcept;
» more...
Return whether this pointer shares ownership with other.
template<class ANY_TYPE>
bool
owner_equal(weak_ptr<ANY_TYPE> const& other) const noexcept;
» more...
true if this pointer shares ownership with other
| Name | Description |
|---|---|
| other | other pointer to compare or share ownership with |