Return the key‐comparison functor used by this map.

Synopsis

Declared in <bslstl_map.h>

Description

Return the key‐comparison functor (or function pointer) used by this map; if a comparator was supplied at construction, return its value; otherwise, return a default constructed key_compare object. Note that this comparator compares objects of type KEY, which is the key part of the value_type objects contained in this map.

Return Value

copy of the key‐comparison functor

Created with MrDocs