stl:set:key_comp

C++ Reference

key_comp

Syntax:

    #include <set>
    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