std::multimap<int,char>::iterator it; for(it = std::next(map.begin()); it != map.end(); ++it) {
This is only C ++ 11. You need to enable <iterator> .
Another option is obvious, but less cute:
it = map.begin(); ++it; for(; it != map.end(); ++it) { // do something }
Take a look at std::advance .
source share