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

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

end() runs in constant time.

Related Topics: begin, rbegin, rend