Is there a situation where only std::map can be used instead of std::unordered_map or vice versa?

后端 未结 0 1503
独厮守ぢ
独厮守ぢ 2021-01-20 02:27
std::map counts;
// populate the map
for (auto& num : counts) {
  auto a = num.first;
  auto a_count = num.second;
  // do something useful
}


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题