17 #ifndef AWALI_MISC_UNORDERED_MAP_HH
18 # define AWALI_MISC_UNORDERED_MAP_HH
20 # include <unordered_map>
27 template <
typename Key,
typename T,
28 typename Hash,
typename KeyEqual,
typename Alloc>
34 for (
size_t i = 0; i < m.bucket_count(); ++i)
35 res += m.bucket_size(i);
40 template <
typename Key,
typename T,
41 typename Hash,
typename KeyEqual,
typename Alloc>
44 has(
const std::unordered_map<Key, T, Hash, KeyEqual, Alloc>& m,
47 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.
Definition: unordered_map.hh:31
bool has(const std::map< Key, Value, Compare, Alloc > &s, const Key &e)
Definition: map.hh:53
Main namespace of Awali.
Definition: ato.hh:22