Standard C++ Library Class Reference
Copy constructor. Creates a new map by copying all pairs of key and value from x.
~map ();
The destructor. Releases any allocated memory for this map.
Allocator
allocator_type get_allocator () const;
Returns a copy of the allocator used by self for storage management.
Iterators
iterator begin() ;
Returns an iterator pointing to the first element stored in the map. "First" is defined by
the map's comparison operator, Compare.
const_iterator begin() const;
Returns a const_iterator pointing to the first element stored in the map.
iterator end() ;
Returns an iterator pointing to the last element stored in the map, i.e., the off-the-end
value.
const_iterator end() const;
Returns a const_iterator pointing to the last element stored in the map.
reverse_iterator rbegin();
Returns a reverse_iterator pointing to the first element stored in the map. "First" is
defined by the map's comparison operator, Compare.
const_reverse_iterator rbegin() const;
Returns a const_reverse_iterator pointing to the first element stored in the map.
reverse_iterator rend() ;
Returns a reverse_iterator pointing to the last element stored in the map, i.e., the
off-the-end value.
const_reverse_iterator rend() const;
Returns a const_reverse_iterator pointing to the last element stored in the map
Member Operators
map<Key, T, Compare, Allocator>&
operator= (const map<Key, T, Compare, Allocator>& x);