keyComparator overloads

Synopses

Declared in <bslstl_mapcomparator.h>

Return a reference providing modifiable access to the function pointer or functor to which this comparator delegates comparison operations.

COMPARATOR&
keyComparator();

Return a reference providing non‐modifiable access to the function pointer or functor to which this comparator delegates comparison operations.

COMPARATOR const&
keyComparator() const;

Return Value

  • modifiable reference to the key comparator

  • non‐modifiable reference to the key comparator

Created with MrDocs