【文件属性】:
文件名称:hash_map:C++ STL 哈希映射容器
文件大小:12KB
文件格式:ZIP
更新时间:2021-07-14 16:16:02
C++
STL hash_map: 链式散列
版权所有 (c) 2014,龙 (Ryan) 南宫。 保留所有权利。
邮箱: 创建时间:2014 年 7 月 15 日
这是无序的哈希映射,它具有恒定的插入、删除、搜索时间,并支持向前/向后迭代。
hash_map 的成员函数实现:
size_t hash (const Key& key);
size_t size();
iterator begin();
iterator end();
iterator rbegin();
iterator rend();
iterator insert (const Key& key, const Value& value);
iterator find (const Key& key);
void erase (iterator pos);
Value operator[] (const Key&
【文件预览】:
hash_map-master
----Makefile(106B)
----test_main.cpp(2KB)
----hash(24KB)
----iterator.cpp(1KB)
----hash_map.cpp(8KB)
----README.md(824B)
----hash_map.h(1KB)