Specialization of owner_less that orders shared_ptr objects by ownership.

Synopsis

Declared in <bslstl_ownerless.h>

template<class ELEMENT_TYPE>
struct owner_less<shared_ptr<ELEMENT_TYPE>>;

Type Aliases

Name

Description

first_argument_type

This typedef is an alias to the first argument type of operator().

result_type

This typedef is an alias to the result type of operator().

second_argument_type

This typedef is an alias to the second argument type of operator().

Member Functions

Name

Description

operator()

Return true if the ownership of a is ordered before that of b.

Created with MrDocs