29 #ifndef _GLIBCXX_TYPE_TRAITS 30 #define _GLIBCXX_TYPE_TRAITS 1 32 #pragma GCC system_header 34 #if __cplusplus < 201103L 40 namespace std _GLIBCXX_VISIBILITY(default)
42 _GLIBCXX_BEGIN_NAMESPACE_VERSION
56 template<
typename _Tp, _Tp __v>
59 static constexpr _Tp value = __v;
60 typedef _Tp value_type;
62 constexpr
operator value_type()
const noexcept {
return value; }
63 #if __cplusplus > 201103L 65 #define __cpp_lib_integral_constant_callable 201304 67 constexpr value_type operator()()
const noexcept {
return value; }
71 template<
typename _Tp, _Tp __v>
83 #if __cplusplus > 201402L 84 # define __cpp_lib_bool_constant 201505 91 template<
bool,
typename,
typename>
102 template<
typename _B1>
107 template<
typename _B1,
typename _B2>
108 struct __or_<_B1, _B2>
109 :
public conditional<_B1::value, _B1, _B2>::type
112 template<
typename _B1,
typename _B2,
typename _B3,
typename... _Bn>
113 struct __or_<_B1, _B2, _B3, _Bn...>
114 :
public conditional<_B1::value, _B1, __or_<_B2, _B3, _Bn...>>::type
117 template<
typename...>
125 template<
typename _B1>
130 template<
typename _B1,
typename _B2>
131 struct __and_<_B1, _B2>
132 :
public conditional<_B1::value, _B2, _B1>::type
135 template<
typename _B1,
typename _B2,
typename _B3,
typename... _Bn>
136 struct __and_<_B1, _B2, _B3, _Bn...>
137 :
public conditional<_B1::value, __and_<_B2, _B3, _Bn...>, _B1>::type
140 template<
typename _Pp>
142 :
public __bool_constant<!bool(_Pp::value)>
145 #if __cplusplus >= 201703L 147 template<
typename... _Bn>
148 inline constexpr
bool __or_v = __or_<_Bn...>::value;
149 template<
typename... _Bn>
150 inline constexpr
bool __and_v = __and_<_Bn...>::value;
152 #define __cpp_lib_logical_traits 201510 154 template<
typename... _Bn>
159 template<
typename... _Bn>
164 template<
typename _Pp>
169 template<
typename... _Bn>
170 inline constexpr
bool conjunction_v = conjunction<_Bn...>::value;
172 template<
typename... _Bn>
173 inline constexpr
bool disjunction_v = disjunction<_Bn...>::value;
175 template<
typename _Pp>
176 inline constexpr
bool negation_v = negation<_Pp>::value;
185 template<
typename _Tp>
186 struct __success_type
187 {
typedef _Tp type; };
189 struct __failure_type
198 struct __is_void_helper
199 :
public false_type { };
202 struct __is_void_helper<void>
203 :
public true_type { };
206 template<
typename _Tp>
208 :
public __is_void_helper<typename remove_cv<_Tp>::type>
::type 212 struct __is_integral_helper
213 :
public false_type { };
216 struct __is_integral_helper<bool>
217 :
public true_type { };
220 struct __is_integral_helper<char>
221 :
public true_type { };
224 struct __is_integral_helper<signed char>
225 :
public true_type { };
228 struct __is_integral_helper<unsigned char>
229 :
public true_type { };
231 #ifdef _GLIBCXX_USE_WCHAR_T 233 struct __is_integral_helper<wchar_t>
234 :
public true_type { };
238 struct __is_integral_helper<char16_t>
239 :
public true_type { };
242 struct __is_integral_helper<char32_t>
243 :
public true_type { };
246 struct __is_integral_helper<short>
247 :
public true_type { };
250 struct __is_integral_helper<unsigned short>
251 :
public true_type { };
254 struct __is_integral_helper<int>
255 :
public true_type { };
258 struct __is_integral_helper<unsigned int>
259 :
public true_type { };
262 struct __is_integral_helper<long>
263 :
public true_type { };
266 struct __is_integral_helper<unsigned long>
267 :
public true_type { };
270 struct __is_integral_helper<long long>
271 :
public true_type { };
274 struct __is_integral_helper<unsigned long long>
275 :
public true_type { };
279 #if defined(__GLIBCXX_TYPE_INT_N_0) 281 struct __is_integral_helper<__GLIBCXX_TYPE_INT_N_0>
282 :
public true_type { };
285 struct __is_integral_helper<unsigned __GLIBCXX_TYPE_INT_N_0>
286 :
public true_type { };
288 #if defined(__GLIBCXX_TYPE_INT_N_1) 290 struct __is_integral_helper<__GLIBCXX_TYPE_INT_N_1>
291 :
public true_type { };
294 struct __is_integral_helper<unsigned __GLIBCXX_TYPE_INT_N_1>
295 :
public true_type { };
297 #if defined(__GLIBCXX_TYPE_INT_N_2) 299 struct __is_integral_helper<__GLIBCXX_TYPE_INT_N_2>
300 :
public true_type { };
303 struct __is_integral_helper<unsigned __GLIBCXX_TYPE_INT_N_2>
304 :
public true_type { };
306 #if defined(__GLIBCXX_TYPE_INT_N_3) 308 struct __is_integral_helper<__GLIBCXX_TYPE_INT_N_3>
309 :
public true_type { };
312 struct __is_integral_helper<unsigned __GLIBCXX_TYPE_INT_N_3>
313 :
public true_type { };
317 template<
typename _Tp>
319 :
public __is_integral_helper<typename remove_cv<_Tp>::type>
::type 323 struct __is_floating_point_helper
324 :
public false_type { };
327 struct __is_floating_point_helper<float>
328 :
public true_type { };
331 struct __is_floating_point_helper<double>
332 :
public true_type { };
335 struct __is_floating_point_helper<long double>
336 :
public true_type { };
338 #if !defined(__STRICT_ANSI__) && defined(_GLIBCXX_USE_FLOAT128) && !defined(__CUDACC__) 340 struct __is_floating_point_helper<__float128>
341 :
public true_type { };
345 template<
typename _Tp>
347 :
public __is_floating_point_helper<typename remove_cv<_Tp>::type>::type
353 :
public false_type { };
355 template<
typename _Tp, std::
size_t _Size>
357 :
public true_type { };
359 template<
typename _Tp>
361 :
public true_type { };
364 struct __is_pointer_helper
365 :
public false_type { };
367 template<
typename _Tp>
368 struct __is_pointer_helper<_Tp*>
369 :
public true_type { };
372 template<
typename _Tp>
374 :
public __is_pointer_helper<typename remove_cv<_Tp>::type>::type
380 :
public false_type { };
382 template<
typename _Tp>
384 :
public true_type { };
389 :
public false_type { };
391 template<
typename _Tp>
393 :
public true_type { };
399 struct __is_member_object_pointer_helper
400 :
public false_type { };
402 template<
typename _Tp,
typename _Cp>
403 struct __is_member_object_pointer_helper<_Tp _Cp::*>
404 :
public __not_<is_function<_Tp>>
::type { };
407 template<
typename _Tp>
409 :
public __is_member_object_pointer_helper<
410 typename remove_cv<_Tp>::type>::type
414 struct __is_member_function_pointer_helper
415 :
public false_type { };
417 template<
typename _Tp,
typename _Cp>
418 struct __is_member_function_pointer_helper<_Tp _Cp::*>
422 template<
typename _Tp>
424 :
public __is_member_function_pointer_helper<
425 typename remove_cv<_Tp>::type>
::type 429 template<
typename _Tp>
435 template<
typename _Tp>
441 template<
typename _Tp>
449 :
public false_type { };
451 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
452 struct is_function<_Res(_ArgTypes...) _GLIBCXX_NOEXCEPT_QUAL>
453 :
public true_type { };
455 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
456 struct is_function<_Res(_ArgTypes...) & _GLIBCXX_NOEXCEPT_QUAL>
457 :
public true_type { };
459 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
460 struct is_function<_Res(_ArgTypes...) && _GLIBCXX_NOEXCEPT_QUAL>
461 :
public true_type { };
463 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
464 struct is_function<_Res(_ArgTypes......) _GLIBCXX_NOEXCEPT_QUAL>
465 :
public true_type { };
467 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
468 struct is_function<_Res(_ArgTypes......) & _GLIBCXX_NOEXCEPT_QUAL>
469 :
public true_type { };
471 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
472 struct is_function<_Res(_ArgTypes......) && _GLIBCXX_NOEXCEPT_QUAL>
473 :
public true_type { };
475 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
476 struct is_function<_Res(_ArgTypes...) const _GLIBCXX_NOEXCEPT_QUAL>
477 :
public true_type { };
479 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
480 struct is_function<_Res(_ArgTypes...) const & _GLIBCXX_NOEXCEPT_QUAL>
481 :
public true_type { };
483 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
484 struct is_function<_Res(_ArgTypes...) const && _GLIBCXX_NOEXCEPT_QUAL>
485 :
public true_type { };
487 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
488 struct is_function<_Res(_ArgTypes......) const _GLIBCXX_NOEXCEPT_QUAL>
489 :
public true_type { };
491 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
492 struct is_function<_Res(_ArgTypes......) const & _GLIBCXX_NOEXCEPT_QUAL>
493 :
public true_type { };
495 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
496 struct is_function<_Res(_ArgTypes......) const && _GLIBCXX_NOEXCEPT_QUAL>
497 :
public true_type { };
499 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
500 struct is_function<_Res(_ArgTypes...) volatile _GLIBCXX_NOEXCEPT_QUAL>
501 :
public true_type { };
503 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
504 struct is_function<_Res(_ArgTypes...) volatile & _GLIBCXX_NOEXCEPT_QUAL>
505 :
public true_type { };
507 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
508 struct is_function<_Res(_ArgTypes...) volatile && _GLIBCXX_NOEXCEPT_QUAL>
509 :
public true_type { };
511 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
512 struct is_function<_Res(_ArgTypes......) volatile _GLIBCXX_NOEXCEPT_QUAL>
513 :
public true_type { };
515 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
516 struct is_function<_Res(_ArgTypes......) volatile & _GLIBCXX_NOEXCEPT_QUAL>
517 :
public true_type { };
519 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
520 struct is_function<_Res(_ArgTypes......) volatile && _GLIBCXX_NOEXCEPT_QUAL>
521 :
public true_type { };
523 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
524 struct is_function<_Res(_ArgTypes...) const volatile _GLIBCXX_NOEXCEPT_QUAL>
525 :
public true_type { };
527 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
528 struct is_function<_Res(_ArgTypes...) const volatile & _GLIBCXX_NOEXCEPT_QUAL>
529 :
public true_type { };
531 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
532 struct is_function<_Res(_ArgTypes...) const volatile && _GLIBCXX_NOEXCEPT_QUAL>
533 :
public true_type { };
535 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
536 struct is_function<_Res(_ArgTypes......) const volatile _GLIBCXX_NOEXCEPT_QUAL>
537 :
public true_type { };
539 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
540 struct is_function<_Res(_ArgTypes......) const volatile & _GLIBCXX_NOEXCEPT_QUAL>
541 :
public true_type { };
543 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
544 struct is_function<_Res(_ArgTypes......) const volatile && _GLIBCXX_NOEXCEPT_QUAL>
545 :
public true_type { };
547 #define __cpp_lib_is_null_pointer 201309 550 struct __is_null_pointer_helper
551 :
public false_type { };
554 struct __is_null_pointer_helper<std::nullptr_t>
555 :
public true_type { };
558 template<
typename _Tp>
560 :
public __is_null_pointer_helper<typename remove_cv<_Tp>::type>::type
564 template<
typename _Tp>
572 template<
typename _Tp>
574 :
public __or_<is_lvalue_reference<_Tp>,
575 is_rvalue_reference<_Tp>>::type
579 template<
typename _Tp>
581 :
public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type
585 template<
typename _Tp>
587 :
public __or_<is_arithmetic<_Tp>, is_void<_Tp>,
588 is_null_pointer<_Tp>>::type
592 template<
typename _Tp>
594 :
public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
602 template<
typename _Tp>
604 :
public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
605 is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type
609 template<
typename _Tp>
611 :
public __not_<is_fundamental<_Tp>>
::type { };
613 template<
typename _Tp>
614 struct __is_member_pointer_helper
615 :
public false_type { };
617 template<
typename _Tp,
typename _Cp>
618 struct __is_member_pointer_helper<_Tp _Cp::*>
619 :
public true_type { };
622 template<
typename _Tp>
624 :
public __is_member_pointer_helper<typename remove_cv<_Tp>::type>
::type 629 template<
typename _Tp>
630 struct __is_referenceable
631 :
public __or_<is_object<_Tp>, is_reference<_Tp>>
::type 634 template<
typename _Res,
typename... _Args _GLIBCXX_NOEXCEPT_PARM>
635 struct __is_referenceable<_Res(_Args...) _GLIBCXX_NOEXCEPT_QUAL>
639 template<
typename _Res,
typename... _Args _GLIBCXX_NOEXCEPT_PARM>
640 struct __is_referenceable<_Res(_Args......) _GLIBCXX_NOEXCEPT_QUAL>
649 :
public false_type { };
651 template<
typename _Tp>
653 :
public true_type { };
658 :
public false_type { };
660 template<
typename _Tp>
662 :
public true_type { };
665 template<
typename _Tp>
671 template<
typename _Tp>
672 struct is_trivially_copyable
677 template<
typename _Tp>
684 template<
typename _Tp>
690 template<
typename _Tp>
696 template<
typename _Tp>
702 template<
typename _Tp>
707 #if __cplusplus >= 201402L 708 #define __cpp_lib_is_final 201402L 710 template<
typename _Tp>
717 template<
typename _Tp>
722 template<
typename _Tp,
724 struct __is_signed_helper
725 :
public false_type { };
727 template<
typename _Tp>
728 struct __is_signed_helper<_Tp, true>
733 template<typename _Tp>
735 : public __is_signed_helper<_Tp>::type
739 template<typename _Tp>
741 : public __and_<is_arithmetic<_Tp>, __not_<is_signed<_Tp>>>
752 template<typename _Tp, typename _Up = _Tp&&>
756 template<typename _Tp>
760 template<typename _Tp>
761 auto declval() noexcept -> decltype(__declval<_Tp>(0));
763 template<typename, unsigned = 0>
769 template<typename _Tp>
770 struct __is_array_known_bounds
774 template<
typename _Tp>
775 struct __is_array_unknown_bounds
776 :
public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
784 struct __do_is_destructible_impl
786 template<
typename _Tp,
typename = decltype(declval<_Tp&>().~_Tp())>
787 static true_type __test(
int);
790 static false_type __test(...);
793 template<
typename _Tp>
794 struct __is_destructible_impl
795 :
public __do_is_destructible_impl
797 typedef decltype(__test<_Tp>(0)) type;
800 template<
typename _Tp,
801 bool = __or_<is_void<_Tp>,
802 __is_array_unknown_bounds<_Tp>,
805 struct __is_destructible_safe;
807 template<
typename _Tp>
808 struct __is_destructible_safe<_Tp, false, false>
809 :
public __is_destructible_impl<typename
810 remove_all_extents<_Tp>::type>::type
813 template<
typename _Tp>
814 struct __is_destructible_safe<_Tp, true, false>
815 :
public false_type { };
817 template<
typename _Tp>
818 struct __is_destructible_safe<_Tp, false, true>
819 :
public true_type { };
822 template<
typename _Tp>
824 :
public __is_destructible_safe<_Tp>::type
831 struct __do_is_nt_destructible_impl
833 template<
typename _Tp>
838 static false_type __test(...);
841 template<
typename _Tp>
842 struct __is_nt_destructible_impl
843 :
public __do_is_nt_destructible_impl
845 typedef decltype(__test<_Tp>(0)) type;
848 template<
typename _Tp,
849 bool = __or_<is_void<_Tp>,
850 __is_array_unknown_bounds<_Tp>,
853 struct __is_nt_destructible_safe;
855 template<
typename _Tp>
856 struct __is_nt_destructible_safe<_Tp, false, false>
857 :
public __is_nt_destructible_impl<typename
858 remove_all_extents<_Tp>::type>::type
861 template<
typename _Tp>
862 struct __is_nt_destructible_safe<_Tp, true, false>
863 :
public false_type { };
865 template<
typename _Tp>
866 struct __is_nt_destructible_safe<_Tp, false, true>
867 :
public true_type { };
870 template<
typename _Tp>
872 :
public __is_nt_destructible_safe<_Tp>::type
875 struct __do_is_default_constructible_impl
877 template<
typename _Tp,
typename = decltype(_Tp())>
878 static true_type __test(
int);
881 static false_type __test(...);
884 template<
typename _Tp>
885 struct __is_default_constructible_impl
886 :
public __do_is_default_constructible_impl
888 typedef decltype(__test<_Tp>(0)) type;
891 template<
typename _Tp>
892 struct __is_default_constructible_atom
893 :
public __and_<__not_<is_void<_Tp>>,
894 __is_default_constructible_impl<_Tp>>
897 template<typename _Tp, bool = is_array<_Tp>::value>
898 struct __is_default_constructible_safe;
905 template<
typename _Tp>
906 struct __is_default_constructible_safe<_Tp, true>
907 :
public __and_<__is_array_known_bounds<_Tp>,
908 __is_default_constructible_atom<typename
909 remove_all_extents<_Tp>::type>>
912 template<
typename _Tp>
913 struct __is_default_constructible_safe<_Tp, false>
914 :
public __is_default_constructible_atom<_Tp>::type
918 template<
typename _Tp>
920 :
public __is_default_constructible_safe<_Tp>::type
924 template<
typename _Tp,
typename... _Args>
926 :
public __bool_constant<__is_constructible(_Tp, _Args...)>
929 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
930 struct __is_copy_constructible_impl;
932 template<
typename _Tp>
933 struct __is_copy_constructible_impl<_Tp, false>
934 :
public false_type { };
936 template<
typename _Tp>
937 struct __is_copy_constructible_impl<_Tp, true>
942 template<
typename _Tp>
944 :
public __is_copy_constructible_impl<_Tp>
947 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
948 struct __is_move_constructible_impl;
950 template<
typename _Tp>
951 struct __is_move_constructible_impl<_Tp, false>
952 :
public false_type { };
954 template<
typename _Tp>
955 struct __is_move_constructible_impl<_Tp, true>
960 template<
typename _Tp>
962 :
public __is_move_constructible_impl<_Tp>
965 template<
typename _Tp>
966 struct __is_nt_default_constructible_atom
970 template<typename _Tp, bool = is_array<_Tp>::value>
971 struct __is_nt_default_constructible_impl;
973 template<
typename _Tp>
974 struct __is_nt_default_constructible_impl<_Tp, true>
975 :
public __and_<__is_array_known_bounds<_Tp>,
976 __is_nt_default_constructible_atom<typename
977 remove_all_extents<_Tp>::type>>
980 template<
typename _Tp>
981 struct __is_nt_default_constructible_impl<_Tp, false>
982 :
public __is_nt_default_constructible_atom<_Tp>
986 template<
typename _Tp>
988 :
public __and_<is_default_constructible<_Tp>,
989 __is_nt_default_constructible_impl<_Tp>>
992 template<
typename _Tp,
typename... _Args>
993 struct __is_nt_constructible_impl
997 template<
typename _Tp,
typename _Arg>
998 struct __is_nt_constructible_impl<_Tp, _Arg>
1000 noexcept(static_cast<_Tp>(declval<_Arg>()))>
1003 template<
typename _Tp>
1004 struct __is_nt_constructible_impl<_Tp>
1009 template<
typename _Tp,
typename... _Args>
1011 :
public __and_<is_constructible<_Tp, _Args...>,
1012 __is_nt_constructible_impl<_Tp, _Args...>>
1015 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1016 struct __is_nothrow_copy_constructible_impl;
1018 template<
typename _Tp>
1019 struct __is_nothrow_copy_constructible_impl<_Tp, false>
1020 :
public false_type { };
1022 template<
typename _Tp>
1023 struct __is_nothrow_copy_constructible_impl<_Tp, true>
1028 template<
typename _Tp>
1030 :
public __is_nothrow_copy_constructible_impl<_Tp>
1033 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1034 struct __is_nothrow_move_constructible_impl;
1036 template<
typename _Tp>
1037 struct __is_nothrow_move_constructible_impl<_Tp, false>
1038 :
public false_type { };
1040 template<
typename _Tp>
1041 struct __is_nothrow_move_constructible_impl<_Tp, true>
1046 template<
typename _Tp>
1048 :
public __is_nothrow_move_constructible_impl<_Tp>
1052 template<
typename _Tp,
typename _Up>
1054 :
public __bool_constant<__is_assignable(_Tp, _Up)>
1057 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1058 struct __is_copy_assignable_impl;
1060 template<
typename _Tp>
1061 struct __is_copy_assignable_impl<_Tp, false>
1062 :
public false_type { };
1064 template<
typename _Tp>
1065 struct __is_copy_assignable_impl<_Tp, true>
1070 template<
typename _Tp>
1072 :
public __is_copy_assignable_impl<_Tp>
1075 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1076 struct __is_move_assignable_impl;
1078 template<
typename _Tp>
1079 struct __is_move_assignable_impl<_Tp, false>
1080 :
public false_type { };
1082 template<
typename _Tp>
1083 struct __is_move_assignable_impl<_Tp, true>
1088 template<
typename _Tp>
1090 :
public __is_move_assignable_impl<_Tp>
1093 template<
typename _Tp,
typename _Up>
1094 struct __is_nt_assignable_impl
1099 template<
typename _Tp,
typename _Up>
1101 :
public __and_<is_assignable<_Tp, _Up>,
1102 __is_nt_assignable_impl<_Tp, _Up>>
1105 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1106 struct __is_nt_copy_assignable_impl;
1108 template<
typename _Tp>
1109 struct __is_nt_copy_assignable_impl<_Tp, false>
1110 :
public false_type { };
1112 template<
typename _Tp>
1113 struct __is_nt_copy_assignable_impl<_Tp, true>
1118 template<
typename _Tp>
1120 :
public __is_nt_copy_assignable_impl<_Tp>
1123 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1124 struct __is_nt_move_assignable_impl;
1126 template<
typename _Tp>
1127 struct __is_nt_move_assignable_impl<_Tp, false>
1128 :
public false_type { };
1130 template<
typename _Tp>
1131 struct __is_nt_move_assignable_impl<_Tp, true>
1136 template<
typename _Tp>
1138 :
public __is_nt_move_assignable_impl<_Tp>
1142 template<
typename _Tp,
typename... _Args>
1144 :
public __bool_constant<__is_trivially_constructible(_Tp, _Args...)>
1148 template<
typename _Tp>
1153 struct __do_is_implicitly_default_constructible_impl
1155 template <
typename _Tp>
1156 static void __helper(
const _Tp&);
1158 template <
typename _Tp>
1159 static true_type __test(
const _Tp&,
1160 decltype(__helper<const _Tp&>({}))* = 0);
1162 static false_type __test(...);
1165 template<
typename _Tp>
1166 struct __is_implicitly_default_constructible_impl
1167 :
public __do_is_implicitly_default_constructible_impl
1169 typedef decltype(__test(declval<_Tp>())) type;
1172 template<
typename _Tp>
1173 struct __is_implicitly_default_constructible_safe
1174 :
public __is_implicitly_default_constructible_impl<_Tp>::type
1177 template <
typename _Tp>
1178 struct __is_implicitly_default_constructible
1179 :
public __and_<is_default_constructible<_Tp>,
1180 __is_implicitly_default_constructible_safe<_Tp>>
1185 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1188 template<
typename _Tp>
1190 :
public false_type { };
1192 template<
typename _Tp>
1194 :
public __and_<is_copy_constructible<_Tp>,
1195 integral_constant<bool,
1196 __is_trivially_constructible(_Tp, const _Tp&)>>
1199 template<
typename _Tp>
1200 struct is_trivially_copy_constructible
1206 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1209 template<
typename _Tp>
1211 :
public false_type { };
1213 template<
typename _Tp>
1215 :
public __and_<is_move_constructible<_Tp>,
1216 integral_constant<bool,
1217 __is_trivially_constructible(_Tp, _Tp&&)>>
1220 template<
typename _Tp>
1221 struct is_trivially_move_constructible
1226 template<
typename _Tp,
typename _Up>
1228 :
public __bool_constant<__is_trivially_assignable(_Tp, _Up)>
1233 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1236 template<
typename _Tp>
1238 :
public false_type { };
1240 template<
typename _Tp>
1242 :
public __bool_constant<__is_trivially_assignable(_Tp&, const _Tp&)>
1245 template<
typename _Tp>
1246 struct is_trivially_copy_assignable
1252 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1255 template<
typename _Tp>
1257 :
public false_type { };
1259 template<
typename _Tp>
1261 :
public __bool_constant<__is_trivially_assignable(_Tp&, _Tp&&)>
1264 template<
typename _Tp>
1265 struct is_trivially_move_assignable
1270 template<
typename _Tp>
1272 :
public __and_<is_destructible<_Tp>,
1273 __bool_constant<__has_trivial_destructor(_Tp)>>
1278 template<
typename _Tp>
1287 template<
typename _Tp>
1296 template<
typename _Tp, std::
size_t _Size>
1297 struct rank<_Tp[_Size]>
1300 template<
typename _Tp>
1305 template<
typename,
unsigned _U
int>
1309 template<
typename _Tp,
unsigned _U
int, std::
size_t _Size>
1310 struct extent<_Tp[_Size], _Uint>
1312 _Uint == 0 ? _Size : extent<_Tp,
1316 template<
typename _Tp,
unsigned _U
int>
1317 struct extent<_Tp[], _Uint>
1319 _Uint == 0 ? 0 : extent<_Tp,
1327 template<
typename,
typename>
1329 :
public false_type { };
1331 template<
typename _Tp>
1333 :
public true_type { };
1336 template<
typename _Base,
typename _Derived>
1341 template<
typename _From,
typename _To,
1344 struct __is_convertible_helper
1349 template<
typename _From,
typename _To>
1350 class __is_convertible_helper<_From, _To, false>
1352 template<
typename _To1>
1353 static void __test_aux(_To1) noexcept;
1355 template<
typename _From1,
typename _To1,
1356 typename = decltype(__test_aux<_To1>(std::declval<_From1>()))>
1360 template<
typename,
typename>
1365 typedef decltype(__test<_From, _To>(0))
type;
1370 template<
typename _From,
typename _To>
1372 :
public __is_convertible_helper<_From, _To>::type
1375 #if __cplusplus > 201703L 1376 template<
typename _From,
typename _To,
1377 bool = __or_<is_void<_From>, is_function<_To>,
1379 struct __is_nt_convertible_helper
1383 template<
typename _From,
typename _To>
1384 class __is_nt_convertible_helper<_From, _To, false>
1386 template<
typename _To1>
1387 static void __test_aux(_To1) noexcept;
1389 template<
typename _From1,
typename _To1>
1390 static bool_constant<noexcept(__test_aux<_To1>(std::declval<_From1>()))>
1393 template<
typename,
typename>
1398 using type = decltype(__test<_From, _To>(0));
1402 template<
typename _From,
typename _To>
1403 struct is_nothrow_convertible
1404 :
public __is_nt_convertible_helper<_From, _To>::type
1408 template<
typename _From,
typename _To>
1409 inline constexpr
bool is_nothrow_convertible_v
1410 = is_nothrow_convertible<_From, _To>::value;
1416 template<
typename _Tp>
1418 {
typedef _Tp type; };
1420 template<
typename _Tp>
1422 {
typedef _Tp type; };
1425 template<
typename _Tp>
1427 {
typedef _Tp type; };
1429 template<
typename _Tp>
1431 {
typedef _Tp type; };
1434 template<
typename _Tp>
1442 template<
typename _Tp>
1444 {
typedef _Tp
const type; };
1447 template<
typename _Tp>
1449 {
typedef _Tp
volatile type; };
1452 template<
typename _Tp>
1459 #if __cplusplus > 201103L 1461 #define __cpp_lib_transformation_trait_aliases 201304 1464 template<
typename _Tp>
1468 template<
typename _Tp>
1472 template<
typename _Tp>
1476 template<
typename _Tp>
1480 template<
typename _Tp>
1484 template<
typename _Tp>
1491 template<
typename _Tp>
1493 {
typedef _Tp type; };
1495 template<
typename _Tp>
1497 {
typedef _Tp type; };
1499 template<
typename _Tp>
1501 {
typedef _Tp type; };
1503 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1504 struct __add_lvalue_reference_helper
1505 {
typedef _Tp type; };
1507 template<
typename _Tp>
1508 struct __add_lvalue_reference_helper<_Tp, true>
1509 {
typedef _Tp& type; };
1512 template<
typename _Tp>
1514 :
public __add_lvalue_reference_helper<_Tp>
1517 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1518 struct __add_rvalue_reference_helper
1519 {
typedef _Tp type; };
1521 template<
typename _Tp>
1522 struct __add_rvalue_reference_helper<_Tp, true>
1523 {
typedef _Tp&& type; };
1526 template<
typename _Tp>
1528 :
public __add_rvalue_reference_helper<_Tp>
1531 #if __cplusplus > 201103L 1533 template<
typename _Tp>
1537 template<
typename _Tp>
1541 template<
typename _Tp>
1548 template<
typename _Unqualified,
bool _IsConst,
bool _IsVol>
1549 struct __cv_selector;
1551 template<
typename _Unqualified>
1552 struct __cv_selector<_Unqualified, false, false>
1553 {
typedef _Unqualified __type; };
1555 template<
typename _Unqualified>
1556 struct __cv_selector<_Unqualified, false, true>
1557 {
typedef volatile _Unqualified __type; };
1559 template<
typename _Unqualified>
1560 struct __cv_selector<_Unqualified, true, false>
1561 {
typedef const _Unqualified __type; };
1563 template<
typename _Unqualified>
1564 struct __cv_selector<_Unqualified, true, true>
1565 {
typedef const volatile _Unqualified __type; };
1567 template<
typename _Qualified,
typename _Unqualified,
1570 class __match_cv_qualifiers
1572 typedef __cv_selector<_Unqualified, _IsConst, _IsVol> __match;
1575 typedef typename __match::__type __type;
1579 template<
typename _Tp>
1580 struct __make_unsigned
1581 {
typedef _Tp __type; };
1584 struct __make_unsigned<char>
1585 {
typedef unsigned char __type; };
1588 struct __make_unsigned<signed char>
1589 {
typedef unsigned char __type; };
1592 struct __make_unsigned<short>
1593 {
typedef unsigned short __type; };
1596 struct __make_unsigned<int>
1597 {
typedef unsigned int __type; };
1600 struct __make_unsigned<long>
1601 {
typedef unsigned long __type; };
1604 struct __make_unsigned<long long>
1605 {
typedef unsigned long long __type; };
1607 #if defined(__GLIBCXX_TYPE_INT_N_0) 1609 struct __make_unsigned<__GLIBCXX_TYPE_INT_N_0>
1610 {
typedef unsigned __GLIBCXX_TYPE_INT_N_0 __type; };
1612 #if defined(__GLIBCXX_TYPE_INT_N_1) 1614 struct __make_unsigned<__GLIBCXX_TYPE_INT_N_1>
1615 {
typedef unsigned __GLIBCXX_TYPE_INT_N_1 __type; };
1617 #if defined(__GLIBCXX_TYPE_INT_N_2) 1619 struct __make_unsigned<__GLIBCXX_TYPE_INT_N_2>
1620 {
typedef unsigned __GLIBCXX_TYPE_INT_N_2 __type; };
1622 #if defined(__GLIBCXX_TYPE_INT_N_3) 1624 struct __make_unsigned<__GLIBCXX_TYPE_INT_N_3>
1625 {
typedef unsigned __GLIBCXX_TYPE_INT_N_3 __type; };
1629 template<
typename _Tp,
1632 class __make_unsigned_selector;
1634 template<
typename _Tp>
1635 class __make_unsigned_selector<_Tp, true, false>
1637 using __unsigned_type
1638 =
typename __make_unsigned<typename remove_cv<_Tp>::type>::__type;
1642 =
typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type;
1645 class __make_unsigned_selector_base
1648 template<
typename...>
struct _List { };
1650 template<
typename _Tp,
typename... _Up>
1651 struct _List<_Tp, _Up...> : _List<_Up...>
1652 {
static constexpr
size_t __size =
sizeof(_Tp); };
1654 template<
size_t _Sz,
typename _Tp,
bool = (_Sz <= _Tp::__size)>
1657 template<
size_t _Sz,
typename _U
int,
typename... _UInts>
1658 struct __select<_Sz, _List<_Uint, _UInts...>,
true>
1659 {
using __type = _Uint; };
1661 template<
size_t _Sz,
typename _Uint,
typename... _UInts>
1662 struct __select<_Sz, _List<_Uint, _UInts...>, false>
1663 : __select<_Sz, _List<_UInts...>>
1668 template<
typename _Tp>
1669 class __make_unsigned_selector<_Tp, false, true>
1670 : __make_unsigned_selector_base
1673 using _UInts = _List<
unsigned char,
unsigned short,
unsigned int,
1674 unsigned long,
unsigned long long>;
1676 using __unsigned_type =
typename __select<sizeof(_Tp), _UInts>::__type;
1680 =
typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type;
1687 #if defined(_GLIBCXX_USE_WCHAR_T) 1689 struct __make_unsigned<wchar_t>
1692 =
typename __make_unsigned_selector<wchar_t, false, true>::__type;
1697 struct __make_unsigned<char16_t>
1700 =
typename __make_unsigned_selector<char16_t, false, true>::__type;
1704 struct __make_unsigned<char32_t>
1707 =
typename __make_unsigned_selector<char32_t, false, true>::__type;
1714 template<
typename _Tp>
1716 {
typedef typename __make_unsigned_selector<_Tp>::__type type; };
1724 template<
typename _Tp>
1725 struct __make_signed
1726 {
typedef _Tp __type; };
1729 struct __make_signed<char>
1730 {
typedef signed char __type; };
1733 struct __make_signed<unsigned char>
1734 {
typedef signed char __type; };
1737 struct __make_signed<unsigned short>
1738 {
typedef signed short __type; };
1741 struct __make_signed<unsigned int>
1742 {
typedef signed int __type; };
1745 struct __make_signed<unsigned long>
1746 {
typedef signed long __type; };
1749 struct __make_signed<unsigned long long>
1750 {
typedef signed long long __type; };
1752 #if defined(__GLIBCXX_TYPE_INT_N_0) 1754 struct __make_signed<unsigned __GLIBCXX_TYPE_INT_N_0>
1755 {
typedef __GLIBCXX_TYPE_INT_N_0 __type; };
1757 #if defined(__GLIBCXX_TYPE_INT_N_1) 1759 struct __make_signed<unsigned __GLIBCXX_TYPE_INT_N_1>
1760 {
typedef __GLIBCXX_TYPE_INT_N_1 __type; };
1762 #if defined(__GLIBCXX_TYPE_INT_N_2) 1764 struct __make_signed<unsigned __GLIBCXX_TYPE_INT_N_2>
1765 {
typedef __GLIBCXX_TYPE_INT_N_2 __type; };
1767 #if defined(__GLIBCXX_TYPE_INT_N_3) 1769 struct __make_signed<unsigned __GLIBCXX_TYPE_INT_N_3>
1770 {
typedef __GLIBCXX_TYPE_INT_N_3 __type; };
1774 template<
typename _Tp,
1777 class __make_signed_selector;
1779 template<
typename _Tp>
1780 class __make_signed_selector<_Tp, true, false>
1783 =
typename __make_signed<typename remove_cv<_Tp>::type>::__type;
1787 =
typename __match_cv_qualifiers<_Tp, __signed_type>::__type;
1791 template<
typename _Tp>
1792 class __make_signed_selector<_Tp, false, true>
1794 typedef typename __make_unsigned_selector<_Tp>::__type __unsigned_type;
1797 typedef typename __make_signed_selector<__unsigned_type>::__type __type;
1804 #if defined(_GLIBCXX_USE_WCHAR_T) 1806 struct __make_signed<wchar_t>
1809 =
typename __make_signed_selector<wchar_t, false, true>::__type;
1814 struct __make_signed<char16_t>
1817 =
typename __make_signed_selector<char16_t, false, true>::__type;
1821 struct __make_signed<char32_t>
1824 =
typename __make_signed_selector<char32_t, false, true>::__type;
1831 template<
typename _Tp>
1833 {
typedef typename __make_signed_selector<_Tp>::__type type; };
1839 #if __cplusplus > 201103L 1841 template<
typename _Tp>
1845 template<
typename _Tp>
1852 template<
typename _Tp>
1854 {
typedef _Tp type; };
1856 template<
typename _Tp, std::
size_t _Size>
1858 {
typedef _Tp type; };
1860 template<
typename _Tp>
1862 {
typedef _Tp type; };
1865 template<
typename _Tp>
1867 {
typedef _Tp type; };
1869 template<
typename _Tp, std::
size_t _Size>
1871 {
typedef typename remove_all_extents<_Tp>::type type; };
1873 template<
typename _Tp>
1875 {
typedef typename remove_all_extents<_Tp>::type type; };
1877 #if __cplusplus > 201103L 1879 template<
typename _Tp>
1883 template<
typename _Tp>
1889 template<
typename _Tp,
typename>
1890 struct __remove_pointer_helper
1891 {
typedef _Tp type; };
1893 template<
typename _Tp,
typename _Up>
1894 struct __remove_pointer_helper<_Tp, _Up*>
1895 {
typedef _Up type; };
1898 template<
typename _Tp>
1900 :
public __remove_pointer_helper<_Tp, typename remove_cv<_Tp>::type>
1904 template<
typename _Tp,
bool = __or_<__is_referenceable<_Tp>,
1905 is_
void<_Tp>>::value>
1907 {
typedef _Tp type; };
1909 template<
typename _Tp>
1911 {
typedef typename remove_reference<_Tp>::type* type; };
1913 template<
typename _Tp>
1918 #if __cplusplus > 201103L 1920 template<
typename _Tp>
1924 template<
typename _Tp>
1928 template<std::
size_t _Len>
1929 struct __aligned_storage_msa
1933 unsigned char __data[_Len];
1934 struct __attribute__((__aligned__)) { } __align;
1948 template<std::size_t _Len, std::size_t _Align =
1949 __alignof__(
typename __aligned_storage_msa<_Len>::__type)>
1954 unsigned char __data[_Len];
1955 struct __attribute__((__aligned__((_Align)))) { } __align;
1959 template <
typename... _Types>
1960 struct __strictest_alignment
1962 static const size_t _S_alignment = 0;
1963 static const size_t _S_size = 0;
1966 template <
typename _Tp,
typename... _Types>
1967 struct __strictest_alignment<_Tp, _Types...>
1969 static const size_t _S_alignment =
1970 alignof(_Tp) > __strictest_alignment<_Types...>::_S_alignment
1971 ?
alignof(_Tp) : __strictest_alignment<_Types...>::_S_alignment;
1972 static const size_t _S_size =
1973 sizeof(_Tp) > __strictest_alignment<_Types...>::_S_size
1974 ?
sizeof(_Tp) : __strictest_alignment<_Types...>::_S_size;
1987 template <
size_t _Len,
typename... _Types>
1991 static_assert(
sizeof...(_Types) != 0,
"At least one type is required");
1993 using __strictest = __strictest_alignment<_Types...>;
1994 static const size_t _S_len = _Len > __strictest::_S_size
1995 ? _Len : __strictest::_S_size;
1998 static const size_t alignment_value = __strictest::_S_alignment;
2003 template <
size_t _Len,
typename... _Types>
2004 const size_t aligned_union<_Len, _Types...>::alignment_value;
2008 template<
typename _Up,
2011 struct __decay_selector;
2014 template<
typename _Up>
2015 struct __decay_selector<_Up, false, false>
2016 {
typedef typename remove_cv<_Up>::type __type; };
2018 template<
typename _Up>
2019 struct __decay_selector<_Up, true, false>
2020 {
typedef typename remove_extent<_Up>::type* __type; };
2022 template<
typename _Up>
2023 struct __decay_selector<_Up, false, true>
2024 {
typedef typename add_pointer<_Up>::type __type; };
2027 template<
typename _Tp>
2030 typedef typename remove_reference<_Tp>::type __remove_type;
2033 typedef typename __decay_selector<__remove_type>::__type type;
2036 template<
typename _Tp>
2040 template<
typename _Tp>
2041 struct __strip_reference_wrapper
2046 template<
typename _Tp>
2049 typedef _Tp& __type;
2052 template<
typename _Tp>
2053 struct __decay_and_strip
2055 typedef typename __strip_reference_wrapper<
2056 typename decay<_Tp>::type>::__type __type;
2062 template<
bool,
typename _Tp =
void>
2067 template<
typename _Tp>
2069 {
typedef _Tp type; };
2071 template<
typename... _Cond>
2072 using _Require =
typename enable_if<__and_<_Cond...>::value>::type;
2076 template<
bool _Cond,
typename _Iftrue,
typename _Iffalse>
2078 {
typedef _Iftrue type; };
2081 template<
typename _Iftrue,
typename _Iffalse>
2083 {
typedef _Iffalse type; };
2086 template<
typename... _Tp>
2091 struct __do_common_type_impl
2093 template<
typename _Tp,
typename _Up>
2094 static __success_type<
typename decay<decltype
2095 (
true ? std::declval<_Tp>()
2096 : std::declval<_Up>())>::type> _S_test(
int);
2098 template<
typename,
typename>
2099 static __failure_type _S_test(...);
2102 template<
typename _Tp,
typename _Up>
2103 struct __common_type_impl
2104 :
private __do_common_type_impl
2106 typedef decltype(_S_test<_Tp, _Up>(0)) type;
2109 struct __do_member_type_wrapper
2111 template<
typename _Tp>
2112 static __success_type<typename _Tp::type> _S_test(
int);
2115 static __failure_type _S_test(...);
2118 template<
typename _Tp>
2119 struct __member_type_wrapper
2120 :
private __do_member_type_wrapper
2122 typedef decltype(_S_test<_Tp>(0)) type;
2125 template<typename _CTp, typename... _Args>
2126 struct __expanded_common_type_wrapper
2128 typedef common_type<
typename _CTp::type, _Args...> type;
2131 template<
typename... _Args>
2132 struct __expanded_common_type_wrapper<__failure_type, _Args...>
2133 {
typedef __failure_type type; };
2139 template<
typename _Tp>
2144 template<
typename _Tp,
typename _Up>
2146 :
public __common_type_impl<_Tp, _Up>::type
2149 template<
typename _Tp,
typename _Up,
typename... _Vp>
2151 :
public __expanded_common_type_wrapper<typename __member_type_wrapper<
2152 common_type<_Tp, _Up>>::type, _Vp...>::type
2156 template<
typename _Tp>
2159 typedef __underlying_type(_Tp) type;
2162 template<
typename _Tp>
2163 struct __declval_protector
2165 static const bool __stop =
false;
2168 template<
typename _Tp>
2169 auto declval() noexcept -> decltype(__declval<_Tp>(0))
2171 static_assert(__declval_protector<_Tp>::__stop,
2172 "declval() must not be used!");
2173 return __declval<_Tp>(0);
2177 template<
typename _Tp>
2178 using __remove_cvref_t
2182 template<
typename _Signature>
2187 #define __cpp_lib_result_of_sfinae 201210 2189 struct __invoke_memfun_ref { };
2190 struct __invoke_memfun_deref { };
2191 struct __invoke_memobj_ref { };
2192 struct __invoke_memobj_deref { };
2193 struct __invoke_other { };
2196 template<
typename _Tp,
typename _Tag>
2197 struct __result_of_success : __success_type<_Tp>
2198 {
using __invoke_type = _Tag; };
2201 struct __result_of_memfun_ref_impl
2203 template<
typename _Fp,
typename _Tp1,
typename... _Args>
2204 static __result_of_success<decltype(
2205 (std::declval<_Tp1>().*std::declval<_Fp>())(std::declval<_Args>()...)
2206 ), __invoke_memfun_ref> _S_test(
int);
2208 template<
typename...>
2209 static __failure_type _S_test(...);
2212 template<
typename _MemPtr,
typename _Arg,
typename... _Args>
2213 struct __result_of_memfun_ref
2214 :
private __result_of_memfun_ref_impl
2216 typedef decltype(_S_test<_MemPtr, _Arg, _Args...>(0)) type;
2220 struct __result_of_memfun_deref_impl
2222 template<
typename _Fp,
typename _Tp1,
typename... _Args>
2223 static __result_of_success<decltype(
2224 ((*std::declval<_Tp1>()).*std::declval<_Fp>())(std::declval<_Args>()...)
2225 ), __invoke_memfun_deref> _S_test(
int);
2227 template<
typename...>
2228 static __failure_type _S_test(...);
2231 template<
typename _MemPtr,
typename _Arg,
typename... _Args>
2232 struct __result_of_memfun_deref
2233 :
private __result_of_memfun_deref_impl
2235 typedef decltype(_S_test<_MemPtr, _Arg, _Args...>(0)) type;
2239 struct __result_of_memobj_ref_impl
2241 template<
typename _Fp,
typename _Tp1>
2242 static __result_of_success<decltype(
2243 std::declval<_Tp1>().*std::declval<_Fp>()
2244 ), __invoke_memobj_ref> _S_test(
int);
2246 template<
typename,
typename>
2247 static __failure_type _S_test(...);
2250 template<
typename _MemPtr,
typename _Arg>
2251 struct __result_of_memobj_ref
2252 :
private __result_of_memobj_ref_impl
2254 typedef decltype(_S_test<_MemPtr, _Arg>(0)) type;
2258 struct __result_of_memobj_deref_impl
2260 template<
typename _Fp,
typename _Tp1>
2261 static __result_of_success<decltype(
2262 (*std::declval<_Tp1>()).*std::declval<_Fp>()
2263 ), __invoke_memobj_deref> _S_test(
int);
2265 template<
typename,
typename>
2266 static __failure_type _S_test(...);
2269 template<
typename _MemPtr,
typename _Arg>
2270 struct __result_of_memobj_deref
2271 :
private __result_of_memobj_deref_impl
2273 typedef decltype(_S_test<_MemPtr, _Arg>(0)) type;
2276 template<typename _MemPtr, typename _Arg>
2277 struct __result_of_memobj;
2279 template<typename _Res, typename _Class, typename _Arg>
2280 struct __result_of_memobj<_Res _Class::*, _Arg>
2282 typedef __remove_cvref_t<_Arg> _Argval;
2283 typedef _Res _Class::* _MemPtr;
2286 __result_of_memobj_ref<_MemPtr, _Arg>,
2287 __result_of_memobj_deref<_MemPtr, _Arg>
2291 template<
typename _MemPtr,
typename _Arg,
typename... _Args>
2292 struct __result_of_memfun;
2294 template<
typename _Res,
typename _Class,
typename _Arg,
typename... _Args>
2295 struct __result_of_memfun<_Res _Class::*, _Arg, _Args...>
2297 typedef __remove_cvref_t<_Arg> _Argval;
2298 typedef _Res _Class::* _MemPtr;
2301 __result_of_memfun_ref<_MemPtr, _Arg, _Args...>,
2302 __result_of_memfun_deref<_MemPtr, _Arg, _Args...>
2311 template<typename _Tp, typename _Up = typename decay<_Tp>::type>
2317 template<
typename _Tp,
typename _Up>
2323 template<bool, bool,
typename _Functor,
typename... _ArgTypes>
2324 struct __result_of_impl
2326 typedef __failure_type type;
2329 template<
typename _MemPtr,
typename _Arg>
2330 struct __result_of_impl<true, false, _MemPtr, _Arg>
2331 :
public __result_of_memobj<typename decay<_MemPtr>::type,
2332 typename __inv_unwrap<_Arg>::type>
2335 template<
typename _MemPtr,
typename _Arg,
typename... _Args>
2336 struct __result_of_impl<false, true, _MemPtr, _Arg, _Args...>
2337 :
public __result_of_memfun<typename decay<_MemPtr>::type,
2338 typename __inv_unwrap<_Arg>::type, _Args...>
2342 struct __result_of_other_impl
2344 template<
typename _Fn,
typename... _Args>
2345 static __result_of_success<decltype(
2346 std::declval<_Fn>()(std::declval<_Args>()...)
2347 ), __invoke_other> _S_test(
int);
2349 template<
typename...>
2350 static __failure_type _S_test(...);
2353 template<
typename _Functor,
typename... _ArgTypes>
2354 struct __result_of_impl<false, false, _Functor, _ArgTypes...>
2355 :
private __result_of_other_impl
2357 typedef decltype(_S_test<_Functor, _ArgTypes...>(0)) type;
2361 template<typename _Functor, typename... _ArgTypes>
2362 struct __invoke_result
2363 : public __result_of_impl<
2370 _Functor, _ArgTypes...
2374 template<
typename _Functor,
typename... _ArgTypes>
2375 struct result_of<_Functor(_ArgTypes...)>
2376 :
public __invoke_result<_Functor, _ArgTypes...>
2379 #if __cplusplus >= 201402L 2381 template<
size_t _Len,
size_t _Align =
2382 __alignof__(
typename __aligned_storage_msa<_Len>::__type)>
2385 template <
size_t _Len,
typename... _Types>
2386 using aligned_union_t =
typename aligned_union<_Len, _Types...>::type;
2389 template<
typename _Tp>
2393 template<
bool _Cond,
typename _Tp =
void>
2397 template<
bool _Cond,
typename _Iftrue,
typename _Iffalse>
2401 template<
typename... _Tp>
2405 template<
typename _Tp>
2409 template<
typename _Tp>
2414 template<
bool _Cond,
typename _Tp =
void>
2418 template<
typename...>
using __void_t = void;
2420 #if __cplusplus >= 201703L || !defined(__STRICT_ANSI__) // c++17 or gnu++11 2421 #define __cpp_lib_void_t 201411 2427 template<
typename _Default,
typename _AlwaysVoid,
2428 template<
typename...>
class _Op,
typename... _Args>
2432 using type = _Default;
2436 template<
typename _Default,
template<
typename...>
class _Op,
2438 struct __detector<_Default, __void_t<_Op<_Args...>>, _Op, _Args...>
2441 using type = _Op<_Args...>;
2445 template<
typename _Default,
template<
typename...>
class _Op,
2450 template<
typename _Default,
template<
typename...>
class _Op,
2452 using __detected_or_t
2453 =
typename __detected_or<_Default, _Op, _Args...>::type;
2461 #define _GLIBCXX_HAS_NESTED_TYPE(_NTYPE) \ 2462 template<typename _Tp, typename = __void_t<>> \ 2463 struct __has_##_NTYPE \ 2466 template<typename _Tp> \ 2467 struct __has_##_NTYPE<_Tp, __void_t<typename _Tp::_NTYPE>> \ 2471 template <
typename _Tp>
2472 struct __is_swappable;
2474 template <
typename _Tp>
2475 struct __is_nothrow_swappable;
2477 template<
typename... _Elements>
2481 struct __is_tuple_like_impl : false_type
2484 template<
typename... _Tps>
2485 struct __is_tuple_like_impl<tuple<_Tps...>> : true_type
2489 template<
typename _Tp>
2490 struct __is_tuple_like
2491 :
public __is_tuple_like_impl<__remove_cvref_t<_Tp>>::type
2494 template<
typename _Tp>
2496 typename enable_if<__and_<__not_<__is_tuple_like<_Tp>>,
2497 is_move_constructible<_Tp>,
2498 is_move_assignable<_Tp>>::value>::type
2500 noexcept(__and_<is_nothrow_move_constructible<_Tp>,
2501 is_nothrow_move_assignable<_Tp>>::value);
2503 template<
typename _Tp,
size_t _Nm>
2505 typename enable_if<__is_swappable<_Tp>::value>::type
2506 swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
2507 noexcept(__is_nothrow_swappable<_Tp>::value);
2509 namespace __swappable_details {
2512 struct __do_is_swappable_impl
2514 template<
typename _Tp,
typename 2515 = decltype(swap(std::declval<_Tp&>(), std::declval<_Tp&>()))>
2516 static true_type __test(
int);
2519 static false_type __test(...);
2522 struct __do_is_nothrow_swappable_impl
2524 template<
typename _Tp>
2525 static __bool_constant<
2526 noexcept(swap(std::declval<_Tp&>(), std::declval<_Tp&>()))
2530 static false_type __test(...);
2535 template<
typename _Tp>
2536 struct __is_swappable_impl
2537 :
public __swappable_details::__do_is_swappable_impl
2539 typedef decltype(__test<_Tp>(0)) type;
2542 template<typename _Tp>
2543 struct __is_nothrow_swappable_impl
2544 : public __swappable_details::__do_is_nothrow_swappable_impl
2546 typedef decltype(__test<_Tp>(0)) type;
2549 template<typename _Tp>
2550 struct __is_swappable
2551 : public __is_swappable_impl<_Tp>::type
2554 template<
typename _Tp>
2555 struct __is_nothrow_swappable
2556 :
public __is_nothrow_swappable_impl<_Tp>::type
2559 #if __cplusplus > 201402L || !defined(__STRICT_ANSI__) // c++1z or gnu++11 2560 #define __cpp_lib_is_swappable 201603 2564 template<
typename _Tp>
2566 :
public __is_swappable_impl<_Tp>::type
2570 template<
typename _Tp>
2572 :
public __is_nothrow_swappable_impl<_Tp>::type
2575 #if __cplusplus >= 201402L 2577 template<
typename _Tp>
2582 template<
typename _Tp>
2585 #endif // __cplusplus >= 201402L 2587 namespace __swappable_with_details {
2590 struct __do_is_swappable_with_impl
2592 template<
typename _Tp,
typename _Up,
typename 2593 = decltype(swap(std::declval<_Tp>(), std::declval<_Up>())),
2595 = decltype(swap(std::declval<_Up>(), std::declval<_Tp>()))>
2596 static true_type __test(
int);
2598 template<
typename,
typename>
2599 static false_type __test(...);
2602 struct __do_is_nothrow_swappable_with_impl
2604 template<
typename _Tp,
typename _Up>
2605 static __bool_constant<
2606 noexcept(swap(std::declval<_Tp>(), std::declval<_Up>()))
2608 noexcept(swap(std::declval<_Up>(), std::declval<_Tp>()))
2611 template<
typename,
typename>
2612 static false_type __test(...);
2617 template<
typename _Tp,
typename _Up>
2618 struct __is_swappable_with_impl
2619 :
public __swappable_with_details::__do_is_swappable_with_impl
2621 typedef decltype(__test<_Tp, _Up>(0)) type;
2625 template<
typename _Tp>
2626 struct __is_swappable_with_impl<_Tp&, _Tp&>
2627 :
public __swappable_details::__do_is_swappable_impl
2629 typedef decltype(__test<_Tp&>(0)) type;
2632 template<
typename _Tp,
typename _Up>
2633 struct __is_nothrow_swappable_with_impl
2634 :
public __swappable_with_details::__do_is_nothrow_swappable_with_impl
2636 typedef decltype(__test<_Tp, _Up>(0)) type;
2640 template<
typename _Tp>
2641 struct __is_nothrow_swappable_with_impl<_Tp&, _Tp&>
2642 :
public __swappable_details::__do_is_nothrow_swappable_impl
2644 typedef decltype(__test<_Tp&>(0)) type;
2648 template<
typename _Tp,
typename _Up>
2650 :
public __is_swappable_with_impl<_Tp, _Up>::type
2654 template<
typename _Tp,
typename _Up>
2656 :
public __is_nothrow_swappable_with_impl<_Tp, _Up>::type
2659 #if __cplusplus >= 201402L 2661 template<
typename _Tp,
typename _Up>
2666 template<
typename _Tp,
typename _Up>
2669 #endif // __cplusplus >= 201402L 2671 #endif// c++1z or gnu++11 2675 template<
typename _Result,
typename _Ret,
typename =
void>
2676 struct __is_invocable_impl : false_type { };
2678 template<
typename _Result,
typename _Ret>
2679 struct __is_invocable_impl<_Result, _Ret, __void_t<typename _Result::type>>
2680 : __or_<is_void<_Ret>, is_convertible<typename _Result::type, _Ret>>::type
2683 template<
typename _Fn,
typename... _ArgTypes>
2684 struct __is_invocable
2685 : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>::type
2688 template<
typename _Fn,
typename _Tp,
typename... _Args>
2689 constexpr
bool __call_is_nt(__invoke_memfun_ref)
2691 using _Up =
typename __inv_unwrap<_Tp>::type;
2692 return noexcept((std::declval<_Up>().*std::declval<_Fn>())(
2693 std::declval<_Args>()...));
2696 template<
typename _Fn,
typename _Tp,
typename... _Args>
2697 constexpr
bool __call_is_nt(__invoke_memfun_deref)
2699 return noexcept(((*std::declval<_Tp>()).*std::declval<_Fn>())(
2700 std::declval<_Args>()...));
2703 template<
typename _Fn,
typename _Tp>
2704 constexpr
bool __call_is_nt(__invoke_memobj_ref)
2706 using _Up =
typename __inv_unwrap<_Tp>::type;
2707 return noexcept(std::declval<_Up>().*std::declval<_Fn>());
2710 template<
typename _Fn,
typename _Tp>
2711 constexpr
bool __call_is_nt(__invoke_memobj_deref)
2713 return noexcept((*std::declval<_Tp>()).*std::declval<_Fn>());
2716 template<
typename _Fn,
typename... _Args>
2717 constexpr
bool __call_is_nt(__invoke_other)
2719 return noexcept(std::declval<_Fn>()(std::declval<_Args>()...));
2722 template<
typename _Result,
typename _Fn,
typename... _Args>
2723 struct __call_is_nothrow
2725 std::__call_is_nt<_Fn, _Args...>(typename _Result::__invoke_type{})
2729 template<
typename _Fn,
typename... _Args>
2730 using __call_is_nothrow_
2731 = __call_is_nothrow<__invoke_result<_Fn, _Args...>, _Fn, _Args...>;
2734 template<
typename _Fn,
typename... _Args>
2735 struct __is_nothrow_invocable
2736 : __and_<__is_invocable<_Fn, _Args...>,
2737 __call_is_nothrow_<_Fn, _Args...>>::type
2741 __nonesuch() =
delete;
2742 ~__nonesuch() =
delete;
2743 __nonesuch(__nonesuch
const&) =
delete;
2744 void operator=(__nonesuch
const&) =
delete;
2747 #if __cplusplus >= 201703L 2748 # define __cpp_lib_is_invocable 201703 2751 template<
typename _Functor,
typename... _ArgTypes>
2752 struct invoke_result
2753 :
public __invoke_result<_Functor, _ArgTypes...>
2757 template<
typename _Fn,
typename... _Args>
2758 using invoke_result_t =
typename invoke_result<_Fn, _Args...>::type;
2761 template<
typename _Fn,
typename... _ArgTypes>
2763 : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>::type
2767 template<
typename _Ret,
typename _Fn,
typename... _ArgTypes>
2768 struct is_invocable_r
2769 : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, _Ret>::type
2773 template<
typename _Fn,
typename... _ArgTypes>
2774 struct is_nothrow_invocable
2775 : __and_<__is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>,
2776 __call_is_nothrow_<_Fn, _ArgTypes...>>::type
2779 template<
typename _Result,
typename _Ret,
typename =
void>
2780 struct __is_nt_invocable_impl : false_type { };
2782 template<
typename _Result,
typename _Ret>
2783 struct __is_nt_invocable_impl<_Result, _Ret,
2784 __void_t<typename _Result::type>>
2785 : __or_<is_void<_Ret>,
2786 __and_<is_convertible<typename _Result::type, _Ret>,
2787 is_nothrow_constructible<_Ret, typename _Result::type>>>
2791 template<
typename _Ret,
typename _Fn,
typename... _ArgTypes>
2792 struct is_nothrow_invocable_r
2793 : __and_<__is_nt_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, _Ret>,
2794 __call_is_nothrow_<_Fn, _ArgTypes...>>::type
2798 template<
typename _Fn,
typename... _Args>
2799 inline constexpr
bool is_invocable_v = is_invocable<_Fn, _Args...>::value;
2802 template<
typename _Fn,
typename... _Args>
2803 inline constexpr
bool is_nothrow_invocable_v
2804 = is_nothrow_invocable<_Fn, _Args...>::value;
2807 template<
typename _Fn,
typename... _Args>
2808 inline constexpr
bool is_invocable_r_v
2809 = is_invocable_r<_Fn, _Args...>::value;
2812 template<
typename _Fn,
typename... _Args>
2813 inline constexpr
bool is_nothrow_invocable_r_v
2814 = is_nothrow_invocable_r<_Fn, _Args...>::value;
2817 #if __cplusplus >= 201703L 2818 # define __cpp_lib_type_trait_variable_templates 201510L 2819 template <
typename _Tp>
2821 template <
typename _Tp>
2823 template <
typename _Tp>
2825 template <
typename _Tp>
2827 template <
typename _Tp>
2829 template <
typename _Tp>
2831 template <
typename _Tp>
2832 inline constexpr
bool is_lvalue_reference_v =
2834 template <
typename _Tp>
2835 inline constexpr
bool is_rvalue_reference_v =
2837 template <
typename _Tp>
2838 inline constexpr
bool is_member_object_pointer_v =
2840 template <
typename _Tp>
2841 inline constexpr
bool is_member_function_pointer_v =
2843 template <
typename _Tp>
2845 template <
typename _Tp>
2847 template <
typename _Tp>
2849 template <
typename _Tp>
2851 template <
typename _Tp>
2853 template <
typename _Tp>
2855 template <
typename _Tp>
2857 template <
typename _Tp>
2859 template <
typename _Tp>
2861 template <
typename _Tp>
2863 template <
typename _Tp>
2865 template <
typename _Tp>
2867 template <
typename _Tp>
2869 template <
typename _Tp>
2871 template <
typename _Tp>
2872 inline constexpr
bool is_trivially_copyable_v =
2873 is_trivially_copyable<_Tp>::value;
2874 template <
typename _Tp>
2876 template <
typename _Tp>
2878 template <
typename _Tp>
2880 template <
typename _Tp>
2882 template <
typename _Tp>
2884 template <
typename _Tp>
2886 template <
typename _Tp>
2888 template <
typename _Tp>
2889 inline constexpr
bool is_signed_v = is_signed<_Tp>::value;
2890 template <
typename _Tp>
2891 inline constexpr
bool is_unsigned_v = is_unsigned<_Tp>::value;
2892 template <
typename _Tp,
typename... _Args>
2893 inline constexpr
bool is_constructible_v =
2895 template <
typename _Tp>
2896 inline constexpr
bool is_default_constructible_v =
2898 template <
typename _Tp>
2899 inline constexpr
bool is_copy_constructible_v =
2901 template <
typename _Tp>
2902 inline constexpr
bool is_move_constructible_v =
2904 template <
typename _Tp,
typename _Up>
2906 template <
typename _Tp>
2908 template <
typename _Tp>
2910 template <
typename _Tp>
2912 template <
typename _Tp,
typename... _Args>
2913 inline constexpr
bool is_trivially_constructible_v =
2915 template <
typename _Tp>
2916 inline constexpr
bool is_trivially_default_constructible_v =
2918 template <
typename _Tp>
2919 inline constexpr
bool is_trivially_copy_constructible_v =
2920 is_trivially_copy_constructible<_Tp>::value;
2921 template <
typename _Tp>
2922 inline constexpr
bool is_trivially_move_constructible_v =
2923 is_trivially_move_constructible<_Tp>::value;
2924 template <
typename _Tp,
typename _Up>
2925 inline constexpr
bool is_trivially_assignable_v =
2927 template <
typename _Tp>
2928 inline constexpr
bool is_trivially_copy_assignable_v =
2929 is_trivially_copy_assignable<_Tp>::value;
2930 template <
typename _Tp>
2931 inline constexpr
bool is_trivially_move_assignable_v =
2932 is_trivially_move_assignable<_Tp>::value;
2933 template <
typename _Tp>
2934 inline constexpr
bool is_trivially_destructible_v =
2936 template <
typename _Tp,
typename... _Args>
2937 inline constexpr
bool is_nothrow_constructible_v =
2939 template <
typename _Tp>
2940 inline constexpr
bool is_nothrow_default_constructible_v =
2942 template <
typename _Tp>
2943 inline constexpr
bool is_nothrow_copy_constructible_v =
2945 template <
typename _Tp>
2946 inline constexpr
bool is_nothrow_move_constructible_v =
2948 template <
typename _Tp,
typename _Up>
2949 inline constexpr
bool is_nothrow_assignable_v =
2951 template <
typename _Tp>
2952 inline constexpr
bool is_nothrow_copy_assignable_v =
2954 template <
typename _Tp>
2955 inline constexpr
bool is_nothrow_move_assignable_v =
2957 template <
typename _Tp>
2958 inline constexpr
bool is_nothrow_destructible_v =
2960 template <
typename _Tp>
2961 inline constexpr
bool has_virtual_destructor_v =
2963 template <
typename _Tp>
2965 template <
typename _Tp>
2967 template <
typename _Tp,
unsigned _Idx = 0>
2969 template <
typename _Tp,
typename _Up>
2971 template <
typename _Base,
typename _Derived>
2973 template <
typename _From,
typename _To>
2976 #ifdef _GLIBCXX_HAVE_BUILTIN_HAS_UNIQ_OBJ_REP 2977 # define __cpp_lib_has_unique_object_representations 201606 2979 template<
typename _Tp>
2980 struct has_unique_object_representations
2981 : bool_constant<__has_unique_object_representations(
2982 remove_cv_t<remove_all_extents_t<_Tp>>
2986 template<
typename _Tp>
2987 inline constexpr
bool has_unique_object_representations_v
2988 = has_unique_object_representations<_Tp>::value;
2991 #ifdef _GLIBCXX_HAVE_BUILTIN_IS_AGGREGATE 2992 # define __cpp_lib_is_aggregate 201703 2994 template<
typename _Tp>
2996 : bool_constant<__is_aggregate(remove_cv_t<_Tp>)> { };
2999 template<
typename _Tp>
3000 inline constexpr
bool is_aggregate_v = is_aggregate<_Tp>::value;
3004 #if __cplusplus > 201703L 3008 little = __ORDER_LITTLE_ENDIAN__,
3009 big = __ORDER_BIG_ENDIAN__,
3010 native = __BYTE_ORDER__
3014 template<
typename _Tp>
3017 using type = __remove_cvref_t<_Tp>;
3020 template<
typename _Tp>
3021 using remove_cvref_t = __remove_cvref_t<_Tp>;
3024 template<
typename _Tp>
3025 struct type_identity {
using type = _Tp; };
3027 template<
typename _Tp>
3028 using type_identity_t =
typename type_identity<_Tp>::type;
3031 template<
typename _Tp>
3032 struct unwrap_reference {
using type = _Tp; };
3034 template<
typename _Tp>
3035 struct unwrap_reference<reference_wrapper<_Tp>> {
using type = _Tp&; };
3038 template<
typename _Tp>
3039 struct unwrap_ref_decay : unwrap_reference<decay_t<_Tp>> { };
3041 template<
typename _Tp>
3042 using unwrap_ref_decay_t =
typename unwrap_ref_decay<_Tp>::type;
3044 #ifdef _GLIBCXX_HAVE_BUILTIN_IS_CONSTANT_EVALUATED 3046 #define __cpp_lib_is_constant_evaluated 201811L 3048 constexpr
inline bool 3049 is_constant_evaluated() noexcept
3050 {
return __builtin_is_constant_evaluated(); }
3055 _GLIBCXX_END_NAMESPACE_VERSION
3060 #endif // _GLIBCXX_TYPE_TRAITS typename enable_if< _Cond, _Tp >::type enable_if_t
Alias template for enable_if.
typename underlying_type< _Tp >::type underlying_type_t
Alias template for underlying_type.
is_nothrow_copy_assignable
typename make_signed< _Tp >::type make_signed_t
Alias template for make_signed.
typename conditional< _Cond, _Iftrue, _Iffalse >::type conditional_t
Alias template for conditional.
_GLIBCXX17_INLINE constexpr bool is_nothrow_swappable_with_v
is_nothrow_swappable_with_v
Define a member typedef type only if a boolean constant is true.
typename add_cv< _Tp >::type add_cv_t
Alias template for add_cv.
is_trivially_constructible
typename remove_pointer< _Tp >::type remove_pointer_t
Alias template for remove_pointer.
Metafunctions used for detecting swappable types: p0185r1.
is_trivially_copy_constructible
The underlying type of an enum.
is_nothrow_swappable_with
__is_nullptr_t (extension).
typename add_lvalue_reference< _Tp >::type add_lvalue_reference_t
Alias template for add_lvalue_reference.
ISO C++ entities toplevel namespace is std.
typename remove_reference< _Tp >::type remove_reference_t
Alias template for remove_reference.
_GLIBCXX17_INLINE constexpr bool is_nothrow_swappable_v
is_nothrow_swappable_v
Implementation of the detection idiom (negative case).
is_member_function_pointer
typename remove_cv< _Tp >::type remove_cv_t
Alias template for remove_cv.
is_trivially_move_assignable
aligned_storage< _S_len, alignment_value >::type type
The storage.
Define a member typedef type to one of two argument types.
typename remove_const< _Tp >::type remove_const_t
Alias template for remove_const.
typename make_unsigned< _Tp >::type make_unsigned_t
Alias template for make_unsigned.
Primary class template for reference_wrapper.
typename add_rvalue_reference< _Tp >::type add_rvalue_reference_t
Alias template for add_rvalue_reference.
is_null_pointer (LWG 2247).
typename add_volatile< _Tp >::type add_volatile_t
Alias template for add_volatile.
integral_constant< bool, true > true_type
The type used as a compile-time boolean with true value.
is_nothrow_move_assignable
is_nothrow_default_constructible
is_trivially_default_constructible
is_nothrow_copy_constructible
is_trivially_destructible
_GLIBCXX17_INLINE constexpr bool is_swappable_v
is_swappable_v
typename remove_volatile< _Tp >::type remove_volatile_t
Alias template for remove_volatile.
typename aligned_storage< _Len, _Align >::type aligned_storage_t
Alias template for aligned_storage.
is_nothrow_move_constructible
integral_constant< bool, false > false_type
The type used as a compile-time boolean with false value.
typename remove_all_extents< _Tp >::type remove_all_extents_t
Alias template for remove_all_extents.
_GLIBCXX17_INLINE constexpr bool is_swappable_with_v
is_swappable_with_v
typename result_of< _Tp >::type result_of_t
Alias template for result_of.
is_trivially_move_constructible
Provide aligned storage for types.
typename remove_extent< _Tp >::type remove_extent_t
Alias template for remove_extent.
typename decay< _Tp >::type decay_t
Alias template for decay.
is_trivially_copy_assignable
typename add_pointer< _Tp >::type add_pointer_t
Alias template for add_pointer.
void void_t
A metafunction that always yields void, used for detecting valid types.
typename common_type< _Tp... >::type common_type_t
Alias template for common_type.
typename add_const< _Tp >::type add_const_t
Alias template for add_const.