for (auto &kv : myMap) { count<<kv.first<<" has value "<<kv.second<<endl; } 转载于:https://www.cnblogs.com/2018shawn/p/11466590.html