cppreference.com > C++ Maps > key_comp
key_comp
Syntax:
  key_compare key_comp() const;

The function key_comp() returns the function that compares keys.

key_comp() runs in constant time.