How do I clear elements from unordered_map without reducing container size?

后端 未结 0 1456
一个人的身影
一个人的身影 2021-02-06 02:51

I am using an unordered_map many iterations. After each iteration I want to clear the map, but I do not want the program to waste time by constantly resizing the unordered_map.

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