@@ -1125,8 +1125,7 @@ class flat_map {
1125
1125
};
1126
1126
1127
1127
template <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> &&
1130
1129
is_invocable_v<const _Compare&,
1131
1130
const typename _KeyContainer::value_type&,
1132
1131
const typename _KeyContainer::value_type&>)
@@ -1139,7 +1138,7 @@ flat_map(_KeyContainer, _MappedContainer, _Compare = _Compare())
1139
1138
1140
1139
template <class _KeyContainer , class _MappedContainer , class _Allocator >
1141
1140
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>)
1143
1142
flat_map (_KeyContainer, _MappedContainer, _Allocator)
1144
1143
-> flat_map<typename _KeyContainer::value_type,
1145
1144
typename _MappedContainer::value_type,
@@ -1148,9 +1147,8 @@ flat_map(_KeyContainer, _MappedContainer, _Allocator)
1148
1147
_MappedContainer>;
1149
1148
1150
1149
template <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> &&
1154
1152
is_invocable_v<const _Compare&,
1155
1153
const typename _KeyContainer::value_type&,
1156
1154
const typename _KeyContainer::value_type&>)
@@ -1162,8 +1160,7 @@ flat_map(_KeyContainer, _MappedContainer, _Compare, _Allocator)
1162
1160
_MappedContainer>;
1163
1161
1164
1162
template <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> &&
1167
1164
is_invocable_v<const _Compare&,
1168
1165
const typename _KeyContainer::value_type&,
1169
1166
const typename _KeyContainer::value_type&>)
@@ -1176,7 +1173,7 @@ flat_map(sorted_unique_t, _KeyContainer, _MappedContainer, _Compare = _Compare()
1176
1173
1177
1174
template <class _KeyContainer , class _MappedContainer , class _Allocator >
1178
1175
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>)
1180
1177
flat_map (sorted_unique_t , _KeyContainer, _MappedContainer, _Allocator)
1181
1178
-> flat_map<typename _KeyContainer::value_type,
1182
1179
typename _MappedContainer::value_type,
@@ -1185,9 +1182,8 @@ flat_map(sorted_unique_t, _KeyContainer, _MappedContainer, _Allocator)
1185
1182
_MappedContainer>;
1186
1183
1187
1184
template <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> &&
1191
1187
is_invocable_v<const _Compare&,
1192
1188
const typename _KeyContainer::value_type&,
1193
1189
const typename _KeyContainer::value_type&>)
@@ -1199,27 +1195,27 @@ flat_map(sorted_unique_t, _KeyContainer, _MappedContainer, _Compare, _Allocator)
1199
1195
_MappedContainer>;
1200
1196
1201
1197
template <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>)
1203
1199
flat_map (_InputIterator, _InputIterator, _Compare = _Compare ())
1204
1200
-> flat_map<__iter_key_type<_InputIterator>, __iter_mapped_type<_InputIterator>, _Compare>;
1205
1201
1206
1202
template <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>)
1208
1204
flat_map (sorted_unique_t , _InputIterator, _InputIterator, _Compare = _Compare ())
1209
1205
-> flat_map<__iter_key_type<_InputIterator>, __iter_mapped_type<_InputIterator>, _Compare>;
1210
1206
1211
1207
template <ranges::input_range _Range,
1212
1208
class _Compare = less<__range_key_type<_Range>>,
1213
1209
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>>>
1215
1211
flat_map (from_range_t , _Range&&, _Compare = _Compare (), _Allocator = _Allocator ()) -> flat_map<
1216
1212
__range_key_type<_Range>,
1217
1213
__range_mapped_type<_Range>,
1218
1214
_Compare,
1219
1215
vector<__range_key_type<_Range>, __allocator_traits_rebind_t <_Allocator, __range_key_type<_Range>>>,
1220
1216
vector<__range_mapped_type<_Range>, __allocator_traits_rebind_t <_Allocator, __range_mapped_type<_Range>>>>;
1221
1217
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>>>
1223
1219
flat_map (from_range_t , _Range&&, _Allocator) -> flat_map<
1224
1220
__range_key_type<_Range>,
1225
1221
__range_mapped_type<_Range>,
@@ -1228,11 +1224,11 @@ flat_map(from_range_t, _Range&&, _Allocator) -> flat_map<
1228
1224
vector<__range_mapped_type<_Range>, __allocator_traits_rebind_t <_Allocator, __range_mapped_type<_Range>>>>;
1229
1225
1230
1226
template <class _Key , class _Tp , class _Compare = less<_Key>>
1231
- requires (!__is_allocator <_Compare>::value )
1227
+ requires (!__is_allocator_v <_Compare>)
1232
1228
flat_map (initializer_list<pair<_Key, _Tp>>, _Compare = _Compare ()) -> flat_map<_Key, _Tp, _Compare>;
1233
1229
1234
1230
template <class _Key , class _Tp , class _Compare = less<_Key>>
1235
- requires (!__is_allocator <_Compare>::value )
1231
+ requires (!__is_allocator_v <_Compare>)
1236
1232
flat_map (sorted_unique_t , initializer_list<pair<_Key, _Tp>>, _Compare = _Compare ()) -> flat_map<_Key, _Tp, _Compare>;
1237
1233
1238
1234
template <class _Key , class _Tp , class _Compare , class _KeyContainer , class _MappedContainer , class _Allocator >
0 commit comments