bsl::weak_ptr::owner_hash

Return an unspecified value such that, for any object x where owner_equal(x) is true, owner_hash() == x.owner_hash() is true. Note that this is based on the hash of the address of the BloombergLP::bslma::SharedPtrRep object used by this object. Note also that for two empty smart pointers x and y, x.owner_hash() == y.owner_hash() is true.

Synopsis

Declared in <bslstl_sharedptr.h>

std::size_t
owner_hash() const noexcept;