hashmap有unordered_map,map其实就是很明确的红黑树。map比起unordered_map的优势主要有: map始终保证遍历的时候是按key的大小顺序的,这是一个主要的功能上的差异 map可以做范围查找,而unordered_map不可以。 map的iterator除非指向元素被 Read More
posted @ 2021-02-17 23:26 findumars Views(139) Comments(0) Diggs(0) Edit