3 #include <unordered_map>
9 template <
typename Key,
typename T,
10 typename Hash,
typename KeyEqual,
typename Alloc>
16 for (
size_t i = 0; i < m.bucket_count(); ++i)
17 res += m.bucket_size(i);
22 template <
typename Key,
typename T,
23 typename Hash,
typename KeyEqual,
typename Alloc>
26 has(
const std::unordered_map<Key, T, Hash, KeyEqual, Alloc>& m,
29 return m.find(k) != std::end(m);
size_t collision_count(const std::unordered_map< Key, T, Hash, KeyEqual, Alloc > &m)
Sum of bucket sizes.
ATTRIBUTE_PURE bool has(const boost::container::flat_set< Key, Compare, Allocator > &s, const Key &e)
Whether e is member of s.