bsl::weak_ptr::owner_equal

Return whether this pointer shares ownership with other.

Synopses

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...

Return Value

true if this pointer shares ownership with other

Parameters

NameDescription
otherother pointer to compare or share ownership with