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
Name |
Description |
This alias represents the type of node holding a |
Member Functions
Name |
Description |
|
Constructors |
|
|
Function call operators |
|
Efficiently exchange the value of this object with the value of the specified |