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) && !defined(__CUDACC__)
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
871 template<
typename _Tp,
typename... _Args>
877 template<
typename _Tp>
882 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
883 struct __is_copy_constructible_impl;
885 template<
typename _Tp>
886 struct __is_copy_constructible_impl<_Tp, false>
889 template<
typename _Tp>
890 struct __is_copy_constructible_impl<_Tp, true>
891 :
public is_constructible<_Tp, const _Tp&>
895 template<
typename _Tp>
897 :
public __is_copy_constructible_impl<_Tp>
900 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
901 struct __is_move_constructible_impl;
903 template<
typename _Tp>
904 struct __is_move_constructible_impl<_Tp, false>
907 template<
typename _Tp>
908 struct __is_move_constructible_impl<_Tp, true>
909 :
public is_constructible<_Tp, _Tp&&>
913 template<
typename _Tp>
915 :
public __is_move_constructible_impl<_Tp>
918 template<
typename _Tp>
919 struct __is_nt_default_constructible_atom
923 template<typename _Tp, bool = is_array<_Tp>::value>
924 struct __is_nt_default_constructible_impl;
926 template<
typename _Tp>
927 struct __is_nt_default_constructible_impl<_Tp, true>
928 :
public __and_<__is_array_known_bounds<_Tp>,
929 __is_nt_default_constructible_atom<typename
930 remove_all_extents<_Tp>::type>>
933 template<
typename _Tp>
934 struct __is_nt_default_constructible_impl<_Tp, false>
935 :
public __is_nt_default_constructible_atom<_Tp>
939 template<
typename _Tp>
941 :
public __and_<is_default_constructible<_Tp>,
942 __is_nt_default_constructible_impl<_Tp>>
945 template<
typename _Tp,
typename... _Args>
946 struct __is_nt_constructible_impl
950 template<
typename _Tp,
typename _Arg>
951 struct __is_nt_constructible_impl<_Tp, _Arg>
952 :
public integral_constant<bool,
953 noexcept(static_cast<_Tp>(declval<_Arg>()))>
956 template<
typename _Tp>
957 struct __is_nt_constructible_impl<_Tp>
958 :
public is_nothrow_default_constructible<_Tp>
962 template<
typename _Tp,
typename... _Args>
964 :
public __and_<is_constructible<_Tp, _Args...>,
965 __is_nt_constructible_impl<_Tp, _Args...>>
968 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
969 struct __is_nothrow_copy_constructible_impl;
971 template<
typename _Tp>
972 struct __is_nothrow_copy_constructible_impl<_Tp, false>
975 template<
typename _Tp>
976 struct __is_nothrow_copy_constructible_impl<_Tp, true>
977 :
public is_nothrow_constructible<_Tp, const _Tp&>
981 template<
typename _Tp>
983 :
public __is_nothrow_copy_constructible_impl<_Tp>
986 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
987 struct __is_nothrow_move_constructible_impl;
989 template<
typename _Tp>
990 struct __is_nothrow_move_constructible_impl<_Tp, false>
993 template<
typename _Tp>
994 struct __is_nothrow_move_constructible_impl<_Tp, true>
995 :
public is_nothrow_constructible<_Tp, _Tp&&>
999 template<
typename _Tp>
1001 :
public __is_nothrow_move_constructible_impl<_Tp>
1005 template<
typename _Tp,
typename _Up>
1010 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1011 struct __is_copy_assignable_impl;
1013 template<
typename _Tp>
1014 struct __is_copy_assignable_impl<_Tp, false>
1017 template<
typename _Tp>
1018 struct __is_copy_assignable_impl<_Tp, true>
1019 :
public is_assignable<_Tp&, const _Tp&>
1023 template<
typename _Tp>
1025 :
public __is_copy_assignable_impl<_Tp>
1028 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1029 struct __is_move_assignable_impl;
1031 template<
typename _Tp>
1032 struct __is_move_assignable_impl<_Tp, false>
1035 template<
typename _Tp>
1036 struct __is_move_assignable_impl<_Tp, true>
1037 :
public is_assignable<_Tp&, _Tp&&>
1041 template<
typename _Tp>
1043 :
public __is_move_assignable_impl<_Tp>
1046 template<
typename _Tp,
typename _Up>
1047 struct __is_nt_assignable_impl
1052 template<
typename _Tp,
typename _Up>
1054 :
public __and_<is_assignable<_Tp, _Up>,
1055 __is_nt_assignable_impl<_Tp, _Up>>
1058 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1059 struct __is_nt_copy_assignable_impl;
1061 template<
typename _Tp>
1062 struct __is_nt_copy_assignable_impl<_Tp, false>
1065 template<
typename _Tp>
1066 struct __is_nt_copy_assignable_impl<_Tp, true>
1067 :
public is_nothrow_assignable<_Tp&, const _Tp&>
1071 template<
typename _Tp>
1073 :
public __is_nt_copy_assignable_impl<_Tp>
1076 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1077 struct __is_nt_move_assignable_impl;
1079 template<
typename _Tp>
1080 struct __is_nt_move_assignable_impl<_Tp, false>
1083 template<
typename _Tp>
1084 struct __is_nt_move_assignable_impl<_Tp, true>
1085 :
public is_nothrow_assignable<_Tp&, _Tp&&>
1089 template<
typename _Tp>
1091 :
public __is_nt_move_assignable_impl<_Tp>
1095 template<
typename _Tp,
typename... _Args>
1097 :
public __and_<is_constructible<_Tp, _Args...>, __bool_constant<
1098 __is_trivially_constructible(_Tp, _Args...)>>::type
1102 template<
typename _Tp>
1107 struct __do_is_implicitly_default_constructible_impl
1109 template <
typename _Tp>
1110 static void __helper(
const _Tp&);
1112 template <
typename _Tp>
1114 decltype(__helper<const _Tp&>({}))* = 0);
1119 template<
typename _Tp>
1120 struct __is_implicitly_default_constructible_impl
1121 :
public __do_is_implicitly_default_constructible_impl
1123 typedef decltype(__test(declval<_Tp>())) type;
1126 template<typename _Tp>
1127 struct __is_implicitly_default_constructible_safe
1128 : public __is_implicitly_default_constructible_impl<_Tp>::type
1131 template <
typename _Tp>
1132 struct __is_implicitly_default_constructible
1133 :
public __and_<is_default_constructible<_Tp>,
1134 __is_implicitly_default_constructible_safe<_Tp>>
1139 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1142 template<
typename _Tp>
1146 template<
typename _Tp>
1148 :
public __and_<is_copy_constructible<_Tp>,
1149 integral_constant<bool,
1150 __is_trivially_constructible(_Tp, const _Tp&)>>
1153 template<
typename _Tp>
1154 struct is_trivially_copy_constructible
1155 :
public __is_trivially_copy_constructible_impl<_Tp>
1160 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1163 template<
typename _Tp>
1167 template<
typename _Tp>
1169 :
public __and_<is_move_constructible<_Tp>,
1170 integral_constant<bool,
1171 __is_trivially_constructible(_Tp, _Tp&&)>>
1174 template<
typename _Tp>
1175 struct is_trivially_move_constructible
1176 :
public __is_trivially_move_constructible_impl<_Tp>
1180 template<
typename _Tp,
typename _Up>
1187 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1190 template<
typename _Tp>
1194 template<
typename _Tp>
1196 :
public __and_<is_copy_assignable<_Tp>,
1197 integral_constant<bool,
1198 __is_trivially_assignable(_Tp&, const _Tp&)>>
1201 template<
typename _Tp>
1202 struct is_trivially_copy_assignable
1203 :
public __is_trivially_copy_assignable_impl<_Tp>
1208 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1211 template<
typename _Tp>
1215 template<
typename _Tp>
1217 :
public __and_<is_move_assignable<_Tp>,
1218 integral_constant<bool,
1219 __is_trivially_assignable(_Tp&, _Tp&&)>>
1222 template<
typename _Tp>
1223 struct is_trivially_move_assignable
1224 :
public __is_trivially_move_assignable_impl<_Tp>
1228 template<
typename _Tp>
1230 :
public __and_<is_destructible<_Tp>, integral_constant<bool,
1231 __has_trivial_destructor(_Tp)>>
1236 template<
typename _Tp>
1245 template<
typename _Tp>
1254 template<
typename _Tp, std::
size_t _Size>
1255 struct rank<_Tp[_Size]>
1258 template<
typename _Tp>
1260 :
public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
1263 template<
typename,
unsigned _U
int>
1265 :
public integral_constant<std::size_t, 0> { };
1267 template<
typename _Tp,
unsigned _U
int, std::
size_t _Size>
1268 struct extent<_Tp[_Size], _Uint>
1269 :
public integral_constant<std::size_t,
1270 _Uint == 0 ? _Size : extent<_Tp,
1274 template<
typename _Tp,
unsigned _U
int>
1275 struct extent<_Tp[], _Uint>
1276 :
public integral_constant<std::size_t,
1277 _Uint == 0 ? 0 : extent<_Tp,
1285 template<
typename,
typename>
1289 template<
typename _Tp>
1294 template<
typename _Base,
typename _Derived>
1299 template<
typename _From,
typename _To,
1302 struct __is_convertible_helper
1305 template<
typename _From,
typename _To>
1306 class __is_convertible_helper<_From, _To, false>
1308 template<
typename _To1>
1309 static void __test_aux(_To1);
1311 template<
typename _From1,
typename _To1,
1312 typename = decltype(__test_aux<_To1>(std::declval<_From1>()))>
1316 template<
typename,
typename>
1321 typedef decltype(__test<_From, _To>(0)) type;
1326 template<typename _From, typename _To>
1328 : public __is_convertible_helper<_From, _To>::type
1335 template<
typename _Tp>
1337 {
typedef _Tp type; };
1339 template<
typename _Tp>
1341 {
typedef _Tp type; };
1344 template<
typename _Tp>
1346 {
typedef _Tp type; };
1348 template<
typename _Tp>
1350 {
typedef _Tp type; };
1353 template<
typename _Tp>
1357 remove_const<typename remove_volatile<_Tp>::type>::type type;
1361 template<
typename _Tp>
1363 {
typedef _Tp
const type; };
1366 template<
typename _Tp>
1368 {
typedef _Tp
volatile type; };
1371 template<
typename _Tp>
1378 #if __cplusplus > 201103L
1380 #define __cpp_lib_transformation_trait_aliases 201304
1383 template<
typename _Tp>
1387 template<
typename _Tp>
1391 template<
typename _Tp>
1395 template<
typename _Tp>
1399 template<
typename _Tp>
1403 template<
typename _Tp>
1410 template<
typename _Tp>
1412 {
typedef _Tp type; };
1414 template<
typename _Tp>
1416 {
typedef _Tp type; };
1418 template<
typename _Tp>
1419 struct remove_reference<_Tp&&>
1420 {
typedef _Tp type; };
1422 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1423 struct __add_lvalue_reference_helper
1424 {
typedef _Tp type; };
1426 template<
typename _Tp>
1427 struct __add_lvalue_reference_helper<_Tp, true>
1428 {
typedef _Tp& type; };
1431 template<
typename _Tp>
1433 :
public __add_lvalue_reference_helper<_Tp>
1436 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1437 struct __add_rvalue_reference_helper
1438 {
typedef _Tp type; };
1440 template<
typename _Tp>
1441 struct __add_rvalue_reference_helper<_Tp, true>
1442 {
typedef _Tp&& type; };
1445 template<
typename _Tp>
1447 :
public __add_rvalue_reference_helper<_Tp>
1450 #if __cplusplus > 201103L
1452 template<
typename _Tp>
1456 template<
typename _Tp>
1460 template<
typename _Tp>
1467 template<
typename _Unqualified,
bool _IsConst,
bool _IsVol>
1468 struct __cv_selector;
1470 template<
typename _Unqualified>
1471 struct __cv_selector<_Unqualified, false, false>
1472 {
typedef _Unqualified __type; };
1474 template<
typename _Unqualified>
1475 struct __cv_selector<_Unqualified, false, true>
1476 {
typedef volatile _Unqualified __type; };
1478 template<
typename _Unqualified>
1479 struct __cv_selector<_Unqualified, true, false>
1480 {
typedef const _Unqualified __type; };
1482 template<
typename _Unqualified>
1483 struct __cv_selector<_Unqualified, true, true>
1484 {
typedef const volatile _Unqualified __type; };
1486 template<
typename _Qualified,
typename _Unqualified,
1487 bool _IsConst = is_const<_Qualified>::value,
1488 bool _IsVol = is_volatile<_Qualified>::value>
1489 class __match_cv_qualifiers
1491 typedef __cv_selector<_Unqualified, _IsConst, _IsVol> __match;
1494 typedef typename __match::__type __type;
1498 template<
typename _Tp>
1499 struct __make_unsigned
1500 {
typedef _Tp __type; };
1503 struct __make_unsigned<char>
1504 {
typedef unsigned char __type; };
1507 struct __make_unsigned<signed char>
1508 {
typedef unsigned char __type; };
1511 struct __make_unsigned<short>
1512 {
typedef unsigned short __type; };
1515 struct __make_unsigned<int>
1516 {
typedef unsigned int __type; };
1519 struct __make_unsigned<long>
1520 {
typedef unsigned long __type; };
1523 struct __make_unsigned<long long>
1524 {
typedef unsigned long long __type; };
1526 #if defined(__GLIBCXX_TYPE_INT_N_0)
1528 struct __make_unsigned<__GLIBCXX_TYPE_INT_N_0>
1529 {
typedef unsigned __GLIBCXX_TYPE_INT_N_0 __type; };
1531 #if defined(__GLIBCXX_TYPE_INT_N_1)
1533 struct __make_unsigned<__GLIBCXX_TYPE_INT_N_1>
1534 {
typedef unsigned __GLIBCXX_TYPE_INT_N_1 __type; };
1536 #if defined(__GLIBCXX_TYPE_INT_N_2)
1538 struct __make_unsigned<__GLIBCXX_TYPE_INT_N_2>
1539 {
typedef unsigned __GLIBCXX_TYPE_INT_N_2 __type; };
1541 #if defined(__GLIBCXX_TYPE_INT_N_3)
1543 struct __make_unsigned<__GLIBCXX_TYPE_INT_N_3>
1544 {
typedef unsigned __GLIBCXX_TYPE_INT_N_3 __type; };
1548 template<
typename _Tp,
1549 bool _IsInt = is_integral<_Tp>::value,
1550 bool _IsEnum = is_enum<_Tp>::value>
1551 class __make_unsigned_selector;
1553 template<
typename _Tp>
1554 class __make_unsigned_selector<_Tp, true, false>
1556 typedef __make_unsigned<typename remove_cv<_Tp>::type> __unsignedt;
1557 typedef typename __unsignedt::__type __unsigned_type;
1558 typedef __match_cv_qualifiers<_Tp, __unsigned_type> __cv_unsigned;
1561 typedef typename __cv_unsigned::__type __type;
1564 template<
typename _Tp>
1565 class __make_unsigned_selector<_Tp, false, true>
1568 typedef unsigned char __smallest;
1569 static const bool __b0 =
sizeof(_Tp) <=
sizeof(__smallest);
1570 static const bool __b1 =
sizeof(_Tp) <=
sizeof(
unsigned short);
1571 static const bool __b2 =
sizeof(_Tp) <=
sizeof(
unsigned int);
1572 static const bool __b3 =
sizeof(_Tp) <=
sizeof(
unsigned long);
1573 typedef conditional<__b3, unsigned long, unsigned long long> __cond3;
1574 typedef typename __cond3::type __cond3_type;
1575 typedef conditional<__b2, unsigned int, __cond3_type> __cond2;
1576 typedef typename __cond2::type __cond2_type;
1577 typedef conditional<__b1, unsigned short, __cond2_type> __cond1;
1578 typedef typename __cond1::type __cond1_type;
1580 typedef typename conditional<__b0, __smallest, __cond1_type>::type
1582 typedef __match_cv_qualifiers<_Tp, __unsigned_type> __cv_unsigned;
1585 typedef typename __cv_unsigned::__type __type;
1592 template<
typename _Tp>
1594 {
typedef typename __make_unsigned_selector<_Tp>::__type type; };
1602 template<
typename _Tp>
1603 struct __make_signed
1604 {
typedef _Tp __type; };
1607 struct __make_signed<char>
1608 {
typedef signed char __type; };
1611 struct __make_signed<unsigned char>
1612 {
typedef signed char __type; };
1615 struct __make_signed<unsigned short>
1616 {
typedef signed short __type; };
1619 struct __make_signed<unsigned int>
1620 {
typedef signed int __type; };
1623 struct __make_signed<unsigned long>
1624 {
typedef signed long __type; };
1627 struct __make_signed<unsigned long long>
1628 {
typedef signed long long __type; };
1630 #if defined(__GLIBCXX_TYPE_INT_N_0)
1632 struct __make_signed<unsigned __GLIBCXX_TYPE_INT_N_0>
1633 {
typedef __GLIBCXX_TYPE_INT_N_0 __type; };
1635 #if defined(__GLIBCXX_TYPE_INT_N_1)
1637 struct __make_signed<unsigned __GLIBCXX_TYPE_INT_N_1>
1638 {
typedef __GLIBCXX_TYPE_INT_N_1 __type; };
1640 #if defined(__GLIBCXX_TYPE_INT_N_2)
1642 struct __make_signed<unsigned __GLIBCXX_TYPE_INT_N_2>
1643 {
typedef __GLIBCXX_TYPE_INT_N_2 __type; };
1645 #if defined(__GLIBCXX_TYPE_INT_N_3)
1647 struct __make_signed<unsigned __GLIBCXX_TYPE_INT_N_3>
1648 {
typedef __GLIBCXX_TYPE_INT_N_3 __type; };
1652 template<
typename _Tp,
1653 bool _IsInt = is_integral<_Tp>::value,
1654 bool _IsEnum = is_enum<_Tp>::value>
1655 class __make_signed_selector;
1657 template<
typename _Tp>
1658 class __make_signed_selector<_Tp, true, false>
1660 typedef __make_signed<typename remove_cv<_Tp>::type> __signedt;
1661 typedef typename __signedt::__type __signed_type;
1662 typedef __match_cv_qualifiers<_Tp, __signed_type> __cv_signed;
1665 typedef typename __cv_signed::__type __type;
1668 template<
typename _Tp>
1669 class __make_signed_selector<_Tp, false, true>
1671 typedef typename __make_unsigned_selector<_Tp>::__type __unsigned_type;
1674 typedef typename __make_signed_selector<__unsigned_type>::__type __type;
1681 template<
typename _Tp>
1683 {
typedef typename __make_signed_selector<_Tp>::__type type; };
1689 #if __cplusplus > 201103L
1691 template<
typename _Tp>
1695 template<
typename _Tp>
1702 template<
typename _Tp>
1704 {
typedef _Tp type; };
1706 template<
typename _Tp, std::
size_t _Size>
1708 {
typedef _Tp type; };
1710 template<
typename _Tp>
1711 struct remove_extent<_Tp[]>
1712 {
typedef _Tp type; };
1715 template<
typename _Tp>
1716 struct remove_all_extents
1717 {
typedef _Tp type; };
1719 template<
typename _Tp, std::
size_t _Size>
1720 struct remove_all_extents<_Tp[_Size]>
1721 {
typedef typename remove_all_extents<_Tp>::type type; };
1723 template<
typename _Tp>
1724 struct remove_all_extents<_Tp[]>
1725 {
typedef typename remove_all_extents<_Tp>::type type; };
1727 #if __cplusplus > 201103L
1729 template<
typename _Tp>
1733 template<
typename _Tp>
1739 template<
typename _Tp,
typename>
1740 struct __remove_pointer_helper
1741 {
typedef _Tp type; };
1743 template<
typename _Tp,
typename _Up>
1744 struct __remove_pointer_helper<_Tp, _Up*>
1745 {
typedef _Up type; };
1748 template<
typename _Tp>
1750 :
public __remove_pointer_helper<_Tp, typename remove_cv<_Tp>::type>
1754 template<
typename _Tp,
bool = __or_<__is_referenceable<_Tp>,
1755 is_
void<_Tp>>::value>
1757 {
typedef _Tp type; };
1759 template<
typename _Tp>
1761 {
typedef typename remove_reference<_Tp>::type* type; };
1763 template<
typename _Tp>
1765 :
public __add_pointer_helper<_Tp>
1768 #if __cplusplus > 201103L
1770 template<
typename _Tp>
1774 template<
typename _Tp>
1778 template<std::
size_t _Len>
1779 struct __aligned_storage_msa
1783 unsigned char __data[_Len];
1784 struct __attribute__((__aligned__)) { } __align;
1798 template<std::size_t _Len, std::size_t _Align =
1799 __alignof__(
typename __aligned_storage_msa<_Len>::__type)>
1804 unsigned char __data[_Len];
1805 struct __attribute__((__aligned__((_Align)))) { } __align;
1809 template <
typename... _Types>
1810 struct __strictest_alignment
1812 static const size_t _S_alignment = 0;
1813 static const size_t _S_size = 0;
1816 template <
typename _Tp,
typename... _Types>
1817 struct __strictest_alignment<_Tp, _Types...>
1819 static const size_t _S_alignment =
1820 alignof(_Tp) > __strictest_alignment<_Types...>::_S_alignment
1821 ?
alignof(_Tp) : __strictest_alignment<_Types...>::_S_alignment;
1822 static const size_t _S_size =
1823 sizeof(_Tp) > __strictest_alignment<_Types...>::_S_size
1824 ?
sizeof(_Tp) : __strictest_alignment<_Types...>::_S_size;
1837 template <
size_t _Len,
typename... _Types>
1841 static_assert(
sizeof...(_Types) != 0,
"At least one type is required");
1843 using __strictest = __strictest_alignment<_Types...>;
1844 static const size_t _S_len = _Len > __strictest::_S_size
1845 ? _Len : __strictest::_S_size;
1848 static const size_t alignment_value = __strictest::_S_alignment;
1853 template <
size_t _Len,
typename... _Types>
1854 const size_t aligned_union<_Len, _Types...>::alignment_value;
1858 template<
typename _Up,
1861 struct __decay_selector;
1864 template<
typename _Up>
1865 struct __decay_selector<_Up, false, false>
1866 {
typedef typename remove_cv<_Up>::type __type; };
1868 template<
typename _Up>
1869 struct __decay_selector<_Up, true, false>
1870 {
typedef typename remove_extent<_Up>::type* __type; };
1872 template<
typename _Up>
1873 struct __decay_selector<_Up, false, true>
1874 {
typedef typename add_pointer<_Up>::type __type; };
1877 template<
typename _Tp>
1880 typedef typename remove_reference<_Tp>::type __remove_type;
1883 typedef typename __decay_selector<__remove_type>::__type type;
1886 template<
typename _Tp>
1890 template<
typename _Tp>
1891 struct __strip_reference_wrapper
1896 template<
typename _Tp>
1899 typedef _Tp& __type;
1902 template<
typename _Tp>
1903 struct __decay_and_strip
1905 typedef typename __strip_reference_wrapper<
1906 typename decay<_Tp>::type>::__type __type;
1912 template<
bool,
typename _Tp =
void>
1917 template<
typename _Tp>
1919 {
typedef _Tp type; };
1921 template<
typename... _Cond>
1922 using _Require =
typename enable_if<__and_<_Cond...>::value>::type;
1926 template<
bool _Cond,
typename _Iftrue,
typename _Iffalse>
1928 {
typedef _Iftrue type; };
1931 template<
typename _Iftrue,
typename _Iffalse>
1932 struct conditional<false, _Iftrue, _Iffalse>
1933 {
typedef _Iffalse type; };
1936 template<
typename... _Tp>
1941 struct __do_common_type_impl
1943 template<
typename _Tp,
typename _Up>
1944 static __success_type<
typename decay<decltype
1945 (
true ? std::declval<_Tp>()
1946 : std::declval<_Up>())>::type> _S_test(
int);
1948 template<
typename,
typename>
1949 static __failure_type _S_test(...);
1952 template<
typename _Tp,
typename _Up>
1953 struct __common_type_impl
1954 :
private __do_common_type_impl
1956 typedef decltype(_S_test<_Tp, _Up>(0)) type;
1959 struct __do_member_type_wrapper
1961 template<
typename _Tp>
1962 static __success_type<typename _Tp::type> _S_test(
int);
1965 static __failure_type _S_test(...);
1968 template<
typename _Tp>
1969 struct __member_type_wrapper
1970 :
private __do_member_type_wrapper
1972 typedef decltype(_S_test<_Tp>(0)) type;
1975 template<typename _CTp, typename... _Args>
1976 struct __expanded_common_type_wrapper
1978 typedef common_type<
typename _CTp::type, _Args...> type;
1981 template<
typename... _Args>
1982 struct __expanded_common_type_wrapper<__failure_type, _Args...>
1983 {
typedef __failure_type type; };
1986 struct common_type<>
1989 template<
typename _Tp>
1990 struct common_type<_Tp>
1991 : common_type<_Tp, _Tp>
1994 template<
typename _Tp,
typename _Up>
1995 struct common_type<_Tp, _Up>
1996 :
public __common_type_impl<_Tp, _Up>::type
1999 template<
typename _Tp,
typename _Up,
typename... _Vp>
2000 struct common_type<_Tp, _Up, _Vp...>
2001 :
public __expanded_common_type_wrapper<typename __member_type_wrapper<
2002 common_type<_Tp, _Up>>::type, _Vp...>::type
2006 template<
typename _Tp>
2009 typedef __underlying_type(_Tp) type;
2012 template<
typename _Tp>
2013 struct __declval_protector
2015 static const bool __stop =
false;
2018 template<
typename _Tp>
2019 auto declval() noexcept -> decltype(__declval<_Tp>(0))
2021 static_assert(__declval_protector<_Tp>::__stop,
2022 "declval() must not be used!");
2023 return __declval<_Tp>(0);
2034 #if defined(_GLIBCXX_USE_WCHAR_T)
2036 struct __make_unsigned<wchar_t>
2039 =
typename __make_unsigned_selector<wchar_t, false, true>::__type;
2043 struct __make_signed<wchar_t>
2046 =
typename __make_signed_selector<wchar_t, false, true>::__type;
2051 struct __make_unsigned<char16_t>
2054 =
typename __make_unsigned_selector<char16_t, false, true>::__type;
2058 struct __make_signed<char16_t>
2061 =
typename __make_signed_selector<char16_t, false, true>::__type;
2065 struct __make_unsigned<char32_t>
2068 =
typename __make_unsigned_selector<char32_t, false, true>::__type;
2072 struct __make_signed<char32_t>
2075 =
typename __make_signed_selector<char32_t, false, true>::__type;
2080 template<
typename _Signature>
2085 #define __cpp_lib_result_of_sfinae 201210
2087 struct __invoke_memfun_ref { };
2088 struct __invoke_memfun_deref { };
2089 struct __invoke_memobj_ref { };
2090 struct __invoke_memobj_deref { };
2091 struct __invoke_other { };
2094 template<
typename _Tp,
typename _Tag>
2095 struct __result_of_success : __success_type<_Tp>
2096 {
using __invoke_type = _Tag; };
2099 struct __result_of_memfun_ref_impl
2101 template<
typename _Fp,
typename _Tp1,
typename... _Args>
2102 static __result_of_success<decltype(
2103 (std::declval<_Tp1>().*std::declval<_Fp>())(std::declval<_Args>()...)
2104 ), __invoke_memfun_ref> _S_test(
int);
2106 template<
typename...>
2107 static __failure_type _S_test(...);
2110 template<
typename _MemPtr,
typename _Arg,
typename... _Args>
2111 struct __result_of_memfun_ref
2112 :
private __result_of_memfun_ref_impl
2114 typedef decltype(_S_test<_MemPtr, _Arg, _Args...>(0)) type;
2118 struct __result_of_memfun_deref_impl
2120 template<
typename _Fp,
typename _Tp1,
typename... _Args>
2121 static __result_of_success<decltype(
2122 ((*std::declval<_Tp1>()).*std::declval<_Fp>())(std::declval<_Args>()...)
2123 ), __invoke_memfun_deref> _S_test(
int);
2125 template<
typename...>
2126 static __failure_type _S_test(...);
2129 template<
typename _MemPtr,
typename _Arg,
typename... _Args>
2130 struct __result_of_memfun_deref
2131 :
private __result_of_memfun_deref_impl
2133 typedef decltype(_S_test<_MemPtr, _Arg, _Args...>(0)) type;
2137 struct __result_of_memobj_ref_impl
2139 template<
typename _Fp,
typename _Tp1>
2140 static __result_of_success<decltype(
2141 std::declval<_Tp1>().*std::declval<_Fp>()
2142 ), __invoke_memobj_ref> _S_test(
int);
2144 template<
typename,
typename>
2145 static __failure_type _S_test(...);
2148 template<
typename _MemPtr,
typename _Arg>
2149 struct __result_of_memobj_ref
2150 :
private __result_of_memobj_ref_impl
2152 typedef decltype(_S_test<_MemPtr, _Arg>(0)) type;
2156 struct __result_of_memobj_deref_impl
2158 template<
typename _Fp,
typename _Tp1>
2159 static __result_of_success<decltype(
2160 (*std::declval<_Tp1>()).*std::declval<_Fp>()
2161 ), __invoke_memobj_deref> _S_test(
int);
2163 template<
typename,
typename>
2164 static __failure_type _S_test(...);
2167 template<
typename _MemPtr,
typename _Arg>
2168 struct __result_of_memobj_deref
2169 :
private __result_of_memobj_deref_impl
2171 typedef decltype(_S_test<_MemPtr, _Arg>(0)) type;
2174 template<typename _MemPtr, typename _Arg>
2175 struct __result_of_memobj;
2177 template<typename _Res, typename _Class, typename _Arg>
2178 struct __result_of_memobj<_Res _Class::*, _Arg>
2180 typedef typename remove_cv<
typename remove_reference<
2181 _Arg>::type>::type _Argval;
2182 typedef _Res _Class::* _MemPtr;
2183 typedef typename conditional<__or_<is_same<_Argval, _Class>,
2184 is_base_of<_Class, _Argval>>::value,
2185 __result_of_memobj_ref<_MemPtr, _Arg>,
2186 __result_of_memobj_deref<_MemPtr, _Arg>
2190 template<
typename _MemPtr,
typename _Arg,
typename... _Args>
2191 struct __result_of_memfun;
2193 template<
typename _Res,
typename _Class,
typename _Arg,
typename... _Args>
2194 struct __result_of_memfun<_Res _Class::*, _Arg, _Args...>
2196 typedef typename remove_cv<
typename remove_reference<
2197 _Arg>::type>::type _Argval;
2198 typedef _Res _Class::* _MemPtr;
2199 typedef typename conditional<__or_<is_same<_Argval, _Class>,
2200 is_base_of<_Class, _Argval>>::value,
2201 __result_of_memfun_ref<_MemPtr, _Arg, _Args...>,
2202 __result_of_memfun_deref<_MemPtr, _Arg, _Args...>
2211 template<typename _Tp, typename _Up = typename decay<_Tp>::type>
2217 template<
typename _Tp,
typename _Up>
2218 struct __inv_unwrap<_Tp, reference_wrapper<_Up>>
2223 template<bool, bool,
typename _Functor,
typename... _ArgTypes>
2224 struct __result_of_impl
2226 typedef __failure_type type;
2229 template<
typename _MemPtr,
typename _Arg>
2230 struct __result_of_impl<true, false, _MemPtr, _Arg>
2231 :
public __result_of_memobj<typename decay<_MemPtr>::type,
2232 typename __inv_unwrap<_Arg>::type>
2235 template<
typename _MemPtr,
typename _Arg,
typename... _Args>
2236 struct __result_of_impl<false, true, _MemPtr, _Arg, _Args...>
2237 :
public __result_of_memfun<typename decay<_MemPtr>::type,
2238 typename __inv_unwrap<_Arg>::type, _Args...>
2242 struct __result_of_other_impl
2244 template<
typename _Fn,
typename... _Args>
2245 static __result_of_success<decltype(
2246 std::declval<_Fn>()(std::declval<_Args>()...)
2247 ), __invoke_other> _S_test(
int);
2249 template<
typename...>
2250 static __failure_type _S_test(...);
2253 template<
typename _Functor,
typename... _ArgTypes>
2254 struct __result_of_impl<false, false, _Functor, _ArgTypes...>
2255 :
private __result_of_other_impl
2257 typedef decltype(_S_test<_Functor, _ArgTypes...>(0)) type;
2261 template<typename _Functor, typename... _ArgTypes>
2262 struct __invoke_result
2263 : public __result_of_impl<
2264 is_member_object_pointer<
2265 typename remove_reference<_Functor>::type
2267 is_member_function_pointer<
2268 typename remove_reference<_Functor>::type
2270 _Functor, _ArgTypes...
2274 template<
typename _Functor,
typename... _ArgTypes>
2275 struct result_of<_Functor(_ArgTypes...)>
2276 :
public __invoke_result<_Functor, _ArgTypes...>
2279 #if __cplusplus >= 201402L
2281 template<
size_t _Len,
size_t _Align =
2282 __alignof__(
typename __aligned_storage_msa<_Len>::__type)>
2285 template <
size_t _Len,
typename... _Types>
2286 using aligned_union_t =
typename aligned_union<_Len, _Types...>::type;
2289 template<
typename _Tp>
2293 template<
bool _Cond,
typename _Tp =
void>
2297 template<
bool _Cond,
typename _Iftrue,
typename _Iffalse>
2301 template<
typename... _Tp>
2305 template<
typename _Tp>
2309 template<
typename _Tp>
2314 template<
bool _Cond,
typename _Tp =
void>
2318 template<
typename...>
using __void_t = void;
2320 #if __cplusplus >= 201703L || !defined(__STRICT_ANSI__) // c++17 or gnu++11
2321 #define __cpp_lib_void_t 201411
2327 template<
typename _Default,
typename _AlwaysVoid,
2328 template<
typename...>
class _Op,
typename... _Args>
2332 using type = _Default;
2336 template<
typename _Default,
template<
typename...>
class _Op,
2338 struct __detector<_Default, __void_t<_Op<_Args...>>, _Op, _Args...>
2341 using type = _Op<_Args...>;
2345 template<
typename _Default,
template<
typename...>
class _Op,
2350 template<
typename _Default,
template<
typename...>
class _Op,
2352 using __detected_or_t
2361 #define _GLIBCXX_HAS_NESTED_TYPE(_NTYPE) \
2362 template<typename _Tp, typename = __void_t<>> \
2363 struct __has_##_NTYPE \
2366 template<typename _Tp> \
2367 struct __has_##_NTYPE<_Tp, __void_t<typename _Tp::_NTYPE>> \
2371 template <
typename _Tp>
2372 struct __is_swappable;
2374 template <
typename _Tp>
2375 struct __is_nothrow_swappable;
2377 template<
typename... _Elements>
2384 template<
typename... _Tps>
2385 struct __is_tuple_like_impl<tuple<_Tps...>> :
true_type
2389 template<
typename _Tp>
2390 struct __is_tuple_like
2391 :
public __is_tuple_like_impl<typename remove_cv<
2392 typename remove_reference<_Tp>::type>::type>::type
2395 template<
typename _Tp>
2397 typename enable_if<__and_<__not_<__is_tuple_like<_Tp>>,
2398 is_move_constructible<_Tp>,
2399 is_move_assignable<_Tp>>::value>::type
2401 noexcept(__and_<is_nothrow_move_constructible<_Tp>,
2402 is_nothrow_move_assignable<_Tp>>::value);
2404 template<typename _Tp,
size_t _Nm>
2406 typename enable_if<__is_swappable<_Tp>::value>::type
2407 swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
2408 noexcept(__is_nothrow_swappable<_Tp>::value);
2410 namespace __swappable_details {
2413 struct __do_is_swappable_impl
2415 template<
typename _Tp,
typename
2416 = decltype(swap(std::declval<_Tp&>(), std::declval<_Tp&>()))>
2423 struct __do_is_nothrow_swappable_impl
2425 template<
typename _Tp>
2426 static __bool_constant<
2427 noexcept(swap(std::declval<_Tp&>(), std::declval<_Tp&>()))
2436 template<
typename _Tp>
2437 struct __is_swappable_impl
2438 :
public __swappable_details::__do_is_swappable_impl
2440 typedef decltype(__test<_Tp>(0)) type;
2443 template<typename _Tp>
2444 struct __is_nothrow_swappable_impl
2445 : public __swappable_details::__do_is_nothrow_swappable_impl
2447 typedef decltype(__test<_Tp>(0)) type;
2450 template<typename _Tp>
2451 struct __is_swappable
2452 : public __is_swappable_impl<_Tp>::type
2455 template<
typename _Tp>
2456 struct __is_nothrow_swappable
2457 :
public __is_nothrow_swappable_impl<_Tp>::type
2460 #if __cplusplus > 201402L || !defined(__STRICT_ANSI__) // c++1z or gnu++11
2461 #define __cpp_lib_is_swappable 201603
2465 template<
typename _Tp>
2467 :
public __is_swappable_impl<_Tp>::type
2471 template<
typename _Tp>
2473 :
public __is_nothrow_swappable_impl<_Tp>::type
2476 #if __cplusplus >= 201402L
2478 template<
typename _Tp>
2483 template<
typename _Tp>
2486 #endif // __cplusplus >= 201402L
2488 namespace __swappable_with_details {
2491 struct __do_is_swappable_with_impl
2493 template<
typename _Tp,
typename _Up,
typename
2494 = decltype(swap(std::declval<_Tp>(), std::declval<_Up>())),
2496 = decltype(swap(std::declval<_Up>(), std::declval<_Tp>()))>
2499 template<
typename,
typename>
2503 struct __do_is_nothrow_swappable_with_impl
2505 template<
typename _Tp,
typename _Up>
2507 noexcept(swap(std::declval<_Tp>(), std::declval<_Up>()))
2509 noexcept(swap(std::declval<_Up>(), std::declval<_Tp>()))
2512 template<
typename,
typename>
2518 template<
typename _Tp,
typename _Up>
2519 struct __is_swappable_with_impl
2520 :
public __swappable_with_details::__do_is_swappable_with_impl
2522 typedef decltype(__test<_Tp, _Up>(0)) type;
2526 template<typename _Tp>
2527 struct __is_swappable_with_impl<_Tp&, _Tp&>
2528 : public __swappable_details::__do_is_swappable_impl
2530 typedef decltype(__test<_Tp&>(0)) type;
2533 template<typename _Tp, typename _Up>
2534 struct __is_nothrow_swappable_with_impl
2535 : public __swappable_with_details::__do_is_nothrow_swappable_with_impl
2537 typedef decltype(__test<_Tp, _Up>(0)) type;
2541 template<typename _Tp>
2542 struct __is_nothrow_swappable_with_impl<_Tp&, _Tp&>
2543 : public __swappable_details::__do_is_nothrow_swappable_impl
2545 typedef decltype(__test<_Tp&>(0)) type;
2549 template<typename _Tp, typename _Up>
2551 : public __is_swappable_with_impl<_Tp, _Up>::type
2555 template<
typename _Tp,
typename _Up>
2557 :
public __is_nothrow_swappable_with_impl<_Tp, _Up>::type
2560 #if __cplusplus >= 201402L
2562 template<
typename _Tp,
typename _Up>
2567 template<
typename _Tp,
typename _Up>
2570 #endif // __cplusplus >= 201402L
2572 #endif// c++1z or gnu++11
2576 template<
typename _Result,
typename _Ret,
typename =
void>
2579 template<
typename _Result,
typename _Ret>
2580 struct __is_invocable_impl<_Result, _Ret, __void_t<typename _Result::type>>
2581 : __or_<is_void<_Ret>, is_convertible<typename _Result::type, _Ret>>::type
2584 template<
typename _Fn,
typename... _ArgTypes>
2585 struct __is_invocable
2586 : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>::type
2589 template<
typename _Fn,
typename _Tp,
typename... _Args>
2590 constexpr
bool __call_is_nt(__invoke_memfun_ref)
2592 using _Up =
typename __inv_unwrap<_Tp>::type;
2593 return noexcept((std::declval<_Up>().*std::declval<_Fn>())(
2594 std::declval<_Args>()...));
2597 template<
typename _Fn,
typename _Tp,
typename... _Args>
2598 constexpr
bool __call_is_nt(__invoke_memfun_deref)
2600 return noexcept(((*std::declval<_Tp>()).*std::declval<_Fn>())(
2601 std::declval<_Args>()...));
2604 template<
typename _Fn,
typename _Tp>
2605 constexpr
bool __call_is_nt(__invoke_memobj_ref)
2607 using _Up =
typename __inv_unwrap<_Tp>::type;
2608 return noexcept(std::declval<_Up>().*std::declval<_Fn>());
2611 template<
typename _Fn,
typename _Tp>
2612 constexpr
bool __call_is_nt(__invoke_memobj_deref)
2614 return noexcept((*std::declval<_Tp>()).*std::declval<_Fn>());
2617 template<
typename _Fn,
typename... _Args>
2618 constexpr
bool __call_is_nt(__invoke_other)
2620 return noexcept(std::declval<_Fn>()(std::declval<_Args>()...));
2623 template<
typename _Result,
typename _Fn,
typename... _Args>
2624 struct __call_is_nothrow
2626 std::__call_is_nt<_Fn, _Args...>(typename _Result::__invoke_type{})
2630 template<
typename _Fn,
typename... _Args>
2631 using __call_is_nothrow_
2632 = __call_is_nothrow<__invoke_result<_Fn, _Args...>, _Fn, _Args...>;
2635 template<
typename _Fn,
typename... _Args>
2636 struct __is_nothrow_invocable
2637 : __and_<__is_invocable<_Fn, _Args...>,
2638 __call_is_nothrow_<_Fn, _Args...>>::type
2642 __nonesuch() =
delete;
2643 ~__nonesuch() =
delete;
2644 __nonesuch(__nonesuch
const&) =
delete;
2645 void operator=(__nonesuch
const&) =
delete;
2648 #if __cplusplus >= 201703L
2649 # define __cpp_lib_is_invocable 201703
2652 template<
typename _Functor,
typename... _ArgTypes>
2653 struct invoke_result
2654 :
public __invoke_result<_Functor, _ArgTypes...>
2658 template<
typename _Fn,
typename... _Args>
2659 using invoke_result_t =
typename invoke_result<_Fn, _Args...>::type;
2662 template<
typename _Fn,
typename... _ArgTypes>
2664 : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>::type
2668 template<
typename _Ret,
typename _Fn,
typename... _ArgTypes>
2669 struct is_invocable_r
2670 : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, _Ret>::type
2674 template<
typename _Fn,
typename... _ArgTypes>
2675 struct is_nothrow_invocable
2676 : __and_<__is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>,
2677 __call_is_nothrow_<_Fn, _ArgTypes...>>::type
2680 template<
typename _Result,
typename _Ret,
typename =
void>
2681 struct __is_nt_invocable_impl :
false_type { };
2683 template<
typename _Result,
typename _Ret>
2684 struct __is_nt_invocable_impl<_Result, _Ret,
2685 __void_t<typename _Result::type>>
2686 : __or_<is_void<_Ret>,
2687 __and_<is_convertible<typename _Result::type, _Ret>,
2688 is_nothrow_constructible<_Ret, typename _Result::type>>>
2692 template<
typename _Ret,
typename _Fn,
typename... _ArgTypes>
2693 struct is_nothrow_invocable_r
2694 : __and_<__is_nt_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, _Ret>,
2695 __call_is_nothrow_<_Fn, _ArgTypes...>>::type
2699 template<
typename _Fn,
typename... _Args>
2700 inline constexpr
bool is_invocable_v = is_invocable<_Fn, _Args...>::value;
2703 template<
typename _Fn,
typename... _Args>
2704 inline constexpr
bool is_nothrow_invocable_v
2705 = is_nothrow_invocable<_Fn, _Args...>::value;
2708 template<
typename _Fn,
typename... _Args>
2709 inline constexpr
bool is_invocable_r_v
2710 = is_invocable_r<_Fn, _Args...>::value;
2713 template<
typename _Fn,
typename... _Args>
2714 inline constexpr
bool is_nothrow_invocable_r_v
2715 = is_nothrow_invocable_r<_Fn, _Args...>::value;
2718 #if __cplusplus >= 201703L
2719 # define __cpp_lib_type_trait_variable_templates 201510L
2720 template <
typename _Tp>
2721 inline constexpr
bool is_void_v = is_void<_Tp>::value;
2722 template <
typename _Tp>
2723 inline constexpr
bool is_null_pointer_v = is_null_pointer<_Tp>::value;
2724 template <
typename _Tp>
2725 inline constexpr
bool is_integral_v = is_integral<_Tp>::value;
2726 template <
typename _Tp>
2727 inline constexpr
bool is_floating_point_v = is_floating_point<_Tp>::value;
2728 template <
typename _Tp>
2729 inline constexpr
bool is_array_v = is_array<_Tp>::value;
2730 template <
typename _Tp>
2731 inline constexpr
bool is_pointer_v = is_pointer<_Tp>::value;
2732 template <
typename _Tp>
2733 inline constexpr
bool is_lvalue_reference_v =
2734 is_lvalue_reference<_Tp>::value;
2735 template <
typename _Tp>
2736 inline constexpr
bool is_rvalue_reference_v =
2737 is_rvalue_reference<_Tp>::value;
2738 template <
typename _Tp>
2739 inline constexpr
bool is_member_object_pointer_v =
2740 is_member_object_pointer<_Tp>::value;
2741 template <
typename _Tp>
2742 inline constexpr
bool is_member_function_pointer_v =
2743 is_member_function_pointer<_Tp>::value;
2744 template <
typename _Tp>
2745 inline constexpr
bool is_enum_v = is_enum<_Tp>::value;
2746 template <
typename _Tp>
2747 inline constexpr
bool is_union_v = is_union<_Tp>::value;
2748 template <
typename _Tp>
2749 inline constexpr
bool is_class_v = is_class<_Tp>::value;
2750 template <
typename _Tp>
2751 inline constexpr
bool is_function_v = is_function<_Tp>::value;
2752 template <
typename _Tp>
2753 inline constexpr
bool is_reference_v = is_reference<_Tp>::value;
2754 template <
typename _Tp>
2755 inline constexpr
bool is_arithmetic_v = is_arithmetic<_Tp>::value;
2756 template <
typename _Tp>
2757 inline constexpr
bool is_fundamental_v = is_fundamental<_Tp>::value;
2758 template <
typename _Tp>
2759 inline constexpr
bool is_object_v = is_object<_Tp>::value;
2760 template <
typename _Tp>
2761 inline constexpr
bool is_scalar_v = is_scalar<_Tp>::value;
2762 template <
typename _Tp>
2763 inline constexpr
bool is_compound_v = is_compound<_Tp>::value;
2764 template <
typename _Tp>
2765 inline constexpr
bool is_member_pointer_v = is_member_pointer<_Tp>::value;
2766 template <
typename _Tp>
2767 inline constexpr
bool is_const_v = is_const<_Tp>::value;
2768 template <
typename _Tp>
2769 inline constexpr
bool is_volatile_v = is_volatile<_Tp>::value;
2770 template <
typename _Tp>
2771 inline constexpr
bool is_trivial_v = is_trivial<_Tp>::value;
2772 template <
typename _Tp>
2773 inline constexpr
bool is_trivially_copyable_v =
2774 is_trivially_copyable<_Tp>::value;
2775 template <
typename _Tp>
2776 inline constexpr
bool is_standard_layout_v = is_standard_layout<_Tp>::value;
2777 template <
typename _Tp>
2778 inline constexpr
bool is_pod_v = is_pod<_Tp>::value;
2779 template <
typename _Tp>
2780 inline constexpr
bool is_literal_type_v = is_literal_type<_Tp>::value;
2781 template <
typename _Tp>
2782 inline constexpr
bool is_empty_v = is_empty<_Tp>::value;
2783 template <
typename _Tp>
2784 inline constexpr
bool is_polymorphic_v = is_polymorphic<_Tp>::value;
2785 template <
typename _Tp>
2786 inline constexpr
bool is_abstract_v = is_abstract<_Tp>::value;
2787 template <
typename _Tp>
2788 inline constexpr
bool is_final_v = is_final<_Tp>::value;
2789 template <
typename _Tp>
2790 inline constexpr
bool is_signed_v = is_signed<_Tp>::value;
2791 template <
typename _Tp>
2792 inline constexpr
bool is_unsigned_v = is_unsigned<_Tp>::value;
2793 template <
typename _Tp,
typename... _Args>
2794 inline constexpr
bool is_constructible_v =
2795 is_constructible<_Tp, _Args...>::value;
2796 template <
typename _Tp>
2797 inline constexpr
bool is_default_constructible_v =
2798 is_default_constructible<_Tp>::value;
2799 template <
typename _Tp>
2800 inline constexpr
bool is_copy_constructible_v =
2801 is_copy_constructible<_Tp>::value;
2802 template <
typename _Tp>
2803 inline constexpr
bool is_move_constructible_v =
2804 is_move_constructible<_Tp>::value;
2805 template <
typename _Tp,
typename _Up>
2806 inline constexpr
bool is_assignable_v = is_assignable<_Tp, _Up>::value;
2807 template <
typename _Tp>
2808 inline constexpr
bool is_copy_assignable_v = is_copy_assignable<_Tp>::value;
2809 template <
typename _Tp>
2810 inline constexpr
bool is_move_assignable_v = is_move_assignable<_Tp>::value;
2811 template <
typename _Tp>
2812 inline constexpr
bool is_destructible_v = is_destructible<_Tp>::value;
2813 template <
typename _Tp,
typename... _Args>
2814 inline constexpr
bool is_trivially_constructible_v =
2815 is_trivially_constructible<_Tp, _Args...>::value;
2816 template <
typename _Tp>
2817 inline constexpr
bool is_trivially_default_constructible_v =
2818 is_trivially_default_constructible<_Tp>::value;
2819 template <
typename _Tp>
2820 inline constexpr
bool is_trivially_copy_constructible_v =
2821 is_trivially_copy_constructible<_Tp>::value;
2822 template <
typename _Tp>
2823 inline constexpr
bool is_trivially_move_constructible_v =
2824 is_trivially_move_constructible<_Tp>::value;
2825 template <
typename _Tp,
typename _Up>
2826 inline constexpr
bool is_trivially_assignable_v =
2827 is_trivially_assignable<_Tp, _Up>::value;
2828 template <
typename _Tp>
2829 inline constexpr
bool is_trivially_copy_assignable_v =
2830 is_trivially_copy_assignable<_Tp>::value;
2831 template <
typename _Tp>
2832 inline constexpr
bool is_trivially_move_assignable_v =
2833 is_trivially_move_assignable<_Tp>::value;
2834 template <
typename _Tp>
2835 inline constexpr
bool is_trivially_destructible_v =
2836 is_trivially_destructible<_Tp>::value;
2837 template <
typename _Tp,
typename... _Args>
2838 inline constexpr
bool is_nothrow_constructible_v =
2839 is_nothrow_constructible<_Tp, _Args...>::value;
2840 template <
typename _Tp>
2841 inline constexpr
bool is_nothrow_default_constructible_v =
2842 is_nothrow_default_constructible<_Tp>::value;
2843 template <
typename _Tp>
2844 inline constexpr
bool is_nothrow_copy_constructible_v =
2845 is_nothrow_copy_constructible<_Tp>::value;
2846 template <
typename _Tp>
2847 inline constexpr
bool is_nothrow_move_constructible_v =
2848 is_nothrow_move_constructible<_Tp>::value;
2849 template <
typename _Tp,
typename _Up>
2850 inline constexpr
bool is_nothrow_assignable_v =
2851 is_nothrow_assignable<_Tp, _Up>::value;
2852 template <
typename _Tp>
2853 inline constexpr
bool is_nothrow_copy_assignable_v =
2854 is_nothrow_copy_assignable<_Tp>::value;
2855 template <
typename _Tp>
2856 inline constexpr
bool is_nothrow_move_assignable_v =
2857 is_nothrow_move_assignable<_Tp>::value;
2858 template <
typename _Tp>
2859 inline constexpr
bool is_nothrow_destructible_v =
2860 is_nothrow_destructible<_Tp>::value;
2861 template <
typename _Tp>
2862 inline constexpr
bool has_virtual_destructor_v =
2863 has_virtual_destructor<_Tp>::value;
2864 template <
typename _Tp>
2865 inline constexpr
size_t alignment_of_v = alignment_of<_Tp>::value;
2866 template <
typename _Tp>
2867 inline constexpr
size_t rank_v = rank<_Tp>::value;
2868 template <
typename _Tp,
unsigned _Idx = 0>
2869 inline constexpr
size_t extent_v = extent<_Tp, _Idx>::value;
2870 template <
typename _Tp,
typename _Up>
2871 inline constexpr
bool is_same_v = is_same<_Tp, _Up>::value;
2872 template <
typename _Base,
typename _Derived>
2873 inline constexpr
bool is_base_of_v = is_base_of<_Base, _Derived>::value;
2874 template <
typename _From,
typename _To>
2875 inline constexpr
bool is_convertible_v = is_convertible<_From, _To>::value;
2878 # define _GLIBCXX_HAVE_BUILTIN_HAS_UNIQ_OBJ_REP 1
2879 #elif defined(__is_identifier)
2881 # if ! __is_identifier(__has_unique_object_representations)
2882 # define _GLIBCXX_HAVE_BUILTIN_HAS_UNIQ_OBJ_REP 1
2886 #ifdef _GLIBCXX_HAVE_BUILTIN_HAS_UNIQ_OBJ_REP
2887 # define __cpp_lib_has_unique_object_representations 201606
2889 template<
typename _Tp>
2890 struct has_unique_object_representations
2891 : bool_constant<__has_unique_object_representations(
2892 remove_cv_t<remove_all_extents_t<_Tp>>
2896 template<
typename _Tp>
2897 inline constexpr
bool has_unique_object_representations_v
2898 = has_unique_object_representations<_Tp>::value;
2900 #undef _GLIBCXX_HAVE_BUILTIN_HAS_UNIQ_OBJ_REP
2903 # define _GLIBCXX_HAVE_BUILTIN_IS_AGGREGATE 1
2904 #elif defined(__is_identifier)
2906 # if ! __is_identifier(__is_aggregate)
2907 # define _GLIBCXX_HAVE_BUILTIN_IS_AGGREGATE 1
2911 #ifdef _GLIBCXX_HAVE_BUILTIN_IS_AGGREGATE
2912 #define __cpp_lib_is_aggregate 201703
2914 template<
typename _Tp>
2916 : bool_constant<__is_aggregate(remove_cv_t<_Tp>)> { };
2919 template<
typename _Tp>
2920 inline constexpr
bool is_aggregate_v = is_aggregate<_Tp>::value;
2922 #undef _GLIBCXX_HAVE_BUILTIN_IS_AGGREGATE
2926 #if __cplusplus > 201703L
2930 little = __ORDER_LITTLE_ENDIAN__,
2931 big = __ORDER_BIG_ENDIAN__,
2932 native = __BYTE_ORDER__
2936 _GLIBCXX_END_NAMESPACE_VERSION
2941 #endif // _GLIBCXX_TYPE_TRAITS
typename add_const< _Tp >::type add_const_t
Alias template for add_const.
_GLIBCXX17_INLINE constexpr bool is_swappable_with_v
is_swappable_with_v
void void_t
A metafunction that always yields void, used for detecting valid types.
is_trivially_copy_constructible
is_trivially_destructible
typename add_volatile< _Tp >::type add_volatile_t
Alias template for add_volatile.
typename common_type< _Tp...>::type common_type_t
Alias template for common_type.
typename remove_volatile< _Tp >::type remove_volatile_t
Alias template for remove_volatile.
is_nothrow_default_constructible
_GLIBCXX17_INLINE constexpr bool is_nothrow_swappable_with_v
is_nothrow_swappable_with_v
typename underlying_type< _Tp >::type underlying_type_t
Alias template for underlying_type.
is_nothrow_copy_assignable
Provide aligned storage for types.
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.
typename add_pointer< _Tp >::type add_pointer_t
Alias template for add_pointer.
is_nothrow_move_constructible
The underlying type of an enum.
Implementation of the detection idiom (negative case).
integral_constant< bool, false > false_type
The type used as a compile-time boolean with false value.
Metafunctions used for detecting swappable types: p0185r1.
is_null_pointer (LWG 2247).
typename remove_const< _Tp >::type remove_const_t
Alias template for remove_const.
is_trivially_default_constructible
is_nothrow_copy_constructible
typename make_unsigned< _Tp >::type make_unsigned_t
Alias template for make_unsigned.
typename remove_extent< _Tp >::type remove_extent_t
Alias template for remove_extent.
is_trivially_copy_assignable
Primary class template for reference_wrapper.
typename remove_reference< _Tp >::type remove_reference_t
Alias template for remove_reference.
is_trivially_move_constructible
typename add_lvalue_reference< _Tp >::type add_lvalue_reference_t
Alias template for add_lvalue_reference.
typename enable_if< _Cond, _Tp >::type enable_if_t
Alias template for enable_if.
integral_constant< bool, true > true_type
The type used as a compile-time boolean with true value.
typename decay< _Tp >::type decay_t
Alias template for decay.
typename remove_pointer< _Tp >::type remove_pointer_t
Alias template for remove_pointer.
is_nothrow_move_assignable
typename result_of< _Tp >::type result_of_t
Alias template for result_of.
typename add_rvalue_reference< _Tp >::type add_rvalue_reference_t
Alias template for add_rvalue_reference.
Define a member typedef type only if a boolean constant is true.
aligned_storage< _S_len, alignment_value >::type type
The storage.
is_nothrow_swappable_with
is_trivially_constructible
is_member_function_pointer
_GLIBCXX17_INLINE constexpr bool is_nothrow_swappable_v
is_nothrow_swappable_v
Define a member typedef type to one of two argument types.
is_trivially_move_assignable
__is_nullptr_t (extension).
typename add_cv< _Tp >::type add_cv_t
Alias template for add_cv.
typename remove_all_extents< _Tp >::type remove_all_extents_t
Alias template for remove_all_extents.
typename remove_cv< _Tp >::type remove_cv_t
Alias template for remove_cv.
typename aligned_storage< _Len, _Align >::type aligned_storage_t
Alias template for aligned_storage.
_GLIBCXX17_INLINE constexpr bool is_swappable_v
is_swappable_v