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 #define __cpp_lib_logical_traits 201510 149 template<
typename... _Bn>
154 template<
typename... _Bn>
159 template<
typename _Pp>
164 template<
typename... _Bn>
165 inline constexpr
bool conjunction_v = conjunction<_Bn...>::value;
167 template<
typename... _Bn>
168 inline constexpr
bool disjunction_v = disjunction<_Bn...>::value;
170 template<
typename _Pp>
171 inline constexpr
bool negation_v = negation<_Pp>::value;
180 template<
typename _Tp>
181 struct __success_type
182 {
typedef _Tp type; };
184 struct __failure_type
193 struct __is_void_helper
197 struct __is_void_helper<void>
201 template<
typename _Tp>
203 :
public __is_void_helper<typename remove_cv<_Tp>::type>
::type 207 struct __is_integral_helper
211 struct __is_integral_helper<bool>
215 struct __is_integral_helper<char>
219 struct __is_integral_helper<signed char>
223 struct __is_integral_helper<unsigned char>
226 #ifdef _GLIBCXX_USE_WCHAR_T 228 struct __is_integral_helper<wchar_t>
233 struct __is_integral_helper<char16_t>
237 struct __is_integral_helper<char32_t>
241 struct __is_integral_helper<short>
245 struct __is_integral_helper<unsigned short>
249 struct __is_integral_helper<int>
253 struct __is_integral_helper<unsigned int>
257 struct __is_integral_helper<long>
261 struct __is_integral_helper<unsigned long>
265 struct __is_integral_helper<long long>
269 struct __is_integral_helper<unsigned long long>
274 #if defined(__GLIBCXX_TYPE_INT_N_0) 276 struct __is_integral_helper<__GLIBCXX_TYPE_INT_N_0>
280 struct __is_integral_helper<unsigned __GLIBCXX_TYPE_INT_N_0>
283 #if defined(__GLIBCXX_TYPE_INT_N_1) 285 struct __is_integral_helper<__GLIBCXX_TYPE_INT_N_1>
289 struct __is_integral_helper<unsigned __GLIBCXX_TYPE_INT_N_1>
292 #if defined(__GLIBCXX_TYPE_INT_N_2) 294 struct __is_integral_helper<__GLIBCXX_TYPE_INT_N_2>
298 struct __is_integral_helper<unsigned __GLIBCXX_TYPE_INT_N_2>
301 #if defined(__GLIBCXX_TYPE_INT_N_3) 303 struct __is_integral_helper<__GLIBCXX_TYPE_INT_N_3>
307 struct __is_integral_helper<unsigned __GLIBCXX_TYPE_INT_N_3>
312 template<
typename _Tp>
314 :
public __is_integral_helper<typename remove_cv<_Tp>::type>
::type 318 struct __is_floating_point_helper
322 struct __is_floating_point_helper<float>
326 struct __is_floating_point_helper<double>
330 struct __is_floating_point_helper<long double>
333 #if !defined(__STRICT_ANSI__) && defined(_GLIBCXX_USE_FLOAT128) 335 struct __is_floating_point_helper<__float128>
340 template<
typename _Tp>
342 :
public __is_floating_point_helper<typename remove_cv<_Tp>::type>::type
350 template<
typename _Tp, std::
size_t _Size>
354 template<
typename _Tp>
355 struct is_array<_Tp[]>
359 struct __is_pointer_helper
362 template<
typename _Tp>
363 struct __is_pointer_helper<_Tp*>
367 template<
typename _Tp>
369 :
public __is_pointer_helper<typename remove_cv<_Tp>::type>::type
377 template<
typename _Tp>
386 template<
typename _Tp>
394 struct __is_member_object_pointer_helper
397 template<
typename _Tp,
typename _Cp>
398 struct __is_member_object_pointer_helper<_Tp _Cp::*>
402 template<
typename _Tp>
404 :
public __is_member_object_pointer_helper<
405 typename remove_cv<_Tp>::type>::type
409 struct __is_member_function_pointer_helper
412 template<
typename _Tp,
typename _Cp>
413 struct __is_member_function_pointer_helper<_Tp _Cp::*>
414 :
public integral_constant<bool, is_function<_Tp>::value> { };
417 template<
typename _Tp>
419 :
public __is_member_function_pointer_helper<
420 typename remove_cv<_Tp>::type>
::type 424 template<
typename _Tp>
430 template<
typename _Tp>
436 template<
typename _Tp>
446 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
447 struct is_function<_Res(_ArgTypes...) _GLIBCXX_NOEXCEPT_QUAL>
450 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
451 struct is_function<_Res(_ArgTypes...) & _GLIBCXX_NOEXCEPT_QUAL>
454 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
455 struct is_function<_Res(_ArgTypes...) && _GLIBCXX_NOEXCEPT_QUAL>
458 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
459 struct is_function<_Res(_ArgTypes......) _GLIBCXX_NOEXCEPT_QUAL>
462 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
463 struct is_function<_Res(_ArgTypes......) & _GLIBCXX_NOEXCEPT_QUAL>
466 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
467 struct is_function<_Res(_ArgTypes......) && _GLIBCXX_NOEXCEPT_QUAL>
470 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
471 struct is_function<_Res(_ArgTypes...) const _GLIBCXX_NOEXCEPT_QUAL>
474 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
475 struct is_function<_Res(_ArgTypes...) const & _GLIBCXX_NOEXCEPT_QUAL>
478 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
479 struct is_function<_Res(_ArgTypes...) const && _GLIBCXX_NOEXCEPT_QUAL>
482 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
483 struct is_function<_Res(_ArgTypes......) const _GLIBCXX_NOEXCEPT_QUAL>
486 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
487 struct is_function<_Res(_ArgTypes......) const & _GLIBCXX_NOEXCEPT_QUAL>
490 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
491 struct is_function<_Res(_ArgTypes......) const && _GLIBCXX_NOEXCEPT_QUAL>
494 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
495 struct is_function<_Res(_ArgTypes...) volatile _GLIBCXX_NOEXCEPT_QUAL>
498 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
499 struct is_function<_Res(_ArgTypes...) volatile & _GLIBCXX_NOEXCEPT_QUAL>
502 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
503 struct is_function<_Res(_ArgTypes...) volatile && _GLIBCXX_NOEXCEPT_QUAL>
506 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
507 struct is_function<_Res(_ArgTypes......) volatile _GLIBCXX_NOEXCEPT_QUAL>
510 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
511 struct is_function<_Res(_ArgTypes......) volatile & _GLIBCXX_NOEXCEPT_QUAL>
514 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
515 struct is_function<_Res(_ArgTypes......) volatile && _GLIBCXX_NOEXCEPT_QUAL>
518 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
519 struct is_function<_Res(_ArgTypes...) const volatile _GLIBCXX_NOEXCEPT_QUAL>
522 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
523 struct is_function<_Res(_ArgTypes...) const volatile & _GLIBCXX_NOEXCEPT_QUAL>
526 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
527 struct is_function<_Res(_ArgTypes...) const volatile && _GLIBCXX_NOEXCEPT_QUAL>
530 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
531 struct is_function<_Res(_ArgTypes......) const volatile _GLIBCXX_NOEXCEPT_QUAL>
534 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
535 struct is_function<_Res(_ArgTypes......) const volatile & _GLIBCXX_NOEXCEPT_QUAL>
538 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
539 struct is_function<_Res(_ArgTypes......) const volatile && _GLIBCXX_NOEXCEPT_QUAL>
542 #define __cpp_lib_is_null_pointer 201309 545 struct __is_null_pointer_helper
549 struct __is_null_pointer_helper<
std::nullptr_t>
553 template<
typename _Tp>
555 :
public __is_null_pointer_helper<typename remove_cv<_Tp>::type>::type
559 template<
typename _Tp>
567 template<
typename _Tp>
569 :
public __or_<is_lvalue_reference<_Tp>,
570 is_rvalue_reference<_Tp>>::type
574 template<
typename _Tp>
576 :
public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type
580 template<
typename _Tp>
582 :
public __or_<is_arithmetic<_Tp>, is_void<_Tp>,
583 is_null_pointer<_Tp>>::type
587 template<
typename _Tp>
589 :
public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
597 template<
typename _Tp>
599 :
public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
600 is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type
604 template<
typename _Tp>
608 template<
typename _Tp>
609 struct __is_member_pointer_helper
612 template<
typename _Tp,
typename _Cp>
613 struct __is_member_pointer_helper<_Tp _Cp::*>
617 template<
typename _Tp>
618 struct is_member_pointer
619 :
public __is_member_pointer_helper<typename remove_cv<_Tp>::type>::type
624 template<
typename _Tp>
625 struct __is_referenceable
626 :
public __or_<is_object<_Tp>, is_reference<_Tp>>::type
629 template<
typename _Res,
typename... _Args _GLIBCXX_NOEXCEPT_PARM>
630 struct __is_referenceable<_Res(_Args...) _GLIBCXX_NOEXCEPT_QUAL>
634 template<
typename _Res,
typename... _Args _GLIBCXX_NOEXCEPT_PARM>
635 struct __is_referenceable<_Res(_Args......) _GLIBCXX_NOEXCEPT_QUAL>
646 template<
typename _Tp>
655 template<
typename _Tp>
660 template<
typename _Tp>
666 template<
typename _Tp>
667 struct is_trivially_copyable
672 template<
typename _Tp>
679 template<
typename _Tp>
685 template<
typename _Tp>
691 template<
typename _Tp>
697 template<
typename _Tp>
702 #if __cplusplus >= 201402L 703 #define __cpp_lib_is_final 201402L 705 template<
typename _Tp>
712 template<
typename _Tp>
717 template<
typename _Tp,
719 struct __is_signed_helper
722 template<
typename _Tp>
723 struct __is_signed_helper<_Tp, true>
724 :
public integral_constant<bool, _Tp(-1) < _Tp(0)>
728 template<typename _Tp>
730 : public __is_signed_helper<_Tp>::type
734 template<typename _Tp>
736 : public __and_<is_arithmetic<_Tp>, __not_<is_signed<_Tp>>>
747 template<typename _Tp, typename _Up = _Tp&&>
751 template<typename _Tp>
755 template<typename _Tp>
756 auto declval() noexcept -> decltype(__declval<_Tp>(0));
758 template<typename, unsigned = 0>
764 template<typename _Tp>
765 struct __is_array_known_bounds
769 template<
typename _Tp>
770 struct __is_array_unknown_bounds
771 :
public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
779 struct __do_is_destructible_impl
781 template<typename _Tp, typename = decltype(declval<_Tp&>().~_Tp())>
788 template<
typename _Tp>
789 struct __is_destructible_impl
790 :
public __do_is_destructible_impl
792 typedef decltype(__test<_Tp>(0)) type;
795 template<typename _Tp,
796 bool = __or_<is_void<_Tp>,
797 __is_array_unknown_bounds<_Tp>,
798 is_function<_Tp>>::value,
799 bool = __or_<is_reference<_Tp>, is_scalar<_Tp>>::value>
800 struct __is_destructible_safe;
802 template<typename _Tp>
803 struct __is_destructible_safe<_Tp, false, false>
804 : public __is_destructible_impl<typename
805 remove_all_extents<_Tp>::type>::type
808 template<
typename _Tp>
809 struct __is_destructible_safe<_Tp, true, false>
812 template<
typename _Tp>
813 struct __is_destructible_safe<_Tp, false, true>
817 template<
typename _Tp>
819 :
public __is_destructible_safe<_Tp>::type
826 struct __do_is_nt_destructible_impl
828 template<
typename _Tp>
836 template<
typename _Tp>
837 struct __is_nt_destructible_impl
838 :
public __do_is_nt_destructible_impl
840 typedef decltype(__test<_Tp>(0)) type;
843 template<typename _Tp,
844 bool = __or_<is_void<_Tp>,
845 __is_array_unknown_bounds<_Tp>,
846 is_function<_Tp>>::value,
847 bool = __or_<is_reference<_Tp>, is_scalar<_Tp>>::value>
848 struct __is_nt_destructible_safe;
850 template<typename _Tp>
851 struct __is_nt_destructible_safe<_Tp, false, false>
852 : public __is_nt_destructible_impl<typename
853 remove_all_extents<_Tp>::type>::type
856 template<
typename _Tp>
857 struct __is_nt_destructible_safe<_Tp, true, false>
860 template<
typename _Tp>
861 struct __is_nt_destructible_safe<_Tp, false, true>
865 template<
typename _Tp>
867 :
public __is_nt_destructible_safe<_Tp>::type
870 struct __do_is_default_constructible_impl
872 template<
typename _Tp,
typename = decltype(_Tp())>
879 template<
typename _Tp>
880 struct __is_default_constructible_impl
881 :
public __do_is_default_constructible_impl
883 typedef decltype(__test<_Tp>(0)) type;
886 template<typename _Tp>
887 struct __is_default_constructible_atom
888 : public __and_<__not_<is_void<_Tp>>,
889 __is_default_constructible_impl<_Tp>>
892 template<typename _Tp, bool = is_array<_Tp>::value>
893 struct __is_default_constructible_safe;
900 template<
typename _Tp>
901 struct __is_default_constructible_safe<_Tp, true>
902 :
public __and_<__is_array_known_bounds<_Tp>,
903 __is_default_constructible_atom<typename
904 remove_all_extents<_Tp>::type>>
907 template<
typename _Tp>
908 struct __is_default_constructible_safe<_Tp, false>
909 :
public __is_default_constructible_atom<_Tp>::type
913 template<
typename _Tp>
915 :
public __is_default_constructible_safe<_Tp>::type
919 template<
typename _Tp,
typename... _Args>
924 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
925 struct __is_copy_constructible_impl;
927 template<
typename _Tp>
928 struct __is_copy_constructible_impl<_Tp, false>
931 template<
typename _Tp>
932 struct __is_copy_constructible_impl<_Tp, true>
933 :
public is_constructible<_Tp, const _Tp&>
937 template<
typename _Tp>
939 :
public __is_copy_constructible_impl<_Tp>
942 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
943 struct __is_move_constructible_impl;
945 template<
typename _Tp>
946 struct __is_move_constructible_impl<_Tp, false>
949 template<
typename _Tp>
950 struct __is_move_constructible_impl<_Tp, true>
951 :
public is_constructible<_Tp, _Tp&&>
955 template<
typename _Tp>
957 :
public __is_move_constructible_impl<_Tp>
960 template<
typename _Tp>
961 struct __is_nt_default_constructible_atom
965 template<typename _Tp, bool = is_array<_Tp>::value>
966 struct __is_nt_default_constructible_impl;
968 template<
typename _Tp>
969 struct __is_nt_default_constructible_impl<_Tp, true>
970 :
public __and_<__is_array_known_bounds<_Tp>,
971 __is_nt_default_constructible_atom<typename
972 remove_all_extents<_Tp>::type>>
975 template<
typename _Tp>
976 struct __is_nt_default_constructible_impl<_Tp, false>
977 :
public __is_nt_default_constructible_atom<_Tp>
981 template<
typename _Tp>
983 :
public __and_<is_default_constructible<_Tp>,
984 __is_nt_default_constructible_impl<_Tp>>
987 template<
typename _Tp,
typename... _Args>
988 struct __is_nt_constructible_impl
992 template<
typename _Tp,
typename _Arg>
993 struct __is_nt_constructible_impl<_Tp, _Arg>
994 :
public integral_constant<bool,
995 noexcept(static_cast<_Tp>(declval<_Arg>()))>
998 template<
typename _Tp>
999 struct __is_nt_constructible_impl<_Tp>
1000 :
public is_nothrow_default_constructible<_Tp>
1004 template<
typename _Tp,
typename... _Args>
1006 :
public __and_<is_constructible<_Tp, _Args...>,
1007 __is_nt_constructible_impl<_Tp, _Args...>>
1010 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1011 struct __is_nothrow_copy_constructible_impl;
1013 template<
typename _Tp>
1014 struct __is_nothrow_copy_constructible_impl<_Tp, false>
1017 template<
typename _Tp>
1018 struct __is_nothrow_copy_constructible_impl<_Tp, true>
1019 :
public is_nothrow_constructible<_Tp, const _Tp&>
1023 template<
typename _Tp>
1025 :
public __is_nothrow_copy_constructible_impl<_Tp>
1028 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1029 struct __is_nothrow_move_constructible_impl;
1031 template<
typename _Tp>
1032 struct __is_nothrow_move_constructible_impl<_Tp, false>
1035 template<
typename _Tp>
1036 struct __is_nothrow_move_constructible_impl<_Tp, true>
1037 :
public is_nothrow_constructible<_Tp, _Tp&&>
1041 template<
typename _Tp>
1043 :
public __is_nothrow_move_constructible_impl<_Tp>
1047 template<
typename _Tp,
typename _Up>
1052 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1053 struct __is_copy_assignable_impl;
1055 template<
typename _Tp>
1056 struct __is_copy_assignable_impl<_Tp, false>
1059 template<
typename _Tp>
1060 struct __is_copy_assignable_impl<_Tp, true>
1061 :
public is_assignable<_Tp&, const _Tp&>
1065 template<
typename _Tp>
1067 :
public __is_copy_assignable_impl<_Tp>
1070 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1071 struct __is_move_assignable_impl;
1073 template<
typename _Tp>
1074 struct __is_move_assignable_impl<_Tp, false>
1077 template<
typename _Tp>
1078 struct __is_move_assignable_impl<_Tp, true>
1079 :
public is_assignable<_Tp&, _Tp&&>
1083 template<
typename _Tp>
1085 :
public __is_move_assignable_impl<_Tp>
1088 template<
typename _Tp,
typename _Up>
1089 struct __is_nt_assignable_impl
1094 template<
typename _Tp,
typename _Up>
1096 :
public __and_<is_assignable<_Tp, _Up>,
1097 __is_nt_assignable_impl<_Tp, _Up>>
1100 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1101 struct __is_nt_copy_assignable_impl;
1103 template<
typename _Tp>
1104 struct __is_nt_copy_assignable_impl<_Tp, false>
1107 template<
typename _Tp>
1108 struct __is_nt_copy_assignable_impl<_Tp, true>
1109 :
public is_nothrow_assignable<_Tp&, const _Tp&>
1113 template<
typename _Tp>
1115 :
public __is_nt_copy_assignable_impl<_Tp>
1118 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1119 struct __is_nt_move_assignable_impl;
1121 template<
typename _Tp>
1122 struct __is_nt_move_assignable_impl<_Tp, false>
1125 template<
typename _Tp>
1126 struct __is_nt_move_assignable_impl<_Tp, true>
1127 :
public is_nothrow_assignable<_Tp&, _Tp&&>
1131 template<
typename _Tp>
1133 :
public __is_nt_move_assignable_impl<_Tp>
1137 template<
typename _Tp,
typename... _Args>
1139 :
public __and_<is_constructible<_Tp, _Args...>, __bool_constant<
1140 __is_trivially_constructible(_Tp, _Args...)>>::type
1144 template<
typename _Tp>
1149 struct __do_is_implicitly_default_constructible_impl
1151 template <
typename _Tp>
1152 static void __helper(
const _Tp&);
1154 template <
typename _Tp>
1156 decltype(__helper<const _Tp&>({}))* = 0);
1161 template<
typename _Tp>
1162 struct __is_implicitly_default_constructible_impl
1163 :
public __do_is_implicitly_default_constructible_impl
1165 typedef decltype(__test(declval<_Tp>())) type;
1168 template<typename _Tp>
1169 struct __is_implicitly_default_constructible_safe
1170 : public __is_implicitly_default_constructible_impl<_Tp>::type
1173 template <
typename _Tp>
1174 struct __is_implicitly_default_constructible
1175 :
public __and_<is_default_constructible<_Tp>,
1176 __is_implicitly_default_constructible_safe<_Tp>>
1181 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1184 template<
typename _Tp>
1188 template<
typename _Tp>
1190 :
public __and_<is_copy_constructible<_Tp>,
1191 integral_constant<bool,
1192 __is_trivially_constructible(_Tp, const _Tp&)>>
1195 template<
typename _Tp>
1196 struct is_trivially_copy_constructible
1197 :
public __is_trivially_copy_constructible_impl<_Tp>
1202 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1205 template<
typename _Tp>
1209 template<
typename _Tp>
1211 :
public __and_<is_move_constructible<_Tp>,
1212 integral_constant<bool,
1213 __is_trivially_constructible(_Tp, _Tp&&)>>
1216 template<
typename _Tp>
1217 struct is_trivially_move_constructible
1218 :
public __is_trivially_move_constructible_impl<_Tp>
1222 template<
typename _Tp,
typename _Up>
1229 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1232 template<
typename _Tp>
1236 template<
typename _Tp>
1238 :
public __and_<is_copy_assignable<_Tp>,
1239 integral_constant<bool,
1240 __is_trivially_assignable(_Tp&, const _Tp&)>>
1243 template<
typename _Tp>
1244 struct is_trivially_copy_assignable
1245 :
public __is_trivially_copy_assignable_impl<_Tp>
1250 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1253 template<
typename _Tp>
1257 template<
typename _Tp>
1259 :
public __and_<is_move_assignable<_Tp>,
1260 integral_constant<bool,
1261 __is_trivially_assignable(_Tp&, _Tp&&)>>
1264 template<
typename _Tp>
1265 struct is_trivially_move_assignable
1266 :
public __is_trivially_move_assignable_impl<_Tp>
1270 template<
typename _Tp>
1272 :
public __and_<is_destructible<_Tp>, integral_constant<bool,
1273 __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>
1302 :
public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
1305 template<
typename,
unsigned _U
int>
1307 :
public integral_constant<std::size_t, 0> { };
1309 template<
typename _Tp,
unsigned _U
int, std::
size_t _Size>
1310 struct extent<_Tp[_Size], _Uint>
1311 :
public integral_constant<std::size_t,
1312 _Uint == 0 ? _Size : extent<_Tp,
1316 template<
typename _Tp,
unsigned _U
int>
1317 struct extent<_Tp[], _Uint>
1318 :
public integral_constant<std::size_t,
1319 _Uint == 0 ? 0 : extent<_Tp,
1327 template<
typename,
typename>
1331 template<
typename _Tp>
1336 template<
typename _Base,
typename _Derived>
1341 template<
typename _From,
typename _To,
1344 struct __is_convertible_helper
1347 template<
typename _From,
typename _To>
1348 class __is_convertible_helper<_From, _To, false>
1350 template<
typename _To1>
1351 static void __test_aux(_To1);
1353 template<
typename _From1,
typename _To1,
1354 typename = decltype(__test_aux<_To1>(std::declval<_From1>()))>
1358 template<
typename,
typename>
1363 typedef decltype(__test<_From, _To>(0)) type;
1368 template<typename _From, typename _To>
1370 : public __is_convertible_helper<_From, _To>::type
1377 template<
typename _Tp>
1379 {
typedef _Tp type; };
1381 template<
typename _Tp>
1383 {
typedef _Tp type; };
1386 template<
typename _Tp>
1388 {
typedef _Tp type; };
1390 template<
typename _Tp>
1392 {
typedef _Tp type; };
1395 template<
typename _Tp>
1399 remove_const<typename remove_volatile<_Tp>::type>::type type;
1403 template<
typename _Tp>
1405 {
typedef _Tp
const type; };
1408 template<
typename _Tp>
1410 {
typedef _Tp
volatile type; };
1413 template<
typename _Tp>
1420 #if __cplusplus > 201103L 1422 #define __cpp_lib_transformation_trait_aliases 201304 1425 template<
typename _Tp>
1429 template<
typename _Tp>
1433 template<
typename _Tp>
1437 template<
typename _Tp>
1441 template<
typename _Tp>
1445 template<
typename _Tp>
1452 template<
typename _Tp>
1454 {
typedef _Tp type; };
1456 template<
typename _Tp>
1458 {
typedef _Tp type; };
1460 template<
typename _Tp>
1461 struct remove_reference<_Tp&&>
1462 {
typedef _Tp type; };
1464 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1465 struct __add_lvalue_reference_helper
1466 {
typedef _Tp type; };
1468 template<
typename _Tp>
1469 struct __add_lvalue_reference_helper<_Tp, true>
1470 {
typedef _Tp& type; };
1473 template<
typename _Tp>
1475 :
public __add_lvalue_reference_helper<_Tp>
1478 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1479 struct __add_rvalue_reference_helper
1480 {
typedef _Tp type; };
1482 template<
typename _Tp>
1483 struct __add_rvalue_reference_helper<_Tp, true>
1484 {
typedef _Tp&& type; };
1487 template<
typename _Tp>
1489 :
public __add_rvalue_reference_helper<_Tp>
1492 #if __cplusplus > 201103L 1494 template<
typename _Tp>
1498 template<
typename _Tp>
1502 template<
typename _Tp>
1509 template<
typename _Unqualified,
bool _IsConst,
bool _IsVol>
1510 struct __cv_selector;
1512 template<
typename _Unqualified>
1513 struct __cv_selector<_Unqualified, false, false>
1514 {
typedef _Unqualified __type; };
1516 template<
typename _Unqualified>
1517 struct __cv_selector<_Unqualified, false, true>
1518 {
typedef volatile _Unqualified __type; };
1520 template<
typename _Unqualified>
1521 struct __cv_selector<_Unqualified, true, false>
1522 {
typedef const _Unqualified __type; };
1524 template<
typename _Unqualified>
1525 struct __cv_selector<_Unqualified, true, true>
1526 {
typedef const volatile _Unqualified __type; };
1528 template<
typename _Qualified,
typename _Unqualified,
1529 bool _IsConst = is_const<_Qualified>::value,
1530 bool _IsVol = is_volatile<_Qualified>::value>
1531 class __match_cv_qualifiers
1533 typedef __cv_selector<_Unqualified, _IsConst, _IsVol> __match;
1536 typedef typename __match::__type __type;
1540 template<
typename _Tp>
1541 struct __make_unsigned
1542 {
typedef _Tp __type; };
1545 struct __make_unsigned<char>
1546 {
typedef unsigned char __type; };
1549 struct __make_unsigned<signed char>
1550 {
typedef unsigned char __type; };
1553 struct __make_unsigned<short>
1554 {
typedef unsigned short __type; };
1557 struct __make_unsigned<int>
1558 {
typedef unsigned int __type; };
1561 struct __make_unsigned<long>
1562 {
typedef unsigned long __type; };
1565 struct __make_unsigned<long long>
1566 {
typedef unsigned long long __type; };
1568 #if defined(__GLIBCXX_TYPE_INT_N_0) 1570 struct __make_unsigned<__GLIBCXX_TYPE_INT_N_0>
1571 {
typedef unsigned __GLIBCXX_TYPE_INT_N_0 __type; };
1573 #if defined(__GLIBCXX_TYPE_INT_N_1) 1575 struct __make_unsigned<__GLIBCXX_TYPE_INT_N_1>
1576 {
typedef unsigned __GLIBCXX_TYPE_INT_N_1 __type; };
1578 #if defined(__GLIBCXX_TYPE_INT_N_2) 1580 struct __make_unsigned<__GLIBCXX_TYPE_INT_N_2>
1581 {
typedef unsigned __GLIBCXX_TYPE_INT_N_2 __type; };
1583 #if defined(__GLIBCXX_TYPE_INT_N_3) 1585 struct __make_unsigned<__GLIBCXX_TYPE_INT_N_3>
1586 {
typedef unsigned __GLIBCXX_TYPE_INT_N_3 __type; };
1590 template<
typename _Tp,
1591 bool _IsInt = is_integral<_Tp>::value,
1592 bool _IsEnum = is_enum<_Tp>::value>
1593 class __make_unsigned_selector;
1595 template<
typename _Tp>
1596 class __make_unsigned_selector<_Tp, true, false>
1598 typedef __make_unsigned<typename remove_cv<_Tp>::type> __unsignedt;
1599 typedef typename __unsignedt::__type __unsigned_type;
1600 typedef __match_cv_qualifiers<_Tp, __unsigned_type> __cv_unsigned;
1603 typedef typename __cv_unsigned::__type __type;
1606 template<
typename _Tp>
1607 class __make_unsigned_selector<_Tp, false, true>
1610 typedef unsigned char __smallest;
1611 static const bool __b0 =
sizeof(_Tp) <=
sizeof(__smallest);
1612 static const bool __b1 =
sizeof(_Tp) <=
sizeof(
unsigned short);
1613 static const bool __b2 =
sizeof(_Tp) <=
sizeof(
unsigned int);
1614 static const bool __b3 =
sizeof(_Tp) <=
sizeof(
unsigned long);
1615 typedef conditional<__b3, unsigned long, unsigned long long> __cond3;
1616 typedef typename __cond3::type __cond3_type;
1617 typedef conditional<__b2, unsigned int, __cond3_type> __cond2;
1618 typedef typename __cond2::type __cond2_type;
1619 typedef conditional<__b1, unsigned short, __cond2_type> __cond1;
1620 typedef typename __cond1::type __cond1_type;
1622 typedef typename conditional<__b0, __smallest, __cond1_type>::type
1624 typedef __match_cv_qualifiers<_Tp, __unsigned_type> __cv_unsigned;
1627 typedef typename __cv_unsigned::__type __type;
1634 template<
typename _Tp>
1636 {
typedef typename __make_unsigned_selector<_Tp>::__type type; };
1644 template<
typename _Tp>
1645 struct __make_signed
1646 {
typedef _Tp __type; };
1649 struct __make_signed<char>
1650 {
typedef signed char __type; };
1653 struct __make_signed<unsigned char>
1654 {
typedef signed char __type; };
1657 struct __make_signed<unsigned short>
1658 {
typedef signed short __type; };
1661 struct __make_signed<unsigned int>
1662 {
typedef signed int __type; };
1665 struct __make_signed<unsigned long>
1666 {
typedef signed long __type; };
1669 struct __make_signed<unsigned long long>
1670 {
typedef signed long long __type; };
1672 #if defined(__GLIBCXX_TYPE_INT_N_0) 1674 struct __make_signed<unsigned __GLIBCXX_TYPE_INT_N_0>
1675 {
typedef __GLIBCXX_TYPE_INT_N_0 __type; };
1677 #if defined(__GLIBCXX_TYPE_INT_N_1) 1679 struct __make_signed<unsigned __GLIBCXX_TYPE_INT_N_1>
1680 {
typedef __GLIBCXX_TYPE_INT_N_1 __type; };
1682 #if defined(__GLIBCXX_TYPE_INT_N_2) 1684 struct __make_signed<unsigned __GLIBCXX_TYPE_INT_N_2>
1685 {
typedef __GLIBCXX_TYPE_INT_N_2 __type; };
1687 #if defined(__GLIBCXX_TYPE_INT_N_3) 1689 struct __make_signed<unsigned __GLIBCXX_TYPE_INT_N_3>
1690 {
typedef __GLIBCXX_TYPE_INT_N_3 __type; };
1694 template<
typename _Tp,
1695 bool _IsInt = is_integral<_Tp>::value,
1696 bool _IsEnum = is_enum<_Tp>::value>
1697 class __make_signed_selector;
1699 template<
typename _Tp>
1700 class __make_signed_selector<_Tp, true, false>
1702 typedef __make_signed<typename remove_cv<_Tp>::type> __signedt;
1703 typedef typename __signedt::__type __signed_type;
1704 typedef __match_cv_qualifiers<_Tp, __signed_type> __cv_signed;
1707 typedef typename __cv_signed::__type __type;
1710 template<
typename _Tp>
1711 class __make_signed_selector<_Tp, false, true>
1713 typedef typename __make_unsigned_selector<_Tp>::__type __unsigned_type;
1716 typedef typename __make_signed_selector<__unsigned_type>::__type __type;
1723 template<
typename _Tp>
1725 {
typedef typename __make_signed_selector<_Tp>::__type type; };
1731 #if __cplusplus > 201103L 1733 template<
typename _Tp>
1737 template<
typename _Tp>
1744 template<
typename _Tp>
1746 {
typedef _Tp type; };
1748 template<
typename _Tp, std::
size_t _Size>
1750 {
typedef _Tp type; };
1752 template<
typename _Tp>
1753 struct remove_extent<_Tp[]>
1754 {
typedef _Tp type; };
1757 template<
typename _Tp>
1758 struct remove_all_extents
1759 {
typedef _Tp type; };
1761 template<
typename _Tp, std::
size_t _Size>
1762 struct remove_all_extents<_Tp[_Size]>
1763 {
typedef typename remove_all_extents<_Tp>::type type; };
1765 template<
typename _Tp>
1766 struct remove_all_extents<_Tp[]>
1767 {
typedef typename remove_all_extents<_Tp>::type type; };
1769 #if __cplusplus > 201103L 1771 template<
typename _Tp>
1775 template<
typename _Tp>
1781 template<
typename _Tp,
typename>
1782 struct __remove_pointer_helper
1783 {
typedef _Tp type; };
1785 template<
typename _Tp,
typename _Up>
1786 struct __remove_pointer_helper<_Tp, _Up*>
1787 {
typedef _Up type; };
1790 template<
typename _Tp>
1792 :
public __remove_pointer_helper<_Tp, typename remove_cv<_Tp>::type>
1796 template<
typename _Tp,
bool = __or_<__is_referenceable<_Tp>,
1797 is_
void<_Tp>>::value>
1799 {
typedef _Tp type; };
1801 template<
typename _Tp>
1803 {
typedef typename remove_reference<_Tp>::type* type; };
1805 template<
typename _Tp>
1807 :
public __add_pointer_helper<_Tp>
1810 #if __cplusplus > 201103L 1812 template<
typename _Tp>
1816 template<
typename _Tp>
1820 template<std::
size_t _Len>
1821 struct __aligned_storage_msa
1825 unsigned char __data[_Len];
1826 struct __attribute__((__aligned__)) { } __align;
1840 template<std::size_t _Len, std::size_t _Align =
1841 __alignof__(
typename __aligned_storage_msa<_Len>::__type)>
1846 unsigned char __data[_Len];
1847 struct __attribute__((__aligned__((_Align)))) { } __align;
1851 template <
typename... _Types>
1852 struct __strictest_alignment
1854 static const size_t _S_alignment = 0;
1855 static const size_t _S_size = 0;
1858 template <
typename _Tp,
typename... _Types>
1859 struct __strictest_alignment<_Tp, _Types...>
1861 static const size_t _S_alignment =
1862 alignof(_Tp) > __strictest_alignment<_Types...>::_S_alignment
1863 ?
alignof(_Tp) : __strictest_alignment<_Types...>::_S_alignment;
1864 static const size_t _S_size =
1865 sizeof(_Tp) > __strictest_alignment<_Types...>::_S_size
1866 ?
sizeof(_Tp) : __strictest_alignment<_Types...>::_S_size;
1879 template <
size_t _Len,
typename... _Types>
1883 static_assert(
sizeof...(_Types) != 0,
"At least one type is required");
1885 using __strictest = __strictest_alignment<_Types...>;
1886 static const size_t _S_len = _Len > __strictest::_S_size
1887 ? _Len : __strictest::_S_size;
1890 static const size_t alignment_value = __strictest::_S_alignment;
1895 template <
size_t _Len,
typename... _Types>
1896 const size_t aligned_union<_Len, _Types...>::alignment_value;
1900 template<
typename _Up,
1903 struct __decay_selector;
1906 template<
typename _Up>
1907 struct __decay_selector<_Up, false, false>
1908 {
typedef typename remove_cv<_Up>::type __type; };
1910 template<
typename _Up>
1911 struct __decay_selector<_Up, true, false>
1912 {
typedef typename remove_extent<_Up>::type* __type; };
1914 template<
typename _Up>
1915 struct __decay_selector<_Up, false, true>
1916 {
typedef typename add_pointer<_Up>::type __type; };
1919 template<
typename _Tp>
1922 typedef typename remove_reference<_Tp>::type __remove_type;
1925 typedef typename __decay_selector<__remove_type>::__type type;
1928 template<
typename _Tp>
1932 template<
typename _Tp>
1933 struct __strip_reference_wrapper
1938 template<
typename _Tp>
1941 typedef _Tp& __type;
1944 template<
typename _Tp>
1945 struct __decay_and_strip
1947 typedef typename __strip_reference_wrapper<
1948 typename decay<_Tp>::type>::__type __type;
1954 template<
bool,
typename _Tp =
void>
1959 template<
typename _Tp>
1961 {
typedef _Tp type; };
1963 template<
typename... _Cond>
1964 using _Require =
typename enable_if<__and_<_Cond...>::value>::type;
1968 template<
bool _Cond,
typename _Iftrue,
typename _Iffalse>
1970 {
typedef _Iftrue type; };
1973 template<
typename _Iftrue,
typename _Iffalse>
1974 struct conditional<false, _Iftrue, _Iffalse>
1975 {
typedef _Iffalse type; };
1978 template<
typename... _Tp>
1983 struct __do_common_type_impl
1985 template<
typename _Tp,
typename _Up>
1986 static __success_type<
typename decay<decltype
1987 (
true ? std::declval<_Tp>()
1988 : std::declval<_Up>())>::type> _S_test(
int);
1990 template<
typename,
typename>
1991 static __failure_type _S_test(...);
1994 template<
typename _Tp,
typename _Up>
1995 struct __common_type_impl
1996 :
private __do_common_type_impl
1998 typedef decltype(_S_test<_Tp, _Up>(0)) type;
2001 struct __do_member_type_wrapper
2003 template<
typename _Tp>
2004 static __success_type<typename _Tp::type> _S_test(
int);
2007 static __failure_type _S_test(...);
2010 template<
typename _Tp>
2011 struct __member_type_wrapper
2012 :
private __do_member_type_wrapper
2014 typedef decltype(_S_test<_Tp>(0)) type;
2017 template<typename _CTp, typename... _Args>
2018 struct __expanded_common_type_wrapper
2020 typedef common_type<
typename _CTp::type, _Args...> type;
2023 template<
typename... _Args>
2024 struct __expanded_common_type_wrapper<__failure_type, _Args...>
2025 {
typedef __failure_type type; };
2028 struct common_type<>
2031 template<
typename _Tp>
2032 struct common_type<_Tp>
2033 : common_type<_Tp, _Tp>
2036 template<
typename _Tp,
typename _Up>
2037 struct common_type<_Tp, _Up>
2038 :
public __common_type_impl<_Tp, _Up>::type
2041 template<
typename _Tp,
typename _Up,
typename... _Vp>
2042 struct common_type<_Tp, _Up, _Vp...>
2043 :
public __expanded_common_type_wrapper<typename __member_type_wrapper<
2044 common_type<_Tp, _Up>>::type, _Vp...>::type
2048 template<
typename _Tp>
2051 typedef __underlying_type(_Tp) type;
2054 template<
typename _Tp>
2055 struct __declval_protector
2057 static const bool __stop =
false;
2060 template<
typename _Tp>
2061 auto declval() noexcept -> decltype(__declval<_Tp>(0))
2063 static_assert(__declval_protector<_Tp>::__stop,
2064 "declval() must not be used!");
2065 return __declval<_Tp>(0);
2076 #if defined(_GLIBCXX_USE_WCHAR_T) 2078 struct __make_unsigned<wchar_t>
2081 =
typename __make_unsigned_selector<wchar_t, false, true>::__type;
2085 struct __make_signed<wchar_t>
2088 =
typename __make_signed_selector<wchar_t, false, true>::__type;
2093 struct __make_unsigned<char16_t>
2096 =
typename __make_unsigned_selector<char16_t, false, true>::__type;
2100 struct __make_signed<char16_t>
2103 =
typename __make_signed_selector<char16_t, false, true>::__type;
2107 struct __make_unsigned<char32_t>
2110 =
typename __make_unsigned_selector<char32_t, false, true>::__type;
2114 struct __make_signed<char32_t>
2117 =
typename __make_signed_selector<char32_t, false, true>::__type;
2122 template<
typename _Signature>
2127 #define __cpp_lib_result_of_sfinae 201210 2129 struct __invoke_memfun_ref { };
2130 struct __invoke_memfun_deref { };
2131 struct __invoke_memobj_ref { };
2132 struct __invoke_memobj_deref { };
2133 struct __invoke_other { };
2136 template<
typename _Tp,
typename _Tag>
2137 struct __result_of_success : __success_type<_Tp>
2138 {
using __invoke_type = _Tag; };
2141 struct __result_of_memfun_ref_impl
2143 template<
typename _Fp,
typename _Tp1,
typename... _Args>
2144 static __result_of_success<decltype(
2145 (std::declval<_Tp1>().*std::declval<_Fp>())(std::declval<_Args>()...)
2146 ), __invoke_memfun_ref> _S_test(
int);
2148 template<
typename...>
2149 static __failure_type _S_test(...);
2152 template<
typename _MemPtr,
typename _Arg,
typename... _Args>
2153 struct __result_of_memfun_ref
2154 :
private __result_of_memfun_ref_impl
2156 typedef decltype(_S_test<_MemPtr, _Arg, _Args...>(0)) type;
2160 struct __result_of_memfun_deref_impl
2162 template<
typename _Fp,
typename _Tp1,
typename... _Args>
2163 static __result_of_success<decltype(
2164 ((*std::declval<_Tp1>()).*std::declval<_Fp>())(std::declval<_Args>()...)
2165 ), __invoke_memfun_deref> _S_test(
int);
2167 template<
typename...>
2168 static __failure_type _S_test(...);
2171 template<
typename _MemPtr,
typename _Arg,
typename... _Args>
2172 struct __result_of_memfun_deref
2173 :
private __result_of_memfun_deref_impl
2175 typedef decltype(_S_test<_MemPtr, _Arg, _Args...>(0)) type;
2179 struct __result_of_memobj_ref_impl
2181 template<
typename _Fp,
typename _Tp1>
2182 static __result_of_success<decltype(
2183 std::declval<_Tp1>().*std::declval<_Fp>()
2184 ), __invoke_memobj_ref> _S_test(
int);
2186 template<
typename,
typename>
2187 static __failure_type _S_test(...);
2190 template<
typename _MemPtr,
typename _Arg>
2191 struct __result_of_memobj_ref
2192 :
private __result_of_memobj_ref_impl
2194 typedef decltype(_S_test<_MemPtr, _Arg>(0)) type;
2198 struct __result_of_memobj_deref_impl
2200 template<
typename _Fp,
typename _Tp1>
2201 static __result_of_success<decltype(
2202 (*std::declval<_Tp1>()).*std::declval<_Fp>()
2203 ), __invoke_memobj_deref> _S_test(
int);
2205 template<
typename,
typename>
2206 static __failure_type _S_test(...);
2209 template<
typename _MemPtr,
typename _Arg>
2210 struct __result_of_memobj_deref
2211 :
private __result_of_memobj_deref_impl
2213 typedef decltype(_S_test<_MemPtr, _Arg>(0)) type;
2216 template<typename _MemPtr, typename _Arg>
2217 struct __result_of_memobj;
2219 template<typename _Res, typename _Class, typename _Arg>
2220 struct __result_of_memobj<_Res _Class::*, _Arg>
2222 typedef typename remove_cv<
typename remove_reference<
2223 _Arg>::type>::type _Argval;
2224 typedef _Res _Class::* _MemPtr;
2225 typedef typename conditional<__or_<is_same<_Argval, _Class>,
2226 is_base_of<_Class, _Argval>>::value,
2227 __result_of_memobj_ref<_MemPtr, _Arg>,
2228 __result_of_memobj_deref<_MemPtr, _Arg>
2232 template<
typename _MemPtr,
typename _Arg,
typename... _Args>
2233 struct __result_of_memfun;
2235 template<
typename _Res,
typename _Class,
typename _Arg,
typename... _Args>
2236 struct __result_of_memfun<_Res _Class::*, _Arg, _Args...>
2238 typedef typename remove_cv<
typename remove_reference<
2239 _Arg>::type>::type _Argval;
2240 typedef _Res _Class::* _MemPtr;
2241 typedef typename conditional<__or_<is_same<_Argval, _Class>,
2242 is_base_of<_Class, _Argval>>::value,
2243 __result_of_memfun_ref<_MemPtr, _Arg, _Args...>,
2244 __result_of_memfun_deref<_MemPtr, _Arg, _Args...>
2253 template<typename _Tp, typename _Up = typename decay<_Tp>::type>
2259 template<
typename _Tp,
typename _Up>
2260 struct __inv_unwrap<_Tp, reference_wrapper<_Up>>
2265 template<bool, bool,
typename _Functor,
typename... _ArgTypes>
2266 struct __result_of_impl
2268 typedef __failure_type type;
2271 template<
typename _MemPtr,
typename _Arg>
2272 struct __result_of_impl<true, false, _MemPtr, _Arg>
2273 :
public __result_of_memobj<typename decay<_MemPtr>::type,
2274 typename __inv_unwrap<_Arg>::type>
2277 template<
typename _MemPtr,
typename _Arg,
typename... _Args>
2278 struct __result_of_impl<false, true, _MemPtr, _Arg, _Args...>
2279 :
public __result_of_memfun<typename decay<_MemPtr>::type,
2280 typename __inv_unwrap<_Arg>::type, _Args...>
2284 struct __result_of_other_impl
2286 template<
typename _Fn,
typename... _Args>
2287 static __result_of_success<decltype(
2288 std::declval<_Fn>()(std::declval<_Args>()...)
2289 ), __invoke_other> _S_test(
int);
2291 template<
typename...>
2292 static __failure_type _S_test(...);
2295 template<
typename _Functor,
typename... _ArgTypes>
2296 struct __result_of_impl<false, false, _Functor, _ArgTypes...>
2297 :
private __result_of_other_impl
2299 typedef decltype(_S_test<_Functor, _ArgTypes...>(0)) type;
2303 template<typename _Functor, typename... _ArgTypes>
2304 struct __invoke_result
2305 : public __result_of_impl<
2306 is_member_object_pointer<
2307 typename remove_reference<_Functor>::type
2309 is_member_function_pointer<
2310 typename remove_reference<_Functor>::type
2312 _Functor, _ArgTypes...
2316 template<
typename _Functor,
typename... _ArgTypes>
2317 struct result_of<_Functor(_ArgTypes...)>
2318 :
public __invoke_result<_Functor, _ArgTypes...>
2321 #if __cplusplus >= 201402L 2323 template<
size_t _Len,
size_t _Align =
2324 __alignof__(
typename __aligned_storage_msa<_Len>::__type)>
2327 template <
size_t _Len,
typename... _Types>
2328 using aligned_union_t =
typename aligned_union<_Len, _Types...>::type;
2331 template<
typename _Tp>
2335 template<
bool _Cond,
typename _Tp =
void>
2339 template<
bool _Cond,
typename _Iftrue,
typename _Iffalse>
2343 template<
typename... _Tp>
2347 template<
typename _Tp>
2351 template<
typename _Tp>
2356 template<
bool _Cond,
typename _Tp =
void>
2360 template<
typename...>
using __void_t = void;
2362 #if __cplusplus >= 201703L || !defined(__STRICT_ANSI__) // c++17 or gnu++11 2363 #define __cpp_lib_void_t 201411 2369 template<
typename _Default,
typename _AlwaysVoid,
2370 template<
typename...>
class _Op,
typename... _Args>
2374 using type = _Default;
2378 template<
typename _Default,
template<
typename...>
class _Op,
2380 struct __detector<_Default, __void_t<_Op<_Args...>>, _Op, _Args...>
2383 using type = _Op<_Args...>;
2387 template<
typename _Default,
template<
typename...>
class _Op,
2392 template<
typename _Default,
template<
typename...>
class _Op,
2394 using __detected_or_t
2403 #define _GLIBCXX_HAS_NESTED_TYPE(_NTYPE) \ 2404 template<typename _Tp, typename = __void_t<>> \ 2405 struct __has_##_NTYPE \ 2408 template<typename _Tp> \ 2409 struct __has_##_NTYPE<_Tp, __void_t<typename _Tp::_NTYPE>> \ 2413 template <
typename _Tp>
2414 struct __is_swappable;
2416 template <
typename _Tp>
2417 struct __is_nothrow_swappable;
2419 template<
typename... _Elements>
2426 template<
typename... _Tps>
2427 struct __is_tuple_like_impl<tuple<_Tps...>> :
true_type 2431 template<
typename _Tp>
2432 struct __is_tuple_like
2433 :
public __is_tuple_like_impl<typename remove_cv<
2434 typename remove_reference<_Tp>::type>::type>::type
2437 template<
typename _Tp>
2439 typename enable_if<__and_<__not_<__is_tuple_like<_Tp>>,
2440 is_move_constructible<_Tp>,
2441 is_move_assignable<_Tp>>::value>::type
2443 noexcept(__and_<is_nothrow_move_constructible<_Tp>,
2444 is_nothrow_move_assignable<_Tp>>::value);
2446 template<
typename _Tp,
size_t _Nm>
2448 typename enable_if<__is_swappable<_Tp>::value>::type
2449 swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
2450 noexcept(__is_nothrow_swappable<_Tp>::value);
2452 namespace __swappable_details {
2455 struct __do_is_swappable_impl
2457 template<
typename _Tp,
typename 2458 = decltype(swap(std::declval<_Tp&>(), std::declval<_Tp&>()))>
2465 struct __do_is_nothrow_swappable_impl
2467 template<
typename _Tp>
2468 static __bool_constant<
2469 noexcept(swap(std::declval<_Tp&>(), std::declval<_Tp&>()))
2478 template<
typename _Tp>
2479 struct __is_swappable_impl
2480 :
public __swappable_details::__do_is_swappable_impl
2482 typedef decltype(__test<_Tp>(0)) type;
2485 template<typename _Tp>
2486 struct __is_nothrow_swappable_impl
2487 : public __swappable_details::__do_is_nothrow_swappable_impl
2489 typedef decltype(__test<_Tp>(0)) type;
2492 template<typename _Tp>
2493 struct __is_swappable
2494 : public __is_swappable_impl<_Tp>::type
2497 template<
typename _Tp>
2498 struct __is_nothrow_swappable
2499 :
public __is_nothrow_swappable_impl<_Tp>::type
2502 #if __cplusplus > 201402L || !defined(__STRICT_ANSI__) // c++1z or gnu++11 2503 #define __cpp_lib_is_swappable 201603 2507 template<
typename _Tp>
2509 :
public __is_swappable_impl<_Tp>::type
2513 template<
typename _Tp>
2515 :
public __is_nothrow_swappable_impl<_Tp>::type
2518 #if __cplusplus >= 201402L 2520 template<
typename _Tp>
2525 template<
typename _Tp>
2528 #endif // __cplusplus >= 201402L 2530 namespace __swappable_with_details {
2533 struct __do_is_swappable_with_impl
2535 template<
typename _Tp,
typename _Up,
typename 2536 = decltype(swap(std::declval<_Tp>(), std::declval<_Up>())),
2538 = decltype(swap(std::declval<_Up>(), std::declval<_Tp>()))>
2541 template<
typename,
typename>
2545 struct __do_is_nothrow_swappable_with_impl
2547 template<
typename _Tp,
typename _Up>
2549 noexcept(swap(std::declval<_Tp>(), std::declval<_Up>()))
2551 noexcept(swap(std::declval<_Up>(), std::declval<_Tp>()))
2554 template<
typename,
typename>
2560 template<
typename _Tp,
typename _Up>
2561 struct __is_swappable_with_impl
2562 :
public __swappable_with_details::__do_is_swappable_with_impl
2564 typedef decltype(__test<_Tp, _Up>(0)) type;
2568 template<typename _Tp>
2569 struct __is_swappable_with_impl<_Tp&, _Tp&>
2570 : public __swappable_details::__do_is_swappable_impl
2572 typedef decltype(__test<_Tp&>(0)) type;
2575 template<typename _Tp, typename _Up>
2576 struct __is_nothrow_swappable_with_impl
2577 : public __swappable_with_details::__do_is_nothrow_swappable_with_impl
2579 typedef decltype(__test<_Tp, _Up>(0)) type;
2583 template<typename _Tp>
2584 struct __is_nothrow_swappable_with_impl<_Tp&, _Tp&>
2585 : public __swappable_details::__do_is_nothrow_swappable_impl
2587 typedef decltype(__test<_Tp&>(0)) type;
2591 template<typename _Tp, typename _Up>
2593 : public __is_swappable_with_impl<_Tp, _Up>::type
2597 template<
typename _Tp,
typename _Up>
2599 :
public __is_nothrow_swappable_with_impl<_Tp, _Up>::type
2602 #if __cplusplus >= 201402L 2604 template<
typename _Tp,
typename _Up>
2609 template<
typename _Tp,
typename _Up>
2612 #endif // __cplusplus >= 201402L 2614 #endif// c++1z or gnu++11 2618 template<
typename _Result,
typename _Ret,
typename =
void>
2621 template<
typename _Result,
typename _Ret>
2622 struct __is_invocable_impl<_Result, _Ret, __void_t<typename _Result::type>>
2623 : __or_<is_void<_Ret>, is_convertible<typename _Result::type, _Ret>>::type
2626 template<
typename _Fn,
typename... _ArgTypes>
2627 struct __is_invocable
2628 : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>::type
2631 template<
typename _Fn,
typename _Tp,
typename... _Args>
2632 constexpr
bool __call_is_nt(__invoke_memfun_ref)
2634 using _Up =
typename __inv_unwrap<_Tp>::type;
2635 return noexcept((std::declval<_Up>().*std::declval<_Fn>())(
2636 std::declval<_Args>()...));
2639 template<
typename _Fn,
typename _Tp,
typename... _Args>
2640 constexpr
bool __call_is_nt(__invoke_memfun_deref)
2642 return noexcept(((*std::declval<_Tp>()).*std::declval<_Fn>())(
2643 std::declval<_Args>()...));
2646 template<
typename _Fn,
typename _Tp>
2647 constexpr
bool __call_is_nt(__invoke_memobj_ref)
2649 using _Up =
typename __inv_unwrap<_Tp>::type;
2650 return noexcept(std::declval<_Up>().*std::declval<_Fn>());
2653 template<
typename _Fn,
typename _Tp>
2654 constexpr
bool __call_is_nt(__invoke_memobj_deref)
2656 return noexcept((*std::declval<_Tp>()).*std::declval<_Fn>());
2659 template<
typename _Fn,
typename... _Args>
2660 constexpr
bool __call_is_nt(__invoke_other)
2662 return noexcept(std::declval<_Fn>()(std::declval<_Args>()...));
2665 template<
typename _Result,
typename _Fn,
typename... _Args>
2666 struct __call_is_nothrow
2668 std::__call_is_nt<_Fn, _Args...>(typename _Result::__invoke_type{})
2672 template<
typename _Fn,
typename... _Args>
2673 using __call_is_nothrow_
2674 = __call_is_nothrow<__invoke_result<_Fn, _Args...>, _Fn, _Args...>;
2677 template<
typename _Fn,
typename... _Args>
2678 struct __is_nothrow_invocable
2679 : __and_<__is_invocable<_Fn, _Args...>,
2680 __call_is_nothrow_<_Fn, _Args...>>::type
2684 __nonesuch() =
delete;
2685 ~__nonesuch() =
delete;
2686 __nonesuch(__nonesuch
const&) =
delete;
2687 void operator=(__nonesuch
const&) =
delete;
2690 #if __cplusplus >= 201703L 2691 # define __cpp_lib_is_invocable 201703 2694 template<
typename _Functor,
typename... _ArgTypes>
2695 struct invoke_result
2696 :
public __invoke_result<_Functor, _ArgTypes...>
2700 template<
typename _Fn,
typename... _Args>
2701 using invoke_result_t =
typename invoke_result<_Fn, _Args...>::type;
2704 template<
typename _Fn,
typename... _ArgTypes>
2706 : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>::type
2710 template<
typename _Ret,
typename _Fn,
typename... _ArgTypes>
2711 struct is_invocable_r
2712 : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, _Ret>::type
2716 template<
typename _Fn,
typename... _ArgTypes>
2717 struct is_nothrow_invocable
2718 : __and_<__is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>,
2719 __call_is_nothrow_<_Fn, _ArgTypes...>>::type
2722 template<
typename _Result,
typename _Ret,
typename =
void>
2723 struct __is_nt_invocable_impl :
false_type { };
2725 template<
typename _Result,
typename _Ret>
2726 struct __is_nt_invocable_impl<_Result, _Ret,
2727 __void_t<typename _Result::type>>
2728 : __or_<is_void<_Ret>,
2729 __and_<is_convertible<typename _Result::type, _Ret>,
2730 is_nothrow_constructible<_Ret, typename _Result::type>>>
2734 template<
typename _Ret,
typename _Fn,
typename... _ArgTypes>
2735 struct is_nothrow_invocable_r
2736 : __and_<__is_nt_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, _Ret>,
2737 __call_is_nothrow_<_Fn, _ArgTypes...>>::type
2741 template<
typename _Fn,
typename... _Args>
2742 inline constexpr
bool is_invocable_v = is_invocable<_Fn, _Args...>::value;
2745 template<
typename _Fn,
typename... _Args>
2746 inline constexpr
bool is_nothrow_invocable_v
2747 = is_nothrow_invocable<_Fn, _Args...>::value;
2750 template<
typename _Fn,
typename... _Args>
2751 inline constexpr
bool is_invocable_r_v
2752 = is_invocable_r<_Fn, _Args...>::value;
2755 template<
typename _Fn,
typename... _Args>
2756 inline constexpr
bool is_nothrow_invocable_r_v
2757 = is_nothrow_invocable_r<_Fn, _Args...>::value;
2760 #if __cplusplus >= 201703L 2761 # define __cpp_lib_type_trait_variable_templates 201510L 2762 template <
typename _Tp>
2763 inline constexpr
bool is_void_v = is_void<_Tp>::value;
2764 template <
typename _Tp>
2765 inline constexpr
bool is_null_pointer_v = is_null_pointer<_Tp>::value;
2766 template <
typename _Tp>
2767 inline constexpr
bool is_integral_v = is_integral<_Tp>::value;
2768 template <
typename _Tp>
2769 inline constexpr
bool is_floating_point_v = is_floating_point<_Tp>::value;
2770 template <
typename _Tp>
2771 inline constexpr
bool is_array_v = is_array<_Tp>::value;
2772 template <
typename _Tp>
2773 inline constexpr
bool is_pointer_v = is_pointer<_Tp>::value;
2774 template <
typename _Tp>
2775 inline constexpr
bool is_lvalue_reference_v =
2776 is_lvalue_reference<_Tp>::value;
2777 template <
typename _Tp>
2778 inline constexpr
bool is_rvalue_reference_v =
2779 is_rvalue_reference<_Tp>::value;
2780 template <
typename _Tp>
2781 inline constexpr
bool is_member_object_pointer_v =
2782 is_member_object_pointer<_Tp>::value;
2783 template <
typename _Tp>
2784 inline constexpr
bool is_member_function_pointer_v =
2785 is_member_function_pointer<_Tp>::value;
2786 template <
typename _Tp>
2787 inline constexpr
bool is_enum_v = is_enum<_Tp>::value;
2788 template <
typename _Tp>
2789 inline constexpr
bool is_union_v = is_union<_Tp>::value;
2790 template <
typename _Tp>
2791 inline constexpr
bool is_class_v = is_class<_Tp>::value;
2792 template <
typename _Tp>
2793 inline constexpr
bool is_function_v = is_function<_Tp>::value;
2794 template <
typename _Tp>
2795 inline constexpr
bool is_reference_v = is_reference<_Tp>::value;
2796 template <
typename _Tp>
2797 inline constexpr
bool is_arithmetic_v = is_arithmetic<_Tp>::value;
2798 template <
typename _Tp>
2799 inline constexpr
bool is_fundamental_v = is_fundamental<_Tp>::value;
2800 template <
typename _Tp>
2801 inline constexpr
bool is_object_v = is_object<_Tp>::value;
2802 template <
typename _Tp>
2803 inline constexpr
bool is_scalar_v = is_scalar<_Tp>::value;
2804 template <
typename _Tp>
2805 inline constexpr
bool is_compound_v = is_compound<_Tp>::value;
2806 template <
typename _Tp>
2807 inline constexpr
bool is_member_pointer_v = is_member_pointer<_Tp>::value;
2808 template <
typename _Tp>
2809 inline constexpr
bool is_const_v = is_const<_Tp>::value;
2810 template <
typename _Tp>
2811 inline constexpr
bool is_volatile_v = is_volatile<_Tp>::value;
2812 template <
typename _Tp>
2813 inline constexpr
bool is_trivial_v = is_trivial<_Tp>::value;
2814 template <
typename _Tp>
2815 inline constexpr
bool is_trivially_copyable_v =
2816 is_trivially_copyable<_Tp>::value;
2817 template <
typename _Tp>
2818 inline constexpr
bool is_standard_layout_v = is_standard_layout<_Tp>::value;
2819 template <
typename _Tp>
2820 inline constexpr
bool is_pod_v = is_pod<_Tp>::value;
2821 template <
typename _Tp>
2822 inline constexpr
bool is_literal_type_v = is_literal_type<_Tp>::value;
2823 template <
typename _Tp>
2824 inline constexpr
bool is_empty_v = is_empty<_Tp>::value;
2825 template <
typename _Tp>
2826 inline constexpr
bool is_polymorphic_v = is_polymorphic<_Tp>::value;
2827 template <
typename _Tp>
2828 inline constexpr
bool is_abstract_v = is_abstract<_Tp>::value;
2829 template <
typename _Tp>
2830 inline constexpr
bool is_final_v = is_final<_Tp>::value;
2831 template <
typename _Tp>
2832 inline constexpr
bool is_signed_v = is_signed<_Tp>::value;
2833 template <
typename _Tp>
2834 inline constexpr
bool is_unsigned_v = is_unsigned<_Tp>::value;
2835 template <
typename _Tp,
typename... _Args>
2836 inline constexpr
bool is_constructible_v =
2837 is_constructible<_Tp, _Args...>::value;
2838 template <
typename _Tp>
2839 inline constexpr
bool is_default_constructible_v =
2840 is_default_constructible<_Tp>::value;
2841 template <
typename _Tp>
2842 inline constexpr
bool is_copy_constructible_v =
2843 is_copy_constructible<_Tp>::value;
2844 template <
typename _Tp>
2845 inline constexpr
bool is_move_constructible_v =
2846 is_move_constructible<_Tp>::value;
2847 template <
typename _Tp,
typename _Up>
2848 inline constexpr
bool is_assignable_v = is_assignable<_Tp, _Up>::value;
2849 template <
typename _Tp>
2850 inline constexpr
bool is_copy_assignable_v = is_copy_assignable<_Tp>::value;
2851 template <
typename _Tp>
2852 inline constexpr
bool is_move_assignable_v = is_move_assignable<_Tp>::value;
2853 template <
typename _Tp>
2854 inline constexpr
bool is_destructible_v = is_destructible<_Tp>::value;
2855 template <
typename _Tp,
typename... _Args>
2856 inline constexpr
bool is_trivially_constructible_v =
2857 is_trivially_constructible<_Tp, _Args...>::value;
2858 template <
typename _Tp>
2859 inline constexpr
bool is_trivially_default_constructible_v =
2860 is_trivially_default_constructible<_Tp>::value;
2861 template <
typename _Tp>
2862 inline constexpr
bool is_trivially_copy_constructible_v =
2863 is_trivially_copy_constructible<_Tp>::value;
2864 template <
typename _Tp>
2865 inline constexpr
bool is_trivially_move_constructible_v =
2866 is_trivially_move_constructible<_Tp>::value;
2867 template <
typename _Tp,
typename _Up>
2868 inline constexpr
bool is_trivially_assignable_v =
2869 is_trivially_assignable<_Tp, _Up>::value;
2870 template <
typename _Tp>
2871 inline constexpr
bool is_trivially_copy_assignable_v =
2872 is_trivially_copy_assignable<_Tp>::value;
2873 template <
typename _Tp>
2874 inline constexpr
bool is_trivially_move_assignable_v =
2875 is_trivially_move_assignable<_Tp>::value;
2876 template <
typename _Tp>
2877 inline constexpr
bool is_trivially_destructible_v =
2878 is_trivially_destructible<_Tp>::value;
2879 template <
typename _Tp,
typename... _Args>
2880 inline constexpr
bool is_nothrow_constructible_v =
2881 is_nothrow_constructible<_Tp, _Args...>::value;
2882 template <
typename _Tp>
2883 inline constexpr
bool is_nothrow_default_constructible_v =
2884 is_nothrow_default_constructible<_Tp>::value;
2885 template <
typename _Tp>
2886 inline constexpr
bool is_nothrow_copy_constructible_v =
2887 is_nothrow_copy_constructible<_Tp>::value;
2888 template <
typename _Tp>
2889 inline constexpr
bool is_nothrow_move_constructible_v =
2890 is_nothrow_move_constructible<_Tp>::value;
2891 template <
typename _Tp,
typename _Up>
2892 inline constexpr
bool is_nothrow_assignable_v =
2893 is_nothrow_assignable<_Tp, _Up>::value;
2894 template <
typename _Tp>
2895 inline constexpr
bool is_nothrow_copy_assignable_v =
2896 is_nothrow_copy_assignable<_Tp>::value;
2897 template <
typename _Tp>
2898 inline constexpr
bool is_nothrow_move_assignable_v =
2899 is_nothrow_move_assignable<_Tp>::value;
2900 template <
typename _Tp>
2901 inline constexpr
bool is_nothrow_destructible_v =
2902 is_nothrow_destructible<_Tp>::value;
2903 template <
typename _Tp>
2904 inline constexpr
bool has_virtual_destructor_v =
2905 has_virtual_destructor<_Tp>::value;
2906 template <
typename _Tp>
2907 inline constexpr
size_t alignment_of_v = alignment_of<_Tp>::value;
2908 template <
typename _Tp>
2909 inline constexpr
size_t rank_v = rank<_Tp>::value;
2910 template <
typename _Tp,
unsigned _Idx = 0>
2911 inline constexpr
size_t extent_v = extent<_Tp, _Idx>::value;
2912 template <
typename _Tp,
typename _Up>
2913 inline constexpr
bool is_same_v = is_same<_Tp, _Up>::value;
2914 template <
typename _Base,
typename _Derived>
2915 inline constexpr
bool is_base_of_v = is_base_of<_Base, _Derived>::value;
2916 template <
typename _From,
typename _To>
2917 inline constexpr
bool is_convertible_v = is_convertible<_From, _To>::value;
2920 # define _GLIBCXX_HAVE_BUILTIN_HAS_UNIQ_OBJ_REP 1 2921 #elif defined(__is_identifier) 2923 # if ! __is_identifier(__has_unique_object_representations) 2924 # define _GLIBCXX_HAVE_BUILTIN_HAS_UNIQ_OBJ_REP 1 2928 #ifdef _GLIBCXX_HAVE_BUILTIN_HAS_UNIQ_OBJ_REP 2929 # define __cpp_lib_has_unique_object_representations 201606 2931 template<
typename _Tp>
2932 struct has_unique_object_representations
2933 : bool_constant<__has_unique_object_representations(
2934 remove_cv_t<remove_all_extents_t<_Tp>>
2938 template<
typename _Tp>
2939 inline constexpr
bool has_unique_object_representations_v
2940 = has_unique_object_representations<_Tp>::value;
2942 #undef _GLIBCXX_HAVE_BUILTIN_HAS_UNIQ_OBJ_REP 2945 # define _GLIBCXX_HAVE_BUILTIN_IS_AGGREGATE 1 2946 #elif defined(__is_identifier) 2948 # if ! __is_identifier(__is_aggregate) 2949 # define _GLIBCXX_HAVE_BUILTIN_IS_AGGREGATE 1 2953 #ifdef _GLIBCXX_HAVE_BUILTIN_IS_AGGREGATE 2954 #define __cpp_lib_is_aggregate 201703 2956 template<
typename _Tp>
2958 : bool_constant<__is_aggregate(remove_cv_t<_Tp>)> { };
2961 template<
typename _Tp>
2962 inline constexpr
bool is_aggregate_v = is_aggregate<_Tp>::value;
2964 #undef _GLIBCXX_HAVE_BUILTIN_IS_AGGREGATE 2968 #if __cplusplus > 201703L 2972 little = __ORDER_LITTLE_ENDIAN__,
2973 big = __ORDER_BIG_ENDIAN__,
2974 native = __BYTE_ORDER__
2978 _GLIBCXX_END_NAMESPACE_VERSION
2983 #endif // _GLIBCXX_TYPE_TRAITS
typename remove_volatile< _Tp >::type remove_volatile_t
Alias template for remove_volatile.
typename add_const< _Tp >::type add_const_t
Alias template for add_const.
typename underlying_type< _Tp >::type underlying_type_t
Alias template for underlying_type.
is_member_function_pointer
typename conditional< _Cond, _Iftrue, _Iffalse >::type conditional_t
Alias template for conditional.
typename remove_all_extents< _Tp >::type remove_all_extents_t
Alias template for remove_all_extents.
is_trivially_move_assignable
The underlying type of an enum.
void void_t
A metafunction that always yields void, used for detecting valid types.
Define a member typedef type to one of two argument types.
typename add_rvalue_reference< _Tp >::type add_rvalue_reference_t
Alias template for add_rvalue_reference.
Metafunctions used for detecting swappable types: p0185r1.
integral_constant< bool, false > false_type
The type used as a compile-time boolean with false value.
is_null_pointer (LWG 2247).
typename add_volatile< _Tp >::type add_volatile_t
Alias template for add_volatile.
is_nothrow_move_assignable
_GLIBCXX17_INLINE constexpr bool is_nothrow_swappable_v
is_nothrow_swappable_v
typename add_lvalue_reference< _Tp >::type add_lvalue_reference_t
Alias template for add_lvalue_reference.
typename common_type< _Tp... >::type common_type_t
Alias template for common_type.
is_trivially_default_constructible
is_nothrow_copy_constructible
Primary class template for reference_wrapper.
typename make_signed< _Tp >::type make_signed_t
Alias template for make_signed.
typename aligned_storage< _Len, _Align >::type aligned_storage_t
Alias template for aligned_storage.
integral_constant< bool, true > true_type
The type used as a compile-time boolean with true value.
typename remove_pointer< _Tp >::type remove_pointer_t
Alias template for remove_pointer.
ISO C++ entities toplevel namespace is std.
typename decay< _Tp >::type decay_t
Alias template for decay.
aligned_storage< _S_len, alignment_value >::type type
The storage.
Implementation of the detection idiom (negative case).
is_nothrow_move_constructible
Define a member typedef type only if a boolean constant is true.
typename remove_extent< _Tp >::type remove_extent_t
Alias template for remove_extent.
typename make_unsigned< _Tp >::type make_unsigned_t
Alias template for make_unsigned.
typename add_pointer< _Tp >::type add_pointer_t
Alias template for add_pointer.
typename remove_reference< _Tp >::type remove_reference_t
Alias template for remove_reference.
typename remove_const< _Tp >::type remove_const_t
Alias template for remove_const.
is_trivially_move_constructible
typename enable_if< _Cond, _Tp >::type enable_if_t
Alias template for enable_if.
typename result_of< _Tp >::type result_of_t
Alias template for result_of.
is_nothrow_default_constructible
typename add_cv< _Tp >::type add_cv_t
Alias template for add_cv.
is_trivially_copy_assignable
_GLIBCXX17_INLINE constexpr bool is_nothrow_swappable_with_v
is_nothrow_swappable_with_v
_GLIBCXX17_INLINE constexpr bool is_swappable_with_v
is_swappable_with_v
is_trivially_destructible
is_nothrow_copy_assignable
Provide aligned storage for types.
_GLIBCXX17_INLINE constexpr bool is_swappable_v
is_swappable_v
__is_nullptr_t (extension).
is_nothrow_swappable_with
typename remove_cv< _Tp >::type remove_cv_t
Alias template for remove_cv.
is_trivially_constructible
is_trivially_copy_constructible