std::map::key_comp

std::map::key_comp

key_compare key_comp() const;

Returns the function object that compares the keys, which is a copy of this container's constructor argument comp.

Parameters

(none).

Return value

The key comparison function object.

Complexity

Constant.

See also

returns the function that compare