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

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.

主站蜘蛛池模板: 万安县| 皮山县| 华容县| 宝丰县| 基隆市| 利辛县| 无棣县| 丹江口市| 镇沅| 和林格尔县| 南和县| 句容市| 南康市| 获嘉县| 进贤县| 临泉县| 句容市| 丰镇市| 神池县| 红桥区| 乌什县| 汨罗市| 达尔| 南川市| 齐河县| 高碑店市| 班玛县| 临澧县| 平乡县| 赤水市| 汤阴县| 巴楚县| 唐河县| 平泉县| 云浮市| 曲阳县| 正阳县| 利川市| 满城县| 山东省| 仲巴县|