29 #ifndef _GLIBCXX_UNORDERED_MAP
30 #define _GLIBCXX_UNORDERED_MAP 1
32 #ifdef _GLIBCXX_SYSHDR
33 #pragma GCC system_header
38 #if __cplusplus < 201103L
51 #define __glibcxx_want_allocator_traits_is_always_equal
52 #define __glibcxx_want_containers_ranges
53 #define __glibcxx_want_erase_if
54 #define __glibcxx_want_generic_unordered_lookup
55 #define __glibcxx_want_node_extract
56 #define __glibcxx_want_nonmember_container_access
57 #define __glibcxx_want_unordered_map_try_emplace
58 #define __glibcxx_want_tuple_like
59 #define __glibcxx_want_associative_heterogeneous_erasure
60 #define __glibcxx_want_associative_heterogeneous_insertion
63 #if __cplusplus >= 201703L
65 namespace std _GLIBCXX_VISIBILITY(default)
67 _GLIBCXX_BEGIN_NAMESPACE_VERSION
70 template<
typename _Key,
typename _Tp,
typename _Hash = std::hash<_Key>,
71 typename _Pred = std::equal_to<_Key>>
74 polymorphic_allocator<pair<const _Key, _Tp>>>;
75 template<
typename _Key,
typename _Tp,
typename _Hash = std::hash<_Key>,
76 typename _Pred = std::equal_to<_Key>>
77 using unordered_multimap
79 polymorphic_allocator<pair<const _Key, _Tp>>>;
81 _GLIBCXX_END_NAMESPACE_VERSION
85 #ifdef __cpp_lib_erase_if
86 namespace std _GLIBCXX_VISIBILITY(default)
88 _GLIBCXX_BEGIN_NAMESPACE_VERSION
89 template<
typename _Key,
typename _Tp,
typename _Hash,
typename _CPred,
90 typename _Alloc,
typename _Predicate>
91 inline typename _GLIBCXX_STD_C::unordered_map<_Key, _Tp, _Hash,
92 _CPred, _Alloc>::size_type
93 erase_if(_GLIBCXX_STD_C::unordered_map<_Key, _Tp, _Hash,
96 {
return __detail::__erase_nodes_if(
__cont,
__cont, __pred); }
98 template<
typename _Key,
typename _Tp,
typename _Hash,
typename _CPred,
99 typename _Alloc,
typename _Predicate>
100 inline typename _GLIBCXX_STD_C::unordered_multimap<_Key, _Tp, _Hash,
101 _CPred, _Alloc>::size_type
102 erase_if(_GLIBCXX_STD_C::unordered_multimap<_Key, _Tp, _Hash,
105 {
return __detail::__erase_nodes_if(
__cont,
__cont, __pred); }
106 _GLIBCXX_END_NAMESPACE_VERSION
ISO C++ entities toplevel namespace is std.
A standard container composed of equivalent keys (possibly containing multiple of each key value) tha...
A standard container composed of unique keys (containing at most one of each key value) that associat...