Windows Dev Center

The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.


A type that provides a function object that can compare two sort keys to determine the relative order of two elements in the map.

typedef Traits key_compare;

key_compare is a synonym for the template parameter Traits.

For more information on Traits see the map Class topic.

See example for key_comp for an example of how to declare and use key_compare.

Header: <map>

Namespace: std

Community Additions

© 2015 Microsoft