@@ -281,16 +281,16 @@ struct _LIBCPP_TEMPLATE_VIS allocator_traits {
281281 return __a.allocate (__n);
282282 }
283283
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 >
285285 _LIBCPP_NODISCARD_AFTER_CXX17 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 static pointer
286286 allocate (allocator_type& __a, size_type __n, const_void_pointer __hint) {
287287 _LIBCPP_SUPPRESS_DEPRECATED_PUSH
288288 return __a.allocate (__n, __hint);
289289 _LIBCPP_SUPPRESS_DEPRECATED_POP
290290 }
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 >
294294 _LIBCPP_NODISCARD_AFTER_CXX17 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 static pointer
295295 allocate (allocator_type& __a, size_type __n, const_void_pointer) {
296296 return __a.allocate (__n);
@@ -313,7 +313,7 @@ struct _LIBCPP_TEMPLATE_VIS allocator_traits {
313313 __a.deallocate (__p, __n);
314314 }
315315
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 >
317317 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 static void
318318 construct (allocator_type& __a, _Tp* __p, _Args&&... __args) {
319319 _LIBCPP_SUPPRESS_DEPRECATED_PUSH
@@ -322,43 +322,43 @@ struct _LIBCPP_TEMPLATE_VIS allocator_traits {
322322 }
323323 template <class _Tp ,
324324 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 >
327327 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 static void
328328 construct (allocator_type&, _Tp* __p, _Args&&... __args) {
329329 std::__construct_at (__p, std::forward<_Args>(__args)...);
330330 }
331331
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 >
333333 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 static void destroy (allocator_type& __a, _Tp* __p) {
334334 _LIBCPP_SUPPRESS_DEPRECATED_PUSH
335335 __a.destroy (__p);
336336 _LIBCPP_SUPPRESS_DEPRECATED_POP
337337 }
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 >
339339 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 static void destroy (allocator_type&, _Tp* __p) {
340340 std::__destroy_at (__p);
341341 }
342342
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 >
344344 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 static size_type max_size (const allocator_type& __a) _NOEXCEPT {
345345 _LIBCPP_SUPPRESS_DEPRECATED_PUSH
346346 return __a.max_size ();
347347 _LIBCPP_SUPPRESS_DEPRECATED_POP
348348 }
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 >
350350 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 static size_type max_size (const allocator_type&) _NOEXCEPT {
351351 return numeric_limits<size_type>::max () / sizeof (value_type);
352352 }
353353
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 >
355355 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 static allocator_type
356356 select_on_container_copy_construction (const allocator_type& __a) {
357357 return __a.select_on_container_copy_construction ();
358358 }
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 >
362362 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 static allocator_type
363363 select_on_container_copy_construction (const allocator_type& __a) {
364364 return __a;
0 commit comments