-4
如何遍历hashMap(C++),以便可以遍历所有元素?通过HashMap迭代C++
我有这个哈希命名地图:
HashMap<std::string, int> map;
map.insert (key1, value1);
map.insert (key2, value2);
map.insert (key3, value3);
...
...
...
map.insert (keyN, valueN);
你试过了什么?它不应该与任何其他容器有所不同。 – NathanOliver
[如何通过映射的C++映射循环?](http://stackoverflow.com/questions/4844886/how-to-loop-through-ac-map-of-maps) – Borgleader
'HashMap' is不是C++的一部分。如果您正在使用第三方库,则需要研究其文档。 –