end [C++ Reference]
Keywords: stl,map,end
Date: 2008-10-14T15:42:06-0700

[[end]]
C++ Reference
Translations of this page?:

- en
- br-pt
- cn
- fr
- it
- jp
- pl
- ru
- tr

## end

Syntax:

        #include <map>
        iterator end();
        const_iterator end() const;

The end() function returns an iterator just past the end of the map.

Note that before you can access the last element of the map using an iterator that you get from a call to end(), you'll have to decrement the iterator first.

Related Topics: begin, rbegin, rend

Edit this page • Old revisions
• • • Login • Index • Recent changes • RSS • cc •