BloombergLP::bslstl::SetComparator

Comparator for TreeNode objects and lookup keys.

Synopsis

Declared in <bslstl_setcomparator.h>

template<
    class KEY,
    class COMPARATOR>
class SetComparator;

Description

This class overloads the function-call operator to compare a referenced bslalg::RbTreeNode object with a object of the parameterized KEY type, assuming the reference to bslalg::RbTreeNode is a base of a bslstl::TreeNode holding an integer, using a functor of the parameterized COMPARATOR type.

Type Aliases

NameDescription
NodeType This alias represents the type of node holding a KEY object.

Member Functions

NameDescription
SetComparator [constructor]Constructors
keyComparator keyComparator overloads
operator() Function call operators
swap Efficiently exchange the value of this object with the value of the specified other object. This method provides the no-throw exception-safety guarantee.

Non-Member Functions

NameDescription
swapEfficiently exchange the values of the specified a and b objects. This function provides the no-throw exception-safety guarantee.