会员
众包
新闻
博问
闪存
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
cleverc
博客园
首页
新随笔
联系
管理
订阅
2015年11月28日
STL中的哈希表 hash table
摘要: 哈希表在STL的map库中,用到的两个主要函数为map.count()和map.insert(),分别是查找和插入操作。代码样例如下:1 include 2 3 map hashtable;4 if(!hashtable.count(key)) {5 hashtable.insert(pai...
阅读全文
posted @ 2015-11-28 13:35 cleverc
阅读(503)
评论(0)
推荐(0)
编辑
公告