@@ -1125,8 +1125,7 @@ class flat_map {
11251125};
11261126
11271127template <class _KeyContainer , class _MappedContainer , class _Compare = less<typename _KeyContainer::value_type>>
1128- requires (!__is_allocator<_Compare>::value && !__is_allocator<_KeyContainer>::value &&
1129- !__is_allocator<_MappedContainer>::value &&
1128+ requires (!__is_allocator_v<_Compare> && !__is_allocator_v<_KeyContainer> && !__is_allocator_v<_MappedContainer> &&
11301129 is_invocable_v<const _Compare&,
11311130 const typename _KeyContainer::value_type&,
11321131 const typename _KeyContainer::value_type&>)
@@ -1139,7 +1138,7 @@ flat_map(_KeyContainer, _MappedContainer, _Compare = _Compare())
11391138
11401139template <class _KeyContainer , class _MappedContainer , class _Allocator >
11411140 requires (uses_allocator_v<_KeyContainer, _Allocator> && uses_allocator_v<_MappedContainer, _Allocator> &&
1142- !__is_allocator <_KeyContainer>::value && !__is_allocator <_MappedContainer>::value )
1141+ !__is_allocator_v <_KeyContainer> && !__is_allocator_v <_MappedContainer>)
11431142flat_map (_KeyContainer, _MappedContainer, _Allocator)
11441143 -> flat_map<typename _KeyContainer::value_type,
11451144 typename _MappedContainer::value_type,
@@ -1148,9 +1147,8 @@ flat_map(_KeyContainer, _MappedContainer, _Allocator)
11481147 _MappedContainer>;
11491148
11501149template <class _KeyContainer , class _MappedContainer , class _Compare , class _Allocator >
1151- requires (!__is_allocator<_Compare>::value && !__is_allocator<_KeyContainer>::value &&
1152- !__is_allocator<_MappedContainer>::value && uses_allocator_v<_KeyContainer, _Allocator> &&
1153- uses_allocator_v<_MappedContainer, _Allocator> &&
1150+ requires (!__is_allocator_v<_Compare> && !__is_allocator_v<_KeyContainer> && !__is_allocator_v<_MappedContainer> &&
1151+ uses_allocator_v<_KeyContainer, _Allocator> && uses_allocator_v<_MappedContainer, _Allocator> &&
11541152 is_invocable_v<const _Compare&,
11551153 const typename _KeyContainer::value_type&,
11561154 const typename _KeyContainer::value_type&>)
@@ -1162,8 +1160,7 @@ flat_map(_KeyContainer, _MappedContainer, _Compare, _Allocator)
11621160 _MappedContainer>;
11631161
11641162template <class _KeyContainer , class _MappedContainer , class _Compare = less<typename _KeyContainer::value_type>>
1165- requires (!__is_allocator<_Compare>::value && !__is_allocator<_KeyContainer>::value &&
1166- !__is_allocator<_MappedContainer>::value &&
1163+ requires (!__is_allocator_v<_Compare> && !__is_allocator_v<_KeyContainer> && !__is_allocator_v<_MappedContainer> &&
11671164 is_invocable_v<const _Compare&,
11681165 const typename _KeyContainer::value_type&,
11691166 const typename _KeyContainer::value_type&>)
@@ -1176,7 +1173,7 @@ flat_map(sorted_unique_t, _KeyContainer, _MappedContainer, _Compare = _Compare()
11761173
11771174template <class _KeyContainer , class _MappedContainer , class _Allocator >
11781175 requires (uses_allocator_v<_KeyContainer, _Allocator> && uses_allocator_v<_MappedContainer, _Allocator> &&
1179- !__is_allocator <_KeyContainer>::value && !__is_allocator <_MappedContainer>::value )
1176+ !__is_allocator_v <_KeyContainer> && !__is_allocator_v <_MappedContainer>)
11801177flat_map (sorted_unique_t , _KeyContainer, _MappedContainer, _Allocator)
11811178 -> flat_map<typename _KeyContainer::value_type,
11821179 typename _MappedContainer::value_type,
@@ -1185,9 +1182,8 @@ flat_map(sorted_unique_t, _KeyContainer, _MappedContainer, _Allocator)
11851182 _MappedContainer>;
11861183
11871184template <class _KeyContainer , class _MappedContainer , class _Compare , class _Allocator >
1188- requires (!__is_allocator<_Compare>::value && !__is_allocator<_KeyContainer>::value &&
1189- !__is_allocator<_MappedContainer>::value && uses_allocator_v<_KeyContainer, _Allocator> &&
1190- uses_allocator_v<_MappedContainer, _Allocator> &&
1185+ requires (!__is_allocator_v<_Compare> && !__is_allocator_v<_KeyContainer> && !__is_allocator_v<_MappedContainer> &&
1186+ uses_allocator_v<_KeyContainer, _Allocator> && uses_allocator_v<_MappedContainer, _Allocator> &&
11911187 is_invocable_v<const _Compare&,
11921188 const typename _KeyContainer::value_type&,
11931189 const typename _KeyContainer::value_type&>)
@@ -1199,27 +1195,27 @@ flat_map(sorted_unique_t, _KeyContainer, _MappedContainer, _Compare, _Allocator)
11991195 _MappedContainer>;
12001196
12011197template <class _InputIterator , class _Compare = less<__iter_key_type<_InputIterator>>>
1202- requires (__has_input_iterator_category<_InputIterator>::value && !__is_allocator <_Compare>::value )
1198+ requires (__has_input_iterator_category<_InputIterator>::value && !__is_allocator_v <_Compare>)
12031199flat_map (_InputIterator, _InputIterator, _Compare = _Compare ())
12041200 -> flat_map<__iter_key_type<_InputIterator>, __iter_mapped_type<_InputIterator>, _Compare>;
12051201
12061202template <class _InputIterator , class _Compare = less<__iter_key_type<_InputIterator>>>
1207- requires (__has_input_iterator_category<_InputIterator>::value && !__is_allocator <_Compare>::value )
1203+ requires (__has_input_iterator_category<_InputIterator>::value && !__is_allocator_v <_Compare>)
12081204flat_map (sorted_unique_t , _InputIterator, _InputIterator, _Compare = _Compare ())
12091205 -> flat_map<__iter_key_type<_InputIterator>, __iter_mapped_type<_InputIterator>, _Compare>;
12101206
12111207template <ranges::input_range _Range,
12121208 class _Compare = less<__range_key_type<_Range>>,
12131209 class _Allocator = allocator<byte>,
1214- class = __enable_if_t <!__is_allocator <_Compare>::value && __is_allocator <_Allocator>::value >>
1210+ class = __enable_if_t <!__is_allocator_v <_Compare> && __is_allocator_v <_Allocator>>>
12151211flat_map (from_range_t , _Range&&, _Compare = _Compare (), _Allocator = _Allocator ()) -> flat_map<
12161212 __range_key_type<_Range>,
12171213 __range_mapped_type<_Range>,
12181214 _Compare,
12191215 vector<__range_key_type<_Range>, __allocator_traits_rebind_t <_Allocator, __range_key_type<_Range>>>,
12201216 vector<__range_mapped_type<_Range>, __allocator_traits_rebind_t <_Allocator, __range_mapped_type<_Range>>>>;
12211217
1222- template <ranges::input_range _Range, class _Allocator , class = __enable_if_t <__is_allocator <_Allocator>::value >>
1218+ template <ranges::input_range _Range, class _Allocator , class = __enable_if_t <__is_allocator_v <_Allocator>>>
12231219flat_map (from_range_t , _Range&&, _Allocator) -> flat_map<
12241220 __range_key_type<_Range>,
12251221 __range_mapped_type<_Range>,
@@ -1228,11 +1224,11 @@ flat_map(from_range_t, _Range&&, _Allocator) -> flat_map<
12281224 vector<__range_mapped_type<_Range>, __allocator_traits_rebind_t <_Allocator, __range_mapped_type<_Range>>>>;
12291225
12301226template <class _Key , class _Tp , class _Compare = less<_Key>>
1231- requires (!__is_allocator <_Compare>::value )
1227+ requires (!__is_allocator_v <_Compare>)
12321228flat_map (initializer_list<pair<_Key, _Tp>>, _Compare = _Compare ()) -> flat_map<_Key, _Tp, _Compare>;
12331229
12341230template <class _Key , class _Tp , class _Compare = less<_Key>>
1235- requires (!__is_allocator <_Compare>::value )
1231+ requires (!__is_allocator_v <_Compare>)
12361232flat_map (sorted_unique_t , initializer_list<pair<_Key, _Tp>>, _Compare = _Compare ()) -> flat_map<_Key, _Tp, _Compare>;
12371233
12381234template <class _Key , class _Tp , class _Compare , class _KeyContainer , class _MappedContainer , class _Allocator >
0 commit comments