29#ifndef _GLIBCXX_UNORDERED_MAP
30#define _GLIBCXX_UNORDERED_MAP 1
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
65namespace 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>>
73 = std::unordered_map<_Key, _Tp, _Hash, _Pred,
75 template<
typename _Key,
typename _Tp,
typename _Hash = std::hash<_Key>,
76 typename _Pred = std::equal_to<_Key>>
77 using unordered_multimap
78 = std::unordered_multimap<_Key, _Tp, _Hash, _Pred,
81_GLIBCXX_END_NAMESPACE_VERSION
85#ifdef __cpp_lib_erase_if
86namespace 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,
94 _CPred, _Alloc>& __cont,
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,
103 _CPred, _Alloc>& __cont,
105 {
return __detail::__erase_nodes_if(__cont, __cont, __pred); }
106_GLIBCXX_END_NAMESPACE_VERSION
ISO C++ entities toplevel namespace is std.
Class template polymorphic_allocator.