Windows apps
Collapse the table of content
Expand the table of content
Information
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.
We recommend using Visual Studio 2017

<map>

 

The latest version of this topic can be found at <map>.

Defines the container template classes map and multimap and their supporting templates.

#include <map>  
  

Operators

Map versionMultimap versionDescription
operator!= (map)operator!= (multimap)Tests if the map or multimap object on the left side of the operator is not equal to the map or multimap object on the right side.
operator< (map)operator< (multimap)Tests if the map or multimap object on the left side of the operator is less than the map or multimap object on the right side.
operator<= (map)operator<= (multimap)Tests if the map or multimap object on the left side of the operator is less than or equal to the map or multimap object on the right side.
operator== (map)operator== (multimap)Tests if the map or multimap object on the left side of the operator is equal to the map or multimap object on the right side.
operator> (map)operator> (multimap)Tests if the map or multimap object on the left side of the operator is greater than the map or multimap object on the right side.
operator>= (map)operator>= (multimap)Tests if the map or multimap object on the left side of the operator is greater than or equal to the map or multimap object on the right side.

Specialized Template Functions

Map versionMultimap versionDescription
swap (map)swap (multimap)Exchanges the elements of two maps or multimaps.

Classes

value_compare ClassProvides a function object that can compare the elements of a map by comparing the values of their keys to determine their relative order in the map.
map ClassUsed for the storage and retrieval of data from a collection in which the each of the elements has a unique key with which the data is automatically ordered.
multimap ClassUsed for the storage and retrieval of data from a collection in which the each of the elements has a key with which the data is automatically ordered and the keys do not need to have unique values.

Header Files Reference
Thread Safety in the C++ Standard Library
Standard Template Library

Show:
© 2018 Microsoft