key_comp

Syntax:

    #include <map>
    key_compare key_comp() const;

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

key_comp() runs in constant time.

Related Topics: value_comp