hashtable的原理

hashtable作为unordered_set和unordered_map的底层数据结构,是隐藏起来的,正常不会直接用到它,但要理解好unordered_set和unordered_map,需要先理解好hashtable   hashtable的底层数据结构是vector,vector中的元素是链表 vector代表篮子,初始化大小为53(GNU的做法),存的是结点指针 元素放进来的时候,会经过
相关文章
相关标签/搜索