Return true if the ownership of a is ordered before that of b.
Synopsis
Declared in <bslstl_ownerless.h>
bool
operator()(
weak_ptr<ELEMENT_TYPE> const& a,
shared_ptr<ELEMENT_TYPE> const& b) const noexcept;
Description
Return true if the address of the BloombergLP::bslma::SharedPtrRep object used by the specified a is ordered before the address of the BloombergLP::bslma::SharedPtrRep object used by the specified b under the total ordering supplied by std::less<BloombergLP::bslma::SharedPtrRep *>, and false otherwise.
Return Value
true if the ownership of a is ordered before that of b, otherwise false
Parameters
Name |
Description |
a |
first smart pointer to compare by ownership |
b |
second smart pointer to compare by ownership |
Created with MrDocs