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

  • 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.

主站蜘蛛池模板: 井陉县| 伊金霍洛旗| 松江区| 乡城县| 汉川市| 郎溪县| 阜新市| 手游| 贺州市| 奉化市| 眉山市| 安新县| 衡东县| 平顶山市| 屏东市| 安阳市| 简阳市| 江城| 常德市| 蕉岭县| 平罗县| 化隆| 马公市| 海晏县| 阜平县| 运城市| 永清县| 伊吾县| 漳平市| 宜都市| 正阳县| 苍山县| 静安区| 清苑县| 汽车| 永和县| 阳城县| 涿州市| 黄龙县| 社旗县| 隆化县|