hash_map vs unordered_map 这两个的内部结构都是采用哈希表来实现.unordered_map在C++11的时候被引入标准库了,而hash_map没有,所以建议还是使用unordered_map比较好. unordered_map vs map map的内部结构是R-B-tree来实现的,所以保证了一个稳定的动态操作时间,查询.插入.删除都是O(logN),最坏和平均情况都是:而unordered_map是哈希表.虽然哈希表的查询时间是O(1),但是并不是unordered…
I decide to write to my blogs in English. When I meet something hard to depict, I'll add some Chinese necessarily. The differences between these containers are : The keys of set and map are unique, but they could be multiple for multiset and multimap…