Function-object type that orders two pointers by the ownership of their shared/weak pointer objects rather than by the pointer addresses.
Declared in <bslstl_ownerless.h>
template<class POINTER_TYPE = void>
struct owner_less;
| Name | Description |
|---|---|
owner_less<void> | Transparent specialization of owner_less for heterogeneous ownership comparison of shared_ptr and weak_ptr. |
owner_less<shared_ptr<ELEMENT_TYPE>> | Specialization of owner_less that orders shared_ptr objects by ownership. |
owner_less<weak_ptr<ELEMENT_TYPE>> | Specialization of owner_less that orders weak_ptr objects by ownership. |