map Members
Reference
Constructors
Constructs a list of a specific size or with elements of a specific value or with a specific allocator or as a copy of some other map. |
Typedefs
A typedef for the allocator class for the map object. |
|
A typedef for a bidirectional iterator that can read a const element in the map. |
|
A typedef for a pointer to a const element in a map. |
|
A typedef for a reference to a const element stored in a map for reading and performing const operations. |
|
A type that provides a bidirectional iterator that can read any const element in the map. |
|
A signed integer typedef for the number of elements of a map in a range between elements pointed to by iterators. |
|
A typedef for a bidirectional iterator that can read or modify any element in a map. |
|
A typedef for a function object that can compare two sort keys to determine the relative order of two elements in the map. |
|
A typedef for the sort key stored in each element of the map. |
|
A typedef for the data stored in each element of a map. |
|
A typedef for a pointer to a const element in a map. |
|
A typedef for a reference to an element stored in a map. |
|
A typedef for a bidirectional iterator that can read or modify an element in a reversed map. |
|
An unsigned integer typedef for the number of elements in a map |
|
A typedef for the type of object stored as an element in a map. |
Methods
Returns an iterator that points to the first element in the map. |
|
Erases all the elements of a map. |
|
Returns the number of elements in a map whose key matches the key specified in a parameter. |
|
Returns true if a map is empty. |
|
Returns an iterator that points to the location after the last element in a map. |
|
Returns a pair of iterators. The first iterator in the pair points to the first element in a map with a key that is greater than a specified key. The second iterator in the pair points to the first element in the map with a key that is equal to or greater than the key. |
|
Removes an element or a range of elements in a map from the specified positions. |
|
Returns an iterator that points to the location of an element in a map that has a key equal to a specified key. |
|
Returns a copy of the allocator object that is used to construct the map. |
|
Inserts an element or a range of elements into the map at a specified position. |
|
Returns a copy of the comparison object that used to order keys in a map. |
|
Returns an iterator to the first element in a map that has a key value that is equal to or greater than that of a specified key. |
|
Returns the maximum length of the map. |
|
Returns an iterator that points to the first element in a reversed map. |
|
Returns an iterator that points to the location after the last element in a reversed map. |
|
Returns the number of elements in the map. |
|
Exchanges the elements of two maps. |
|
Returns an iterator to the first element in a map that has a key value that is greater than that of a specified key. |
|
Retrieves a copy of the comparison object that is used to order element values in a map. |
Operators
Inserts an element into a map with a specified key value. |
See Also
Reference
Thread Safety in the Standard C++ Library
Change History
Date |
History |
Reason |
---|---|---|
October 2008 |
Revised description of value_type. |
Customer feedback. |
February 2009 |
Added link to Iterators topic. |
Customer feedback. |