C++:std::map的遍历


for (auto &kv : myMap) { count<<kv.first<<" has value "<<kv.second<<endl; }