for (auto i = myMap.begin(); i != myMap.end(); ++i) { cout << i->first << ": " << i->second << endl; }