摘要:
1 #include "MyHashTable.h" 2 template <typename Tp> 3 struct Identity 4 { 5 const Tp& operator()(const Tp& x) const { return x; } 6 }; 7 template <typ 阅读全文
posted @ 2021-02-25 20:43
ho966
阅读(70)
评论(0)
推荐(0)
摘要:
hash_map 1 template <class Pair> 2 struct Select1st 3 { 4 const typename Pair::first_type& operator()(const Pair& x) const 5 { 6 return x.first; 7 } 8 阅读全文
posted @ 2021-02-25 20:42
ho966
阅读(157)
评论(0)
推荐(0)
摘要:
c++11之前,标准库里的哈希容器是std::hash_set、std::hash_multiset、std::hash_map、std::hash_multisetmap; c++11之后,他们的名字改成了std::unorder_set、std::unorder_multiset、std::un 阅读全文
posted @ 2021-02-25 20:40
ho966
阅读(116)
评论(0)
推荐(0)