Function call operators
Synopses
Declared in <bslstl_ownerequal.h>
Return true if x and y share the same ownership representation.
template<
class ELEMENT_TYPE_X,
class ELEMENT_TYPE_Y>
bool
operator()(
shared_ptr<ELEMENT_TYPE_X> const& x,
shared_ptr<ELEMENT_TYPE_Y> const& y) const noexcept;
Same as the preceding overload, comparing a shared_ptr to a weak_ptr.
template<
class ELEMENT_TYPE_X,
class ELEMENT_TYPE_Y>
bool
operator()(
shared_ptr<ELEMENT_TYPE_X> const& x,
weak_ptr<ELEMENT_TYPE_Y> const& y) const noexcept;
Return true if the address of the BloombergLP::bslma::SharedPtrRep object used by the specified x is equal to the address of the BloombergLP::bslma::SharedPtrRep object used by the specified y, and false otherwise.
template<
class ELEMENT_TYPE_X,
class ELEMENT_TYPE_Y>
bool
operator()(
weak_ptr<ELEMENT_TYPE_X> const& x,
shared_ptr<ELEMENT_TYPE_Y> const& y) const noexcept;
Return true if the address of the BloombergLP::bslma::SharedPtrRep object used by the specified x is equal to the address of the BloombergLP::bslma::SharedPtrRep object used by the specified y, and false otherwise.
template<
class ELEMENT_TYPE_X,
class ELEMENT_TYPE_Y>
bool
operator()(
weak_ptr<ELEMENT_TYPE_X> const& x,
weak_ptr<ELEMENT_TYPE_Y> const& y) const noexcept;
Created with MrDocs