@@ -281,16 +281,16 @@ struct _LIBCPP_TEMPLATE_VIS allocator_traits {
281
281
return __a.allocate (__n);
282
282
}
283
283
284
- template <class _Ap = _Alloc, class = __enable_if_t <__has_allocate_hint<_Ap, size_type, const_void_pointer>::value> >
284
+ template <class _Ap = _Alloc, __enable_if_t <__has_allocate_hint<_Ap, size_type, const_void_pointer>::value, int > = 0 >
285
285
_LIBCPP_NODISCARD_AFTER_CXX17 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 static pointer
286
286
allocate (allocator_type& __a, size_type __n, const_void_pointer __hint) {
287
287
_LIBCPP_SUPPRESS_DEPRECATED_PUSH
288
288
return __a.allocate (__n, __hint);
289
289
_LIBCPP_SUPPRESS_DEPRECATED_POP
290
290
}
291
- template <class _Ap = _Alloc,
292
- class = void ,
293
- class = __enable_if_t <!__has_allocate_hint<_Ap, size_type, const_void_pointer>::value> >
291
+ template <class _Ap = _Alloc,
292
+ class = void ,
293
+ __enable_if_t <!__has_allocate_hint<_Ap, size_type, const_void_pointer>::value, int > = 0 >
294
294
_LIBCPP_NODISCARD_AFTER_CXX17 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 static pointer
295
295
allocate (allocator_type& __a, size_type __n, const_void_pointer) {
296
296
return __a.allocate (__n);
@@ -313,7 +313,7 @@ struct _LIBCPP_TEMPLATE_VIS allocator_traits {
313
313
__a.deallocate (__p, __n);
314
314
}
315
315
316
- template <class _Tp , class ... _Args, class = __enable_if_t <__has_construct<allocator_type, _Tp*, _Args...>::value> >
316
+ template <class _Tp , class ... _Args, __enable_if_t <__has_construct<allocator_type, _Tp*, _Args...>::value, int > = 0 >
317
317
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 static void
318
318
construct (allocator_type& __a, _Tp* __p, _Args&&... __args) {
319
319
_LIBCPP_SUPPRESS_DEPRECATED_PUSH
@@ -322,43 +322,43 @@ struct _LIBCPP_TEMPLATE_VIS allocator_traits {
322
322
}
323
323
template <class _Tp ,
324
324
class ... _Args,
325
- class = void ,
326
- class = __enable_if_t <!__has_construct<allocator_type, _Tp*, _Args...>::value> >
325
+ class = void ,
326
+ __enable_if_t <!__has_construct<allocator_type, _Tp*, _Args...>::value, int > = 0 >
327
327
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 static void
328
328
construct (allocator_type&, _Tp* __p, _Args&&... __args) {
329
329
std::__construct_at (__p, std::forward<_Args>(__args)...);
330
330
}
331
331
332
- template <class _Tp , class = __enable_if_t <__has_destroy<allocator_type, _Tp*>::value> >
332
+ template <class _Tp , __enable_if_t <__has_destroy<allocator_type, _Tp*>::value, int > = 0 >
333
333
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 static void destroy (allocator_type& __a, _Tp* __p) {
334
334
_LIBCPP_SUPPRESS_DEPRECATED_PUSH
335
335
__a.destroy (__p);
336
336
_LIBCPP_SUPPRESS_DEPRECATED_POP
337
337
}
338
- template <class _Tp , class = void , class = __enable_if_t <!__has_destroy<allocator_type, _Tp*>::value> >
338
+ template <class _Tp , class = void , __enable_if_t <!__has_destroy<allocator_type, _Tp*>::value, int > = 0 >
339
339
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 static void destroy (allocator_type&, _Tp* __p) {
340
340
std::__destroy_at (__p);
341
341
}
342
342
343
- template <class _Ap = _Alloc, class = __enable_if_t <__has_max_size<const _Ap>::value> >
343
+ template <class _Ap = _Alloc, __enable_if_t <__has_max_size<const _Ap>::value, int > = 0 >
344
344
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 static size_type max_size (const allocator_type& __a) _NOEXCEPT {
345
345
_LIBCPP_SUPPRESS_DEPRECATED_PUSH
346
346
return __a.max_size ();
347
347
_LIBCPP_SUPPRESS_DEPRECATED_POP
348
348
}
349
- template <class _Ap = _Alloc, class = void , class = __enable_if_t <!__has_max_size<const _Ap>::value> >
349
+ template <class _Ap = _Alloc, class = void , __enable_if_t <!__has_max_size<const _Ap>::value, int > = 0 >
350
350
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 static size_type max_size (const allocator_type&) _NOEXCEPT {
351
351
return numeric_limits<size_type>::max () / sizeof (value_type);
352
352
}
353
353
354
- template <class _Ap = _Alloc, class = __enable_if_t <__has_select_on_container_copy_construction<const _Ap>::value> >
354
+ template <class _Ap = _Alloc, __enable_if_t <__has_select_on_container_copy_construction<const _Ap>::value, int > = 0 >
355
355
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 static allocator_type
356
356
select_on_container_copy_construction (const allocator_type& __a) {
357
357
return __a.select_on_container_copy_construction ();
358
358
}
359
- template <class _Ap = _Alloc,
360
- class = void ,
361
- class = __enable_if_t <!__has_select_on_container_copy_construction<const _Ap>::value> >
359
+ template <class _Ap = _Alloc,
360
+ class = void ,
361
+ __enable_if_t <!__has_select_on_container_copy_construction<const _Ap>::value, int > = 0 >
362
362
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 static allocator_type
363
363
select_on_container_copy_construction (const allocator_type& __a) {
364
364
return __a;
0 commit comments