Return whether this weak_ptr precedes other in owner order.
Synopses
Declared in <bslstl_sharedptr.h>
Return whether this weak_ptr precedes other in owner order.
template<class ANY_TYPE>
bool
owner_before(shared_ptr<ANY_TYPE> const& other) const noexcept;
Return whether this weak_ptr precedes other in owner order.
template<class ANY_TYPE>
bool
owner_before(weak_ptr<ANY_TYPE> const& other) const noexcept;
Return Value
true if this pointer's ownership identity precedes other
Parameters
Name |
Description |
other |
other pointer to compare or share ownership with |
Created with MrDocs