##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::multiset::key_comp

From cppreference.com
< cpp‎ | container‎ | multiset

[edit template]

key_compare key_comp() const; |  |

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

### [edit] Parameters

(none)

### [edit] Return value

The key comparison function object.

### [edit] Complexity

Constant.

### [edit] See also

value_comp | returns the function that compares keys in objects of type value_type (public member function) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/container/multiset/key_comp&oldid=50611"