官术网_书友最值得收藏!

  • Mastering C++ Programming
  • Jeganathan Swaminathan
  • 94字
  • 2021-07-02 18:28:53

Unordered maps

An unordered map works in a manner similar to a map, except that the internal behavior of these containers differs. A map makes use of red-black trees while unordered map makes use of hash tables. The time complexity of map operations is O( log N) while that of unordered map operations is O(1); hence, an unordered map tends to be faster than a map.

The values stored in an unordered map are not organized in any particular fashion, unlike in a map where values are sorted by keys.

主站蜘蛛池模板: 宝坻区| 松滋市| 科技| 平顶山市| 德兴市| 岳西县| 如东县| 行唐县| 固始县| 高雄县| 册亨县| 原阳县| 河南省| 安庆市| 库伦旗| 蒲江县| 依兰县| 桦川县| 新津县| 裕民县| 蚌埠市| 诏安县| 横山县| 丹东市| 五大连池市| 涿鹿县| 大田县| 咸宁市| 筠连县| 甘泉县| 西城区| 海淀区| 三都| 清徐县| 含山县| 赣榆县| 化隆| 太谷县| 唐山市| 肥西县| 文水县|