This class compares map keys with TreeNode objects using COMPARATOR.
Synopsis
Declared in <bslstl_mapcomparator.h>
template<
class KEY,
class VALUE,
class COMPARATOR>
class MapComparator;
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 a pair<KEY, VALUE>, using a functor of the parameterized COMPARATOR type.
Type Aliases
Member Functions
Name |
Description |
|
Constructors |
|
|
Function call operators |
|
Efficiently exchange the value of this object with the value of the specified |