29 #ifndef _GLIBCXX_TYPE_TRAITS 30 #define _GLIBCXX_TYPE_TRAITS 1 32 #pragma GCC system_header 34 #if __cplusplus < 201103L 40 namespace std _GLIBCXX_VISIBILITY(default)
42 _GLIBCXX_BEGIN_NAMESPACE_VERSION
56 template<
typename _Tp, _Tp __v>
59 static constexpr _Tp value = __v;
60 typedef _Tp value_type;
62 constexpr
operator value_type()
const noexcept {
return value; }
63 #if __cplusplus > 201103L 65 #define __cpp_lib_integral_constant_callable 201304 67 constexpr value_type operator()()
const noexcept {
return value; }
71 template<
typename _Tp, _Tp __v>
83 #if __cplusplus > 201402L 84 # define __cpp_lib_bool_constant 201505 91 template<
bool,
typename,
typename>
102 template<
typename _B1>
107 template<
typename _B1,
typename _B2>
108 struct __or_<_B1, _B2>
109 :
public conditional<_B1::value, _B1, _B2>::type
112 template<
typename _B1,
typename _B2,
typename _B3,
typename... _Bn>
113 struct __or_<_B1, _B2, _B3, _Bn...>
114 :
public conditional<_B1::value, _B1, __or_<_B2, _B3, _Bn...>>::type
117 template<
typename...>
125 template<
typename _B1>
130 template<
typename _B1,
typename _B2>
131 struct __and_<_B1, _B2>
132 :
public conditional<_B1::value, _B2, _B1>::type
135 template<
typename _B1,
typename _B2,
typename _B3,
typename... _Bn>
136 struct __and_<_B1, _B2, _B3, _Bn...>
137 :
public conditional<_B1::value, __and_<_B2, _B3, _Bn...>, _B1>::type
140 template<
typename _Pp>
142 :
public __bool_constant<!bool(_Pp::value)>
145 #if __cplusplus >= 201703L 147 template<
typename... _Bn>
148 inline constexpr
bool __or_v = __or_<_Bn...>::value;
149 template<
typename... _Bn>
150 inline constexpr
bool __and_v = __and_<_Bn...>::value;
152 #define __cpp_lib_logical_traits 201510 154 template<
typename... _Bn>
159 template<
typename... _Bn>
164 template<
typename _Pp>
169 template<
typename... _Bn>
170 inline constexpr
bool conjunction_v = conjunction<_Bn...>::value;
172 template<
typename... _Bn>
173 inline constexpr
bool disjunction_v = disjunction<_Bn...>::value;
175 template<
typename _Pp>
176 inline constexpr
bool negation_v = negation<_Pp>::value;
185 template<
typename _Tp>
186 struct __success_type
187 {
typedef _Tp type; };
189 struct __failure_type
198 struct __is_void_helper
199 :
public false_type { };
202 struct __is_void_helper<void>
203 :
public true_type { };
206 template<
typename _Tp>
208 :
public __is_void_helper<typename remove_cv<_Tp>::type>
::type 212 struct __is_integral_helper
213 :
public false_type { };
216 struct __is_integral_helper<bool>
217 :
public true_type { };
220 struct __is_integral_helper<char>
221 :
public true_type { };
224 struct __is_integral_helper<signed char>
225 :
public true_type { };
228 struct __is_integral_helper<unsigned char>
229 :
public true_type { };
231 #ifdef _GLIBCXX_USE_WCHAR_T 233 struct __is_integral_helper<wchar_t>
234 :
public true_type { };
237 #ifdef _GLIBCXX_USE_CHAR8_T 239 struct __is_integral_helper<char8_t>
240 :
public true_type { };
244 struct __is_integral_helper<char16_t>
245 :
public true_type { };
248 struct __is_integral_helper<char32_t>
249 :
public true_type { };
252 struct __is_integral_helper<short>
253 :
public true_type { };
256 struct __is_integral_helper<unsigned short>
257 :
public true_type { };
260 struct __is_integral_helper<int>
261 :
public true_type { };
264 struct __is_integral_helper<unsigned int>
265 :
public true_type { };
268 struct __is_integral_helper<long>
269 :
public true_type { };
272 struct __is_integral_helper<unsigned long>
273 :
public true_type { };
276 struct __is_integral_helper<long long>
277 :
public true_type { };
280 struct __is_integral_helper<unsigned long long>
281 :
public true_type { };
285 #if defined(__GLIBCXX_TYPE_INT_N_0) 287 struct __is_integral_helper<__GLIBCXX_TYPE_INT_N_0>
288 :
public true_type { };
291 struct __is_integral_helper<unsigned __GLIBCXX_TYPE_INT_N_0>
292 :
public true_type { };
294 #if defined(__GLIBCXX_TYPE_INT_N_1) 296 struct __is_integral_helper<__GLIBCXX_TYPE_INT_N_1>
297 :
public true_type { };
300 struct __is_integral_helper<unsigned __GLIBCXX_TYPE_INT_N_1>
301 :
public true_type { };
303 #if defined(__GLIBCXX_TYPE_INT_N_2) 305 struct __is_integral_helper<__GLIBCXX_TYPE_INT_N_2>
306 :
public true_type { };
309 struct __is_integral_helper<unsigned __GLIBCXX_TYPE_INT_N_2>
310 :
public true_type { };
312 #if defined(__GLIBCXX_TYPE_INT_N_3) 314 struct __is_integral_helper<__GLIBCXX_TYPE_INT_N_3>
315 :
public true_type { };
318 struct __is_integral_helper<unsigned __GLIBCXX_TYPE_INT_N_3>
319 :
public true_type { };
323 template<
typename _Tp>
325 :
public __is_integral_helper<typename remove_cv<_Tp>::type>
::type 329 struct __is_floating_point_helper
330 :
public false_type { };
333 struct __is_floating_point_helper<float>
334 :
public true_type { };
337 struct __is_floating_point_helper<double>
338 :
public true_type { };
341 struct __is_floating_point_helper<long double>
342 :
public true_type { };
344 #if !defined(__STRICT_ANSI__) && defined(_GLIBCXX_USE_FLOAT128) && !defined(__CUDACC__) 346 struct __is_floating_point_helper<__float128>
347 :
public true_type { };
351 template<
typename _Tp>
353 :
public __is_floating_point_helper<typename remove_cv<_Tp>::type>::type
359 :
public false_type { };
361 template<
typename _Tp, std::
size_t _Size>
363 :
public true_type { };
365 template<
typename _Tp>
367 :
public true_type { };
370 struct __is_pointer_helper
371 :
public false_type { };
373 template<
typename _Tp>
374 struct __is_pointer_helper<_Tp*>
375 :
public true_type { };
378 template<
typename _Tp>
380 :
public __is_pointer_helper<typename remove_cv<_Tp>::type>::type
386 :
public false_type { };
388 template<
typename _Tp>
390 :
public true_type { };
395 :
public false_type { };
397 template<
typename _Tp>
399 :
public true_type { };
405 struct __is_member_object_pointer_helper
406 :
public false_type { };
408 template<
typename _Tp,
typename _Cp>
409 struct __is_member_object_pointer_helper<_Tp _Cp::*>
410 :
public __not_<is_function<_Tp>>
::type { };
413 template<
typename _Tp>
415 :
public __is_member_object_pointer_helper<
416 typename remove_cv<_Tp>::type>::type
420 struct __is_member_function_pointer_helper
421 :
public false_type { };
423 template<
typename _Tp,
typename _Cp>
424 struct __is_member_function_pointer_helper<_Tp _Cp::*>
428 template<
typename _Tp>
430 :
public __is_member_function_pointer_helper<
431 typename remove_cv<_Tp>::type>
::type 435 template<
typename _Tp>
441 template<
typename _Tp>
447 template<
typename _Tp>
455 :
public false_type { };
457 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
458 struct is_function<_Res(_ArgTypes...) _GLIBCXX_NOEXCEPT_QUAL>
459 :
public true_type { };
461 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
462 struct is_function<_Res(_ArgTypes...) & _GLIBCXX_NOEXCEPT_QUAL>
463 :
public true_type { };
465 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
466 struct is_function<_Res(_ArgTypes...) && _GLIBCXX_NOEXCEPT_QUAL>
467 :
public true_type { };
469 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
470 struct is_function<_Res(_ArgTypes......) _GLIBCXX_NOEXCEPT_QUAL>
471 :
public true_type { };
473 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
474 struct is_function<_Res(_ArgTypes......) & _GLIBCXX_NOEXCEPT_QUAL>
475 :
public true_type { };
477 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
478 struct is_function<_Res(_ArgTypes......) && _GLIBCXX_NOEXCEPT_QUAL>
479 :
public true_type { };
481 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
482 struct is_function<_Res(_ArgTypes...) const _GLIBCXX_NOEXCEPT_QUAL>
483 :
public true_type { };
485 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
486 struct is_function<_Res(_ArgTypes...) const & _GLIBCXX_NOEXCEPT_QUAL>
487 :
public true_type { };
489 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
490 struct is_function<_Res(_ArgTypes...) const && _GLIBCXX_NOEXCEPT_QUAL>
491 :
public true_type { };
493 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
494 struct is_function<_Res(_ArgTypes......) const _GLIBCXX_NOEXCEPT_QUAL>
495 :
public true_type { };
497 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
498 struct is_function<_Res(_ArgTypes......) const & _GLIBCXX_NOEXCEPT_QUAL>
499 :
public true_type { };
501 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
502 struct is_function<_Res(_ArgTypes......) const && _GLIBCXX_NOEXCEPT_QUAL>
503 :
public true_type { };
505 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
506 struct is_function<_Res(_ArgTypes...) volatile _GLIBCXX_NOEXCEPT_QUAL>
507 :
public true_type { };
509 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
510 struct is_function<_Res(_ArgTypes...) volatile & _GLIBCXX_NOEXCEPT_QUAL>
511 :
public true_type { };
513 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
514 struct is_function<_Res(_ArgTypes...) volatile && _GLIBCXX_NOEXCEPT_QUAL>
515 :
public true_type { };
517 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
518 struct is_function<_Res(_ArgTypes......) volatile _GLIBCXX_NOEXCEPT_QUAL>
519 :
public true_type { };
521 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
522 struct is_function<_Res(_ArgTypes......) volatile & _GLIBCXX_NOEXCEPT_QUAL>
523 :
public true_type { };
525 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
526 struct is_function<_Res(_ArgTypes......) volatile && _GLIBCXX_NOEXCEPT_QUAL>
527 :
public true_type { };
529 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
530 struct is_function<_Res(_ArgTypes...) const volatile _GLIBCXX_NOEXCEPT_QUAL>
531 :
public true_type { };
533 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
534 struct is_function<_Res(_ArgTypes...) const volatile & _GLIBCXX_NOEXCEPT_QUAL>
535 :
public true_type { };
537 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
538 struct is_function<_Res(_ArgTypes...) const volatile && _GLIBCXX_NOEXCEPT_QUAL>
539 :
public true_type { };
541 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
542 struct is_function<_Res(_ArgTypes......) const volatile _GLIBCXX_NOEXCEPT_QUAL>
543 :
public true_type { };
545 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
546 struct is_function<_Res(_ArgTypes......) const volatile & _GLIBCXX_NOEXCEPT_QUAL>
547 :
public true_type { };
549 template<
typename _Res,
typename... _ArgTypes _GLIBCXX_NOEXCEPT_PARM>
550 struct is_function<_Res(_ArgTypes......) const volatile && _GLIBCXX_NOEXCEPT_QUAL>
551 :
public true_type { };
553 #define __cpp_lib_is_null_pointer 201309 556 struct __is_null_pointer_helper
557 :
public false_type { };
560 struct __is_null_pointer_helper<std::nullptr_t>
561 :
public true_type { };
564 template<
typename _Tp>
566 :
public __is_null_pointer_helper<typename remove_cv<_Tp>::type>::type
570 template<
typename _Tp>
578 template<
typename _Tp>
580 :
public __or_<is_lvalue_reference<_Tp>,
581 is_rvalue_reference<_Tp>>::type
585 template<
typename _Tp>
587 :
public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type
591 template<
typename _Tp>
593 :
public __or_<is_arithmetic<_Tp>, is_void<_Tp>,
594 is_null_pointer<_Tp>>::type
598 template<
typename _Tp>
600 :
public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
608 template<
typename _Tp>
610 :
public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
611 is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type
615 template<
typename _Tp>
617 :
public __not_<is_fundamental<_Tp>>
::type { };
619 template<
typename _Tp>
620 struct __is_member_pointer_helper
621 :
public false_type { };
623 template<
typename _Tp,
typename _Cp>
624 struct __is_member_pointer_helper<_Tp _Cp::*>
625 :
public true_type { };
628 template<
typename _Tp>
630 :
public __is_member_pointer_helper<typename remove_cv<_Tp>::type>
::type 635 template<
typename _Tp>
636 struct __is_referenceable
637 :
public __or_<is_object<_Tp>, is_reference<_Tp>>
::type 640 template<
typename _Res,
typename... _Args _GLIBCXX_NOEXCEPT_PARM>
641 struct __is_referenceable<_Res(_Args...) _GLIBCXX_NOEXCEPT_QUAL>
645 template<
typename _Res,
typename... _Args _GLIBCXX_NOEXCEPT_PARM>
646 struct __is_referenceable<_Res(_Args......) _GLIBCXX_NOEXCEPT_QUAL>
655 :
public false_type { };
657 template<
typename _Tp>
659 :
public true_type { };
664 :
public false_type { };
666 template<
typename _Tp>
668 :
public true_type { };
671 template<
typename _Tp>
677 template<
typename _Tp>
678 struct is_trivially_copyable
683 template<
typename _Tp>
690 template<
typename _Tp>
696 template<
typename _Tp>
702 template<
typename _Tp>
708 template<
typename _Tp>
713 #if __cplusplus >= 201402L 714 #define __cpp_lib_is_final 201402L 716 template<
typename _Tp>
723 template<
typename _Tp>
728 template<
typename _Tp,
730 struct __is_signed_helper
731 :
public false_type { };
733 template<
typename _Tp>
734 struct __is_signed_helper<_Tp, true>
739 template<typename _Tp>
741 : public __is_signed_helper<_Tp>::type
745 template<typename _Tp>
747 : public __and_<is_arithmetic<_Tp>, __not_<is_signed<_Tp>>>
758 template<typename _Tp, typename _Up = _Tp&&>
762 template<typename _Tp>
766 template<typename _Tp>
767 auto declval() noexcept -> decltype(__declval<_Tp>(0));
769 template<typename, unsigned = 0>
775 template<typename _Tp>
776 struct __is_array_known_bounds
780 template<
typename _Tp>
781 struct __is_array_unknown_bounds
782 :
public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
790 struct __do_is_destructible_impl
792 template<
typename _Tp,
typename = decltype(declval<_Tp&>().~_Tp())>
793 static true_type __test(
int);
796 static false_type __test(...);
799 template<
typename _Tp>
800 struct __is_destructible_impl
801 :
public __do_is_destructible_impl
803 typedef decltype(__test<_Tp>(0)) type;
806 template<
typename _Tp,
807 bool = __or_<is_void<_Tp>,
808 __is_array_unknown_bounds<_Tp>,
811 struct __is_destructible_safe;
813 template<
typename _Tp>
814 struct __is_destructible_safe<_Tp, false, false>
815 :
public __is_destructible_impl<typename
816 remove_all_extents<_Tp>::type>::type
819 template<
typename _Tp>
820 struct __is_destructible_safe<_Tp, true, false>
821 :
public false_type { };
823 template<
typename _Tp>
824 struct __is_destructible_safe<_Tp, false, true>
825 :
public true_type { };
828 template<
typename _Tp>
830 :
public __is_destructible_safe<_Tp>::type
837 struct __do_is_nt_destructible_impl
839 template<
typename _Tp>
844 static false_type __test(...);
847 template<
typename _Tp>
848 struct __is_nt_destructible_impl
849 :
public __do_is_nt_destructible_impl
851 typedef decltype(__test<_Tp>(0)) type;
854 template<
typename _Tp,
855 bool = __or_<is_void<_Tp>,
856 __is_array_unknown_bounds<_Tp>,
859 struct __is_nt_destructible_safe;
861 template<
typename _Tp>
862 struct __is_nt_destructible_safe<_Tp, false, false>
863 :
public __is_nt_destructible_impl<typename
864 remove_all_extents<_Tp>::type>::type
867 template<
typename _Tp>
868 struct __is_nt_destructible_safe<_Tp, true, false>
869 :
public false_type { };
871 template<
typename _Tp>
872 struct __is_nt_destructible_safe<_Tp, false, true>
873 :
public true_type { };
876 template<
typename _Tp>
878 :
public __is_nt_destructible_safe<_Tp>::type
881 struct __do_is_default_constructible_impl
883 template<
typename _Tp,
typename = decltype(_Tp())>
884 static true_type __test(
int);
887 static false_type __test(...);
890 template<
typename _Tp>
891 struct __is_default_constructible_impl
892 :
public __do_is_default_constructible_impl
894 typedef decltype(__test<_Tp>(0)) type;
897 template<
typename _Tp>
898 struct __is_default_constructible_atom
899 :
public __and_<__not_<is_void<_Tp>>,
900 __is_default_constructible_impl<_Tp>>
903 template<typename _Tp, bool = is_array<_Tp>::value>
904 struct __is_default_constructible_safe;
911 template<
typename _Tp>
912 struct __is_default_constructible_safe<_Tp, true>
913 :
public __and_<__is_array_known_bounds<_Tp>,
914 __is_default_constructible_atom<typename
915 remove_all_extents<_Tp>::type>>
918 template<
typename _Tp>
919 struct __is_default_constructible_safe<_Tp, false>
920 :
public __is_default_constructible_atom<_Tp>::type
924 template<
typename _Tp>
926 :
public __is_default_constructible_safe<_Tp>::type
930 template<
typename _Tp,
typename... _Args>
932 :
public __bool_constant<__is_constructible(_Tp, _Args...)>
935 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
936 struct __is_copy_constructible_impl;
938 template<
typename _Tp>
939 struct __is_copy_constructible_impl<_Tp, false>
940 :
public false_type { };
942 template<
typename _Tp>
943 struct __is_copy_constructible_impl<_Tp, true>
948 template<
typename _Tp>
950 :
public __is_copy_constructible_impl<_Tp>
953 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
954 struct __is_move_constructible_impl;
956 template<
typename _Tp>
957 struct __is_move_constructible_impl<_Tp, false>
958 :
public false_type { };
960 template<
typename _Tp>
961 struct __is_move_constructible_impl<_Tp, true>
966 template<
typename _Tp>
968 :
public __is_move_constructible_impl<_Tp>
971 template<
typename _Tp>
972 struct __is_nt_default_constructible_atom
976 template<typename _Tp, bool = is_array<_Tp>::value>
977 struct __is_nt_default_constructible_impl;
979 template<
typename _Tp>
980 struct __is_nt_default_constructible_impl<_Tp, true>
981 :
public __and_<__is_array_known_bounds<_Tp>,
982 __is_nt_default_constructible_atom<typename
983 remove_all_extents<_Tp>::type>>
986 template<
typename _Tp>
987 struct __is_nt_default_constructible_impl<_Tp, false>
988 :
public __is_nt_default_constructible_atom<_Tp>
992 template<
typename _Tp>
994 :
public __and_<is_default_constructible<_Tp>,
995 __is_nt_default_constructible_impl<_Tp>>
998 template<
typename _Tp,
typename... _Args>
999 struct __is_nt_constructible_impl
1003 template<
typename _Tp,
typename _Arg>
1004 struct __is_nt_constructible_impl<_Tp, _Arg>
1006 noexcept(static_cast<_Tp>(declval<_Arg>()))>
1009 template<
typename _Tp>
1010 struct __is_nt_constructible_impl<_Tp>
1015 template<
typename _Tp,
typename... _Args>
1017 :
public __and_<is_constructible<_Tp, _Args...>,
1018 __is_nt_constructible_impl<_Tp, _Args...>>
1021 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1022 struct __is_nothrow_copy_constructible_impl;
1024 template<
typename _Tp>
1025 struct __is_nothrow_copy_constructible_impl<_Tp, false>
1026 :
public false_type { };
1028 template<
typename _Tp>
1029 struct __is_nothrow_copy_constructible_impl<_Tp, true>
1034 template<
typename _Tp>
1036 :
public __is_nothrow_copy_constructible_impl<_Tp>
1039 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1040 struct __is_nothrow_move_constructible_impl;
1042 template<
typename _Tp>
1043 struct __is_nothrow_move_constructible_impl<_Tp, false>
1044 :
public false_type { };
1046 template<
typename _Tp>
1047 struct __is_nothrow_move_constructible_impl<_Tp, true>
1052 template<
typename _Tp>
1054 :
public __is_nothrow_move_constructible_impl<_Tp>
1058 template<
typename _Tp,
typename _Up>
1060 :
public __bool_constant<__is_assignable(_Tp, _Up)>
1063 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1064 struct __is_copy_assignable_impl;
1066 template<
typename _Tp>
1067 struct __is_copy_assignable_impl<_Tp, false>
1068 :
public false_type { };
1070 template<
typename _Tp>
1071 struct __is_copy_assignable_impl<_Tp, true>
1076 template<
typename _Tp>
1078 :
public __is_copy_assignable_impl<_Tp>
1081 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1082 struct __is_move_assignable_impl;
1084 template<
typename _Tp>
1085 struct __is_move_assignable_impl<_Tp, false>
1086 :
public false_type { };
1088 template<
typename _Tp>
1089 struct __is_move_assignable_impl<_Tp, true>
1094 template<
typename _Tp>
1096 :
public __is_move_assignable_impl<_Tp>
1099 template<
typename _Tp,
typename _Up>
1100 struct __is_nt_assignable_impl
1105 template<
typename _Tp,
typename _Up>
1107 :
public __and_<is_assignable<_Tp, _Up>,
1108 __is_nt_assignable_impl<_Tp, _Up>>
1111 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1112 struct __is_nt_copy_assignable_impl;
1114 template<
typename _Tp>
1115 struct __is_nt_copy_assignable_impl<_Tp, false>
1116 :
public false_type { };
1118 template<
typename _Tp>
1119 struct __is_nt_copy_assignable_impl<_Tp, true>
1124 template<
typename _Tp>
1126 :
public __is_nt_copy_assignable_impl<_Tp>
1129 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1130 struct __is_nt_move_assignable_impl;
1132 template<
typename _Tp>
1133 struct __is_nt_move_assignable_impl<_Tp, false>
1134 :
public false_type { };
1136 template<
typename _Tp>
1137 struct __is_nt_move_assignable_impl<_Tp, true>
1142 template<
typename _Tp>
1144 :
public __is_nt_move_assignable_impl<_Tp>
1148 template<
typename _Tp,
typename... _Args>
1150 :
public __bool_constant<__is_trivially_constructible(_Tp, _Args...)>
1154 template<
typename _Tp>
1159 struct __do_is_implicitly_default_constructible_impl
1161 template <
typename _Tp>
1162 static void __helper(
const _Tp&);
1164 template <
typename _Tp>
1165 static true_type __test(
const _Tp&,
1166 decltype(__helper<const _Tp&>({}))* = 0);
1168 static false_type __test(...);
1171 template<
typename _Tp>
1172 struct __is_implicitly_default_constructible_impl
1173 :
public __do_is_implicitly_default_constructible_impl
1175 typedef decltype(__test(declval<_Tp>())) type;
1178 template<
typename _Tp>
1179 struct __is_implicitly_default_constructible_safe
1180 :
public __is_implicitly_default_constructible_impl<_Tp>::type
1183 template <
typename _Tp>
1184 struct __is_implicitly_default_constructible
1185 :
public __and_<is_default_constructible<_Tp>,
1186 __is_implicitly_default_constructible_safe<_Tp>>
1191 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1194 template<
typename _Tp>
1196 :
public false_type { };
1198 template<
typename _Tp>
1200 :
public __and_<is_copy_constructible<_Tp>,
1201 integral_constant<bool,
1202 __is_trivially_constructible(_Tp, const _Tp&)>>
1205 template<
typename _Tp>
1206 struct is_trivially_copy_constructible
1212 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1215 template<
typename _Tp>
1217 :
public false_type { };
1219 template<
typename _Tp>
1221 :
public __and_<is_move_constructible<_Tp>,
1222 integral_constant<bool,
1223 __is_trivially_constructible(_Tp, _Tp&&)>>
1226 template<
typename _Tp>
1227 struct is_trivially_move_constructible
1232 template<
typename _Tp,
typename _Up>
1234 :
public __bool_constant<__is_trivially_assignable(_Tp, _Up)>
1239 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1242 template<
typename _Tp>
1244 :
public false_type { };
1246 template<
typename _Tp>
1248 :
public __bool_constant<__is_trivially_assignable(_Tp&, const _Tp&)>
1251 template<
typename _Tp>
1252 struct is_trivially_copy_assignable
1258 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1261 template<
typename _Tp>
1263 :
public false_type { };
1265 template<
typename _Tp>
1267 :
public __bool_constant<__is_trivially_assignable(_Tp&, _Tp&&)>
1270 template<
typename _Tp>
1271 struct is_trivially_move_assignable
1276 template<
typename _Tp>
1278 :
public __and_<is_destructible<_Tp>,
1279 __bool_constant<__has_trivial_destructor(_Tp)>>
1284 template<
typename _Tp>
1293 template<
typename _Tp>
1302 template<
typename _Tp, std::
size_t _Size>
1303 struct rank<_Tp[_Size]>
1306 template<
typename _Tp>
1311 template<
typename,
unsigned _U
int>
1315 template<
typename _Tp,
unsigned _U
int, std::
size_t _Size>
1316 struct extent<_Tp[_Size], _Uint>
1318 _Uint == 0 ? _Size : extent<_Tp,
1322 template<
typename _Tp,
unsigned _U
int>
1323 struct extent<_Tp[], _Uint>
1325 _Uint == 0 ? 0 : extent<_Tp,
1333 template<
typename,
typename>
1335 :
public false_type { };
1337 template<
typename _Tp>
1339 :
public true_type { };
1342 template<
typename _Base,
typename _Derived>
1347 template<
typename _From,
typename _To,
1350 struct __is_convertible_helper
1355 template<
typename _From,
typename _To>
1356 class __is_convertible_helper<_From, _To, false>
1358 template<
typename _To1>
1359 static void __test_aux(_To1) noexcept;
1361 template<
typename _From1,
typename _To1,
1362 typename = decltype(__test_aux<_To1>(std::declval<_From1>()))>
1366 template<
typename,
typename>
1371 typedef decltype(__test<_From, _To>(0))
type;
1376 template<
typename _From,
typename _To>
1378 :
public __is_convertible_helper<_From, _To>::type
1381 #if __cplusplus > 201703L 1382 template<
typename _From,
typename _To,
1383 bool = __or_<is_void<_From>, is_function<_To>,
1385 struct __is_nt_convertible_helper
1389 template<
typename _From,
typename _To>
1390 class __is_nt_convertible_helper<_From, _To, false>
1392 template<
typename _To1>
1393 static void __test_aux(_To1) noexcept;
1395 template<
typename _From1,
typename _To1>
1396 static bool_constant<noexcept(__test_aux<_To1>(std::declval<_From1>()))>
1399 template<
typename,
typename>
1404 using type = decltype(__test<_From, _To>(0));
1408 template<
typename _From,
typename _To>
1409 struct is_nothrow_convertible
1410 :
public __is_nt_convertible_helper<_From, _To>::type
1414 template<
typename _From,
typename _To>
1415 inline constexpr
bool is_nothrow_convertible_v
1416 = is_nothrow_convertible<_From, _To>::value;
1422 template<
typename _Tp>
1424 {
typedef _Tp type; };
1426 template<
typename _Tp>
1428 {
typedef _Tp type; };
1431 template<
typename _Tp>
1433 {
typedef _Tp type; };
1435 template<
typename _Tp>
1437 {
typedef _Tp type; };
1440 template<
typename _Tp>
1448 template<
typename _Tp>
1450 {
typedef _Tp
const type; };
1453 template<
typename _Tp>
1455 {
typedef _Tp
volatile type; };
1458 template<
typename _Tp>
1465 #if __cplusplus > 201103L 1467 #define __cpp_lib_transformation_trait_aliases 201304 1470 template<
typename _Tp>
1474 template<
typename _Tp>
1478 template<
typename _Tp>
1482 template<
typename _Tp>
1486 template<
typename _Tp>
1490 template<
typename _Tp>
1497 template<
typename _Tp>
1499 {
typedef _Tp type; };
1501 template<
typename _Tp>
1503 {
typedef _Tp type; };
1505 template<
typename _Tp>
1507 {
typedef _Tp type; };
1509 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1510 struct __add_lvalue_reference_helper
1511 {
typedef _Tp type; };
1513 template<
typename _Tp>
1514 struct __add_lvalue_reference_helper<_Tp, true>
1515 {
typedef _Tp& type; };
1518 template<
typename _Tp>
1520 :
public __add_lvalue_reference_helper<_Tp>
1523 template<typename _Tp, bool = __is_referenceable<_Tp>::value>
1524 struct __add_rvalue_reference_helper
1525 {
typedef _Tp type; };
1527 template<
typename _Tp>
1528 struct __add_rvalue_reference_helper<_Tp, true>
1529 {
typedef _Tp&& type; };
1532 template<
typename _Tp>
1534 :
public __add_rvalue_reference_helper<_Tp>
1537 #if __cplusplus > 201103L 1539 template<
typename _Tp>
1543 template<
typename _Tp>
1547 template<
typename _Tp>
1554 template<
typename _Unqualified,
bool _IsConst,
bool _IsVol>
1555 struct __cv_selector;
1557 template<
typename _Unqualified>
1558 struct __cv_selector<_Unqualified, false, false>
1559 {
typedef _Unqualified __type; };
1561 template<
typename _Unqualified>
1562 struct __cv_selector<_Unqualified, false, true>
1563 {
typedef volatile _Unqualified __type; };
1565 template<
typename _Unqualified>
1566 struct __cv_selector<_Unqualified, true, false>
1567 {
typedef const _Unqualified __type; };
1569 template<
typename _Unqualified>
1570 struct __cv_selector<_Unqualified, true, true>
1571 {
typedef const volatile _Unqualified __type; };
1573 template<
typename _Qualified,
typename _Unqualified,
1576 class __match_cv_qualifiers
1578 typedef __cv_selector<_Unqualified, _IsConst, _IsVol> __match;
1581 typedef typename __match::__type __type;
1585 template<
typename _Tp>
1586 struct __make_unsigned
1587 {
typedef _Tp __type; };
1590 struct __make_unsigned<char>
1591 {
typedef unsigned char __type; };
1594 struct __make_unsigned<signed char>
1595 {
typedef unsigned char __type; };
1598 struct __make_unsigned<short>
1599 {
typedef unsigned short __type; };
1602 struct __make_unsigned<int>
1603 {
typedef unsigned int __type; };
1606 struct __make_unsigned<long>
1607 {
typedef unsigned long __type; };
1610 struct __make_unsigned<long long>
1611 {
typedef unsigned long long __type; };
1613 #if defined(__GLIBCXX_TYPE_INT_N_0) 1615 struct __make_unsigned<__GLIBCXX_TYPE_INT_N_0>
1616 {
typedef unsigned __GLIBCXX_TYPE_INT_N_0 __type; };
1618 #if defined(__GLIBCXX_TYPE_INT_N_1) 1620 struct __make_unsigned<__GLIBCXX_TYPE_INT_N_1>
1621 {
typedef unsigned __GLIBCXX_TYPE_INT_N_1 __type; };
1623 #if defined(__GLIBCXX_TYPE_INT_N_2) 1625 struct __make_unsigned<__GLIBCXX_TYPE_INT_N_2>
1626 {
typedef unsigned __GLIBCXX_TYPE_INT_N_2 __type; };
1628 #if defined(__GLIBCXX_TYPE_INT_N_3) 1630 struct __make_unsigned<__GLIBCXX_TYPE_INT_N_3>
1631 {
typedef unsigned __GLIBCXX_TYPE_INT_N_3 __type; };
1635 template<
typename _Tp,
1638 class __make_unsigned_selector;
1640 template<
typename _Tp>
1641 class __make_unsigned_selector<_Tp, true, false>
1643 using __unsigned_type
1644 =
typename __make_unsigned<typename remove_cv<_Tp>::type>::__type;
1648 =
typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type;
1651 class __make_unsigned_selector_base
1654 template<
typename...>
struct _List { };
1656 template<
typename _Tp,
typename... _Up>
1657 struct _List<_Tp, _Up...> : _List<_Up...>
1658 {
static constexpr
size_t __size =
sizeof(_Tp); };
1660 template<
size_t _Sz,
typename _Tp,
bool = (_Sz <= _Tp::__size)>
1663 template<
size_t _Sz,
typename _U
int,
typename... _UInts>
1664 struct __select<_Sz, _List<_Uint, _UInts...>,
true>
1665 {
using __type = _Uint; };
1667 template<
size_t _Sz,
typename _Uint,
typename... _UInts>
1668 struct __select<_Sz, _List<_Uint, _UInts...>, false>
1669 : __select<_Sz, _List<_UInts...>>
1674 template<
typename _Tp>
1675 class __make_unsigned_selector<_Tp, false, true>
1676 : __make_unsigned_selector_base
1679 using _UInts = _List<
unsigned char,
unsigned short,
unsigned int,
1680 unsigned long,
unsigned long long>;
1682 using __unsigned_type =
typename __select<sizeof(_Tp), _UInts>::__type;
1686 =
typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type;
1693 #if defined(_GLIBCXX_USE_WCHAR_T) 1695 struct __make_unsigned<wchar_t>
1698 =
typename __make_unsigned_selector<wchar_t, false, true>::__type;
1702 #ifdef _GLIBCXX_USE_CHAR8_T 1704 struct __make_unsigned<char8_t>
1707 =
typename __make_unsigned_selector<char8_t, false, true>::__type;
1712 struct __make_unsigned<char16_t>
1715 =
typename __make_unsigned_selector<char16_t, false, true>::__type;
1719 struct __make_unsigned<char32_t>
1722 =
typename __make_unsigned_selector<char32_t, false, true>::__type;
1729 template<
typename _Tp>
1731 {
typedef typename __make_unsigned_selector<_Tp>::__type type; };
1739 template<
typename _Tp>
1740 struct __make_signed
1741 {
typedef _Tp __type; };
1744 struct __make_signed<char>
1745 {
typedef signed char __type; };
1748 struct __make_signed<unsigned char>
1749 {
typedef signed char __type; };
1752 struct __make_signed<unsigned short>
1753 {
typedef signed short __type; };
1756 struct __make_signed<unsigned int>
1757 {
typedef signed int __type; };
1760 struct __make_signed<unsigned long>
1761 {
typedef signed long __type; };
1764 struct __make_signed<unsigned long long>
1765 {
typedef signed long long __type; };
1767 #if defined(__GLIBCXX_TYPE_INT_N_0) 1769 struct __make_signed<unsigned __GLIBCXX_TYPE_INT_N_0>
1770 {
typedef __GLIBCXX_TYPE_INT_N_0 __type; };
1772 #if defined(__GLIBCXX_TYPE_INT_N_1) 1774 struct __make_signed<unsigned __GLIBCXX_TYPE_INT_N_1>
1775 {
typedef __GLIBCXX_TYPE_INT_N_1 __type; };
1777 #if defined(__GLIBCXX_TYPE_INT_N_2) 1779 struct __make_signed<unsigned __GLIBCXX_TYPE_INT_N_2>
1780 {
typedef __GLIBCXX_TYPE_INT_N_2 __type; };
1782 #if defined(__GLIBCXX_TYPE_INT_N_3) 1784 struct __make_signed<unsigned __GLIBCXX_TYPE_INT_N_3>
1785 {
typedef __GLIBCXX_TYPE_INT_N_3 __type; };
1789 template<
typename _Tp,
1792 class __make_signed_selector;
1794 template<
typename _Tp>
1795 class __make_signed_selector<_Tp, true, false>
1798 =
typename __make_signed<typename remove_cv<_Tp>::type>::__type;
1802 =
typename __match_cv_qualifiers<_Tp, __signed_type>::__type;
1806 template<
typename _Tp>
1807 class __make_signed_selector<_Tp, false, true>
1809 typedef typename __make_unsigned_selector<_Tp>::__type __unsigned_type;
1812 typedef typename __make_signed_selector<__unsigned_type>::__type __type;
1819 #if defined(_GLIBCXX_USE_WCHAR_T) 1821 struct __make_signed<wchar_t>
1824 =
typename __make_signed_selector<wchar_t, false, true>::__type;
1828 #if defined(_GLIBCXX_USE_CHAR8_T) 1830 struct __make_signed<char8_t>
1833 =
typename __make_signed_selector<char8_t, false, true>::__type;
1838 struct __make_signed<char16_t>
1841 =
typename __make_signed_selector<char16_t, false, true>::__type;
1845 struct __make_signed<char32_t>
1848 =
typename __make_signed_selector<char32_t, false, true>::__type;
1855 template<
typename _Tp>
1857 {
typedef typename __make_signed_selector<_Tp>::__type type; };
1863 #if __cplusplus > 201103L 1865 template<
typename _Tp>
1869 template<
typename _Tp>
1876 template<
typename _Tp>
1878 {
typedef _Tp type; };
1880 template<
typename _Tp, std::
size_t _Size>
1882 {
typedef _Tp type; };
1884 template<
typename _Tp>
1886 {
typedef _Tp type; };
1889 template<
typename _Tp>
1891 {
typedef _Tp type; };
1893 template<
typename _Tp, std::
size_t _Size>
1895 {
typedef typename remove_all_extents<_Tp>::type type; };
1897 template<
typename _Tp>
1899 {
typedef typename remove_all_extents<_Tp>::type type; };
1901 #if __cplusplus > 201103L 1903 template<
typename _Tp>
1907 template<
typename _Tp>
1913 template<
typename _Tp,
typename>
1914 struct __remove_pointer_helper
1915 {
typedef _Tp type; };
1917 template<
typename _Tp,
typename _Up>
1918 struct __remove_pointer_helper<_Tp, _Up*>
1919 {
typedef _Up type; };
1922 template<
typename _Tp>
1924 :
public __remove_pointer_helper<_Tp, typename remove_cv<_Tp>::type>
1928 template<
typename _Tp,
bool = __or_<__is_referenceable<_Tp>,
1929 is_
void<_Tp>>::value>
1931 {
typedef _Tp type; };
1933 template<
typename _Tp>
1935 {
typedef typename remove_reference<_Tp>::type* type; };
1937 template<
typename _Tp>
1942 #if __cplusplus > 201103L 1944 template<
typename _Tp>
1948 template<
typename _Tp>
1952 template<std::
size_t _Len>
1953 struct __aligned_storage_msa
1957 unsigned char __data[_Len];
1958 struct __attribute__((__aligned__)) { } __align;
1972 template<std::size_t _Len, std::size_t _Align =
1973 __alignof__(
typename __aligned_storage_msa<_Len>::__type)>
1978 unsigned char __data[_Len];
1979 struct __attribute__((__aligned__((_Align)))) { } __align;
1983 template <
typename... _Types>
1984 struct __strictest_alignment
1986 static const size_t _S_alignment = 0;
1987 static const size_t _S_size = 0;
1990 template <
typename _Tp,
typename... _Types>
1991 struct __strictest_alignment<_Tp, _Types...>
1993 static const size_t _S_alignment =
1994 alignof(_Tp) > __strictest_alignment<_Types...>::_S_alignment
1995 ?
alignof(_Tp) : __strictest_alignment<_Types...>::_S_alignment;
1996 static const size_t _S_size =
1997 sizeof(_Tp) > __strictest_alignment<_Types...>::_S_size
1998 ?
sizeof(_Tp) : __strictest_alignment<_Types...>::_S_size;
2011 template <
size_t _Len,
typename... _Types>
2015 static_assert(
sizeof...(_Types) != 0,
"At least one type is required");
2017 using __strictest = __strictest_alignment<_Types...>;
2018 static const size_t _S_len = _Len > __strictest::_S_size
2019 ? _Len : __strictest::_S_size;
2022 static const size_t alignment_value = __strictest::_S_alignment;
2027 template <
size_t _Len,
typename... _Types>
2028 const size_t aligned_union<_Len, _Types...>::alignment_value;
2032 template<
typename _Up,
2035 struct __decay_selector;
2038 template<
typename _Up>
2039 struct __decay_selector<_Up, false, false>
2040 {
typedef typename remove_cv<_Up>::type __type; };
2042 template<
typename _Up>
2043 struct __decay_selector<_Up, true, false>
2044 {
typedef typename remove_extent<_Up>::type* __type; };
2046 template<
typename _Up>
2047 struct __decay_selector<_Up, false, true>
2048 {
typedef typename add_pointer<_Up>::type __type; };
2051 template<
typename _Tp>
2054 typedef typename remove_reference<_Tp>::type __remove_type;
2057 typedef typename __decay_selector<__remove_type>::__type type;
2060 template<
typename _Tp>
2064 template<
typename _Tp>
2065 struct __strip_reference_wrapper
2070 template<
typename _Tp>
2073 typedef _Tp& __type;
2076 template<
typename _Tp>
2077 struct __decay_and_strip
2079 typedef typename __strip_reference_wrapper<
2080 typename decay<_Tp>::type>::__type __type;
2086 template<
bool,
typename _Tp =
void>
2091 template<
typename _Tp>
2093 {
typedef _Tp type; };
2095 template<
typename... _Cond>
2096 using _Require =
typename enable_if<__and_<_Cond...>::value>::type;
2100 template<
bool _Cond,
typename _Iftrue,
typename _Iffalse>
2102 {
typedef _Iftrue type; };
2105 template<
typename _Iftrue,
typename _Iffalse>
2107 {
typedef _Iffalse type; };
2110 template<
typename... _Tp>
2115 struct __do_common_type_impl
2117 template<
typename _Tp,
typename _Up>
2118 static __success_type<
typename decay<decltype
2119 (
true ? std::declval<_Tp>()
2120 : std::declval<_Up>())>::type> _S_test(
int);
2122 template<
typename,
typename>
2123 static __failure_type _S_test(...);
2126 template<
typename _Tp,
typename _Up>
2127 struct __common_type_impl
2128 :
private __do_common_type_impl
2130 typedef decltype(_S_test<_Tp, _Up>(0)) type;
2133 struct __do_member_type_wrapper
2135 template<
typename _Tp>
2136 static __success_type<typename _Tp::type> _S_test(
int);
2139 static __failure_type _S_test(...);
2142 template<
typename _Tp>
2143 struct __member_type_wrapper
2144 :
private __do_member_type_wrapper
2146 typedef decltype(_S_test<_Tp>(0)) type;
2149 template<typename _CTp, typename... _Args>
2150 struct __expanded_common_type_wrapper
2152 typedef common_type<
typename _CTp::type, _Args...> type;
2155 template<
typename... _Args>
2156 struct __expanded_common_type_wrapper<__failure_type, _Args...>
2157 {
typedef __failure_type type; };
2163 template<
typename _Tp>
2168 template<
typename _Tp,
typename _Up>
2170 :
public __common_type_impl<_Tp, _Up>::type
2173 template<
typename _Tp,
typename _Up,
typename... _Vp>
2175 :
public __expanded_common_type_wrapper<typename __member_type_wrapper<
2176 common_type<_Tp, _Up>>::type, _Vp...>::type
2179 template<typename _Tp, bool = is_enum<_Tp>::value>
2180 struct __underlying_type_impl
2182 using type = __underlying_type(_Tp);
2185 template<
typename _Tp>
2186 struct __underlying_type_impl<_Tp, false>
2190 template<
typename _Tp>
2192 :
public __underlying_type_impl<_Tp>
2195 template<
typename _Tp>
2196 struct __declval_protector
2198 static const bool __stop =
false;
2201 template<
typename _Tp>
2202 auto declval() noexcept -> decltype(__declval<_Tp>(0))
2204 static_assert(__declval_protector<_Tp>::__stop,
2205 "declval() must not be used!");
2206 return __declval<_Tp>(0);
2210 template<
typename _Tp>
2211 using __remove_cvref_t
2215 template<
typename _Signature>
2220 #define __cpp_lib_result_of_sfinae 201210 2222 struct __invoke_memfun_ref { };
2223 struct __invoke_memfun_deref { };
2224 struct __invoke_memobj_ref { };
2225 struct __invoke_memobj_deref { };
2226 struct __invoke_other { };
2229 template<
typename _Tp,
typename _Tag>
2230 struct __result_of_success : __success_type<_Tp>
2231 {
using __invoke_type = _Tag; };
2234 struct __result_of_memfun_ref_impl
2236 template<
typename _Fp,
typename _Tp1,
typename... _Args>
2237 static __result_of_success<decltype(
2238 (std::declval<_Tp1>().*std::declval<_Fp>())(std::declval<_Args>()...)
2239 ), __invoke_memfun_ref> _S_test(
int);
2241 template<
typename...>
2242 static __failure_type _S_test(...);
2245 template<
typename _MemPtr,
typename _Arg,
typename... _Args>
2246 struct __result_of_memfun_ref
2247 :
private __result_of_memfun_ref_impl
2249 typedef decltype(_S_test<_MemPtr, _Arg, _Args...>(0)) type;
2253 struct __result_of_memfun_deref_impl
2255 template<
typename _Fp,
typename _Tp1,
typename... _Args>
2256 static __result_of_success<decltype(
2257 ((*std::declval<_Tp1>()).*std::declval<_Fp>())(std::declval<_Args>()...)
2258 ), __invoke_memfun_deref> _S_test(
int);
2260 template<
typename...>
2261 static __failure_type _S_test(...);
2264 template<
typename _MemPtr,
typename _Arg,
typename... _Args>
2265 struct __result_of_memfun_deref
2266 :
private __result_of_memfun_deref_impl
2268 typedef decltype(_S_test<_MemPtr, _Arg, _Args...>(0)) type;
2272 struct __result_of_memobj_ref_impl
2274 template<
typename _Fp,
typename _Tp1>
2275 static __result_of_success<decltype(
2276 std::declval<_Tp1>().*std::declval<_Fp>()
2277 ), __invoke_memobj_ref> _S_test(
int);
2279 template<
typename,
typename>
2280 static __failure_type _S_test(...);
2283 template<
typename _MemPtr,
typename _Arg>
2284 struct __result_of_memobj_ref
2285 :
private __result_of_memobj_ref_impl
2287 typedef decltype(_S_test<_MemPtr, _Arg>(0)) type;
2291 struct __result_of_memobj_deref_impl
2293 template<
typename _Fp,
typename _Tp1>
2294 static __result_of_success<decltype(
2295 (*std::declval<_Tp1>()).*std::declval<_Fp>()
2296 ), __invoke_memobj_deref> _S_test(
int);
2298 template<
typename,
typename>
2299 static __failure_type _S_test(...);
2302 template<
typename _MemPtr,
typename _Arg>
2303 struct __result_of_memobj_deref
2304 :
private __result_of_memobj_deref_impl
2306 typedef decltype(_S_test<_MemPtr, _Arg>(0)) type;
2309 template<typename _MemPtr, typename _Arg>
2310 struct __result_of_memobj;
2312 template<typename _Res, typename _Class, typename _Arg>
2313 struct __result_of_memobj<_Res _Class::*, _Arg>
2315 typedef __remove_cvref_t<_Arg> _Argval;
2316 typedef _Res _Class::* _MemPtr;
2319 __result_of_memobj_ref<_MemPtr, _Arg>,
2320 __result_of_memobj_deref<_MemPtr, _Arg>
2324 template<
typename _MemPtr,
typename _Arg,
typename... _Args>
2325 struct __result_of_memfun;
2327 template<
typename _Res,
typename _Class,
typename _Arg,
typename... _Args>
2328 struct __result_of_memfun<_Res _Class::*, _Arg, _Args...>
2330 typedef typename remove_reference<_Arg>::type _Argval;
2331 typedef _Res _Class::* _MemPtr;
2333 __result_of_memfun_ref<_MemPtr, _Arg, _Args...>,
2334 __result_of_memfun_deref<_MemPtr, _Arg, _Args...>
2343 template<
typename _Tp,
typename _Up = __remove_cvref_t<_Tp>>
2349 template<
typename _Tp,
typename _Up>
2355 template<bool, bool,
typename _Functor,
typename... _ArgTypes>
2356 struct __result_of_impl
2358 typedef __failure_type type;
2361 template<
typename _MemPtr,
typename _Arg>
2362 struct __result_of_impl<true, false, _MemPtr, _Arg>
2363 :
public __result_of_memobj<typename decay<_MemPtr>::type,
2364 typename __inv_unwrap<_Arg>::type>
2367 template<
typename _MemPtr,
typename _Arg,
typename... _Args>
2368 struct __result_of_impl<false, true, _MemPtr, _Arg, _Args...>
2369 :
public __result_of_memfun<typename decay<_MemPtr>::type,
2370 typename __inv_unwrap<_Arg>::type, _Args...>
2374 struct __result_of_other_impl
2376 template<
typename _Fn,
typename... _Args>
2377 static __result_of_success<decltype(
2378 std::declval<_Fn>()(std::declval<_Args>()...)
2379 ), __invoke_other> _S_test(
int);
2381 template<
typename...>
2382 static __failure_type _S_test(...);
2385 template<
typename _Functor,
typename... _ArgTypes>
2386 struct __result_of_impl<false, false, _Functor, _ArgTypes...>
2387 :
private __result_of_other_impl
2389 typedef decltype(_S_test<_Functor, _ArgTypes...>(0)) type;
2393 template<typename _Functor, typename... _ArgTypes>
2394 struct __invoke_result
2395 : public __result_of_impl<
2402 _Functor, _ArgTypes...
2406 template<
typename _Functor,
typename... _ArgTypes>
2407 struct result_of<_Functor(_ArgTypes...)>
2408 :
public __invoke_result<_Functor, _ArgTypes...>
2411 #if __cplusplus >= 201402L 2413 template<
size_t _Len,
size_t _Align =
2414 __alignof__(
typename __aligned_storage_msa<_Len>::__type)>
2417 template <
size_t _Len,
typename... _Types>
2418 using aligned_union_t =
typename aligned_union<_Len, _Types...>::type;
2421 template<
typename _Tp>
2425 template<
bool _Cond,
typename _Tp =
void>
2429 template<
bool _Cond,
typename _Iftrue,
typename _Iffalse>
2433 template<
typename... _Tp>
2437 template<
typename _Tp>
2441 template<
typename _Tp>
2446 template<
bool _Cond,
typename _Tp =
void>
2450 template<
typename...>
using __void_t = void;
2452 #if __cplusplus >= 201703L || !defined(__STRICT_ANSI__) // c++17 or gnu++11 2453 #define __cpp_lib_void_t 201411 2459 template<
typename _Default,
typename _AlwaysVoid,
2460 template<
typename...>
class _Op,
typename... _Args>
2464 using type = _Default;
2468 template<
typename _Default,
template<
typename...>
class _Op,
2470 struct __detector<_Default, __void_t<_Op<_Args...>>, _Op, _Args...>
2473 using type = _Op<_Args...>;
2477 template<
typename _Default,
template<
typename...>
class _Op,
2482 template<
typename _Default,
template<
typename...>
class _Op,
2484 using __detected_or_t
2485 =
typename __detected_or<_Default, _Op, _Args...>::type;
2493 #define _GLIBCXX_HAS_NESTED_TYPE(_NTYPE) \ 2494 template<typename _Tp, typename = __void_t<>> \ 2495 struct __has_##_NTYPE \ 2498 template<typename _Tp> \ 2499 struct __has_##_NTYPE<_Tp, __void_t<typename _Tp::_NTYPE>> \ 2503 template <
typename _Tp>
2504 struct __is_swappable;
2506 template <
typename _Tp>
2507 struct __is_nothrow_swappable;
2509 template<
typename... _Elements>
2513 struct __is_tuple_like_impl : false_type
2516 template<
typename... _Tps>
2517 struct __is_tuple_like_impl<tuple<_Tps...>> : true_type
2521 template<
typename _Tp>
2522 struct __is_tuple_like
2523 :
public __is_tuple_like_impl<__remove_cvref_t<_Tp>>::type
2526 template<
typename _Tp>
2528 typename enable_if<__and_<__not_<__is_tuple_like<_Tp>>,
2529 is_move_constructible<_Tp>,
2530 is_move_assignable<_Tp>>::value>::type
2532 noexcept(__and_<is_nothrow_move_constructible<_Tp>,
2533 is_nothrow_move_assignable<_Tp>>::value);
2535 template<
typename _Tp,
size_t _Nm>
2537 typename enable_if<__is_swappable<_Tp>::value>::type
2538 swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
2539 noexcept(__is_nothrow_swappable<_Tp>::value);
2541 namespace __swappable_details {
2544 struct __do_is_swappable_impl
2546 template<
typename _Tp,
typename 2547 = decltype(swap(std::declval<_Tp&>(), std::declval<_Tp&>()))>
2548 static true_type __test(
int);
2551 static false_type __test(...);
2554 struct __do_is_nothrow_swappable_impl
2556 template<
typename _Tp>
2557 static __bool_constant<
2558 noexcept(swap(std::declval<_Tp&>(), std::declval<_Tp&>()))
2562 static false_type __test(...);
2567 template<
typename _Tp>
2568 struct __is_swappable_impl
2569 :
public __swappable_details::__do_is_swappable_impl
2571 typedef decltype(__test<_Tp>(0)) type;
2574 template<typename _Tp>
2575 struct __is_nothrow_swappable_impl
2576 : public __swappable_details::__do_is_nothrow_swappable_impl
2578 typedef decltype(__test<_Tp>(0)) type;
2581 template<typename _Tp>
2582 struct __is_swappable
2583 : public __is_swappable_impl<_Tp>::type
2586 template<
typename _Tp>
2587 struct __is_nothrow_swappable
2588 :
public __is_nothrow_swappable_impl<_Tp>::type
2591 #if __cplusplus > 201402L || !defined(__STRICT_ANSI__) // c++1z or gnu++11 2592 #define __cpp_lib_is_swappable 201603 2596 template<
typename _Tp>
2598 :
public __is_swappable_impl<_Tp>::type
2602 template<
typename _Tp>
2604 :
public __is_nothrow_swappable_impl<_Tp>::type
2607 #if __cplusplus >= 201402L 2609 template<
typename _Tp>
2614 template<
typename _Tp>
2617 #endif // __cplusplus >= 201402L 2619 namespace __swappable_with_details {
2622 struct __do_is_swappable_with_impl
2624 template<
typename _Tp,
typename _Up,
typename 2625 = decltype(swap(std::declval<_Tp>(), std::declval<_Up>())),
2627 = decltype(swap(std::declval<_Up>(), std::declval<_Tp>()))>
2628 static true_type __test(
int);
2630 template<
typename,
typename>
2631 static false_type __test(...);
2634 struct __do_is_nothrow_swappable_with_impl
2636 template<
typename _Tp,
typename _Up>
2637 static __bool_constant<
2638 noexcept(swap(std::declval<_Tp>(), std::declval<_Up>()))
2640 noexcept(swap(std::declval<_Up>(), std::declval<_Tp>()))
2643 template<
typename,
typename>
2644 static false_type __test(...);
2649 template<
typename _Tp,
typename _Up>
2650 struct __is_swappable_with_impl
2651 :
public __swappable_with_details::__do_is_swappable_with_impl
2653 typedef decltype(__test<_Tp, _Up>(0)) type;
2657 template<
typename _Tp>
2658 struct __is_swappable_with_impl<_Tp&, _Tp&>
2659 :
public __swappable_details::__do_is_swappable_impl
2661 typedef decltype(__test<_Tp&>(0)) type;
2664 template<
typename _Tp,
typename _Up>
2665 struct __is_nothrow_swappable_with_impl
2666 :
public __swappable_with_details::__do_is_nothrow_swappable_with_impl
2668 typedef decltype(__test<_Tp, _Up>(0)) type;
2672 template<
typename _Tp>
2673 struct __is_nothrow_swappable_with_impl<_Tp&, _Tp&>
2674 :
public __swappable_details::__do_is_nothrow_swappable_impl
2676 typedef decltype(__test<_Tp&>(0)) type;
2680 template<
typename _Tp,
typename _Up>
2682 :
public __is_swappable_with_impl<_Tp, _Up>::type
2686 template<
typename _Tp,
typename _Up>
2688 :
public __is_nothrow_swappable_with_impl<_Tp, _Up>::type
2691 #if __cplusplus >= 201402L 2693 template<
typename _Tp,
typename _Up>
2698 template<
typename _Tp,
typename _Up>
2701 #endif // __cplusplus >= 201402L 2703 #endif// c++1z or gnu++11 2707 template<
typename _Result,
typename _Ret,
typename =
void>
2708 struct __is_invocable_impl : false_type { };
2710 template<
typename _Result,
typename _Ret>
2711 struct __is_invocable_impl<_Result, _Ret, __void_t<typename _Result::type>>
2712 : __or_<is_void<_Ret>, is_convertible<typename _Result::type, _Ret>>::type
2715 template<
typename _Fn,
typename... _ArgTypes>
2716 struct __is_invocable
2717 : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>::type
2720 template<
typename _Fn,
typename _Tp,
typename... _Args>
2721 constexpr
bool __call_is_nt(__invoke_memfun_ref)
2723 using _Up =
typename __inv_unwrap<_Tp>::type;
2724 return noexcept((std::declval<_Up>().*std::declval<_Fn>())(
2725 std::declval<_Args>()...));
2728 template<
typename _Fn,
typename _Tp,
typename... _Args>
2729 constexpr
bool __call_is_nt(__invoke_memfun_deref)
2731 return noexcept(((*std::declval<_Tp>()).*std::declval<_Fn>())(
2732 std::declval<_Args>()...));
2735 template<
typename _Fn,
typename _Tp>
2736 constexpr
bool __call_is_nt(__invoke_memobj_ref)
2738 using _Up =
typename __inv_unwrap<_Tp>::type;
2739 return noexcept(std::declval<_Up>().*std::declval<_Fn>());
2742 template<
typename _Fn,
typename _Tp>
2743 constexpr
bool __call_is_nt(__invoke_memobj_deref)
2745 return noexcept((*std::declval<_Tp>()).*std::declval<_Fn>());
2748 template<
typename _Fn,
typename... _Args>
2749 constexpr
bool __call_is_nt(__invoke_other)
2751 return noexcept(std::declval<_Fn>()(std::declval<_Args>()...));
2754 template<
typename _Result,
typename _Fn,
typename... _Args>
2755 struct __call_is_nothrow
2757 std::__call_is_nt<_Fn, _Args...>(typename _Result::__invoke_type{})
2761 template<
typename _Fn,
typename... _Args>
2762 using __call_is_nothrow_
2763 = __call_is_nothrow<__invoke_result<_Fn, _Args...>, _Fn, _Args...>;
2766 template<
typename _Fn,
typename... _Args>
2767 struct __is_nothrow_invocable
2768 : __and_<__is_invocable<_Fn, _Args...>,
2769 __call_is_nothrow_<_Fn, _Args...>>::type
2773 __nonesuch() =
delete;
2774 ~__nonesuch() =
delete;
2775 __nonesuch(__nonesuch
const&) =
delete;
2776 void operator=(__nonesuch
const&) =
delete;
2779 #if __cplusplus >= 201703L 2780 # define __cpp_lib_is_invocable 201703 2783 template<
typename _Functor,
typename... _ArgTypes>
2784 struct invoke_result
2785 :
public __invoke_result<_Functor, _ArgTypes...>
2789 template<
typename _Fn,
typename... _Args>
2790 using invoke_result_t =
typename invoke_result<_Fn, _Args...>::type;
2793 template<
typename _Fn,
typename... _ArgTypes>
2795 : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>::type
2799 template<
typename _Ret,
typename _Fn,
typename... _ArgTypes>
2800 struct is_invocable_r
2801 : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, _Ret>::type
2805 template<
typename _Fn,
typename... _ArgTypes>
2806 struct is_nothrow_invocable
2807 : __and_<__is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>,
2808 __call_is_nothrow_<_Fn, _ArgTypes...>>::type
2811 template<
typename _Result,
typename _Ret,
typename =
void>
2812 struct __is_nt_invocable_impl : false_type { };
2814 template<
typename _Result,
typename _Ret>
2815 struct __is_nt_invocable_impl<_Result, _Ret,
2816 __void_t<typename _Result::type>>
2817 : __or_<is_void<_Ret>,
2818 __and_<is_convertible<typename _Result::type, _Ret>,
2819 is_nothrow_constructible<_Ret, typename _Result::type>>>
2823 template<
typename _Ret,
typename _Fn,
typename... _ArgTypes>
2824 struct is_nothrow_invocable_r
2825 : __and_<__is_nt_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, _Ret>,
2826 __call_is_nothrow_<_Fn, _ArgTypes...>>::type
2830 template<
typename _Fn,
typename... _Args>
2831 inline constexpr
bool is_invocable_v = is_invocable<_Fn, _Args...>::value;
2834 template<
typename _Fn,
typename... _Args>
2835 inline constexpr
bool is_nothrow_invocable_v
2836 = is_nothrow_invocable<_Fn, _Args...>::value;
2839 template<
typename _Fn,
typename... _Args>
2840 inline constexpr
bool is_invocable_r_v
2841 = is_invocable_r<_Fn, _Args...>::value;
2844 template<
typename _Fn,
typename... _Args>
2845 inline constexpr
bool is_nothrow_invocable_r_v
2846 = is_nothrow_invocable_r<_Fn, _Args...>::value;
2849 #if __cplusplus >= 201703L 2850 # define __cpp_lib_type_trait_variable_templates 201510L 2851 template <
typename _Tp>
2853 template <
typename _Tp>
2855 template <
typename _Tp>
2857 template <
typename _Tp>
2859 template <
typename _Tp>
2861 template <
typename _Tp>
2863 template <
typename _Tp>
2864 inline constexpr
bool is_lvalue_reference_v =
2866 template <
typename _Tp>
2867 inline constexpr
bool is_rvalue_reference_v =
2869 template <
typename _Tp>
2870 inline constexpr
bool is_member_object_pointer_v =
2872 template <
typename _Tp>
2873 inline constexpr
bool is_member_function_pointer_v =
2875 template <
typename _Tp>
2877 template <
typename _Tp>
2879 template <
typename _Tp>
2881 template <
typename _Tp>
2883 template <
typename _Tp>
2885 template <
typename _Tp>
2887 template <
typename _Tp>
2889 template <
typename _Tp>
2891 template <
typename _Tp>
2893 template <
typename _Tp>
2895 template <
typename _Tp>
2897 template <
typename _Tp>
2899 template <
typename _Tp>
2901 template <
typename _Tp>
2903 template <
typename _Tp>
2904 inline constexpr
bool is_trivially_copyable_v =
2905 is_trivially_copyable<_Tp>::value;
2906 template <
typename _Tp>
2908 template <
typename _Tp>
2910 template <
typename _Tp>
2912 template <
typename _Tp>
2914 template <
typename _Tp>
2916 template <
typename _Tp>
2918 template <
typename _Tp>
2920 template <
typename _Tp>
2921 inline constexpr
bool is_signed_v = is_signed<_Tp>::value;
2922 template <
typename _Tp>
2923 inline constexpr
bool is_unsigned_v = is_unsigned<_Tp>::value;
2924 template <
typename _Tp,
typename... _Args>
2925 inline constexpr
bool is_constructible_v =
2927 template <
typename _Tp>
2928 inline constexpr
bool is_default_constructible_v =
2930 template <
typename _Tp>
2931 inline constexpr
bool is_copy_constructible_v =
2933 template <
typename _Tp>
2934 inline constexpr
bool is_move_constructible_v =
2936 template <
typename _Tp,
typename _Up>
2938 template <
typename _Tp>
2940 template <
typename _Tp>
2942 template <
typename _Tp>
2944 template <
typename _Tp,
typename... _Args>
2945 inline constexpr
bool is_trivially_constructible_v =
2947 template <
typename _Tp>
2948 inline constexpr
bool is_trivially_default_constructible_v =
2950 template <
typename _Tp>
2951 inline constexpr
bool is_trivially_copy_constructible_v =
2952 is_trivially_copy_constructible<_Tp>::value;
2953 template <
typename _Tp>
2954 inline constexpr
bool is_trivially_move_constructible_v =
2955 is_trivially_move_constructible<_Tp>::value;
2956 template <
typename _Tp,
typename _Up>
2957 inline constexpr
bool is_trivially_assignable_v =
2959 template <
typename _Tp>
2960 inline constexpr
bool is_trivially_copy_assignable_v =
2961 is_trivially_copy_assignable<_Tp>::value;
2962 template <
typename _Tp>
2963 inline constexpr
bool is_trivially_move_assignable_v =
2964 is_trivially_move_assignable<_Tp>::value;
2965 template <
typename _Tp>
2966 inline constexpr
bool is_trivially_destructible_v =
2968 template <
typename _Tp,
typename... _Args>
2969 inline constexpr
bool is_nothrow_constructible_v =
2971 template <
typename _Tp>
2972 inline constexpr
bool is_nothrow_default_constructible_v =
2974 template <
typename _Tp>
2975 inline constexpr
bool is_nothrow_copy_constructible_v =
2977 template <
typename _Tp>
2978 inline constexpr
bool is_nothrow_move_constructible_v =
2980 template <
typename _Tp,
typename _Up>
2981 inline constexpr
bool is_nothrow_assignable_v =
2983 template <
typename _Tp>
2984 inline constexpr
bool is_nothrow_copy_assignable_v =
2986 template <
typename _Tp>
2987 inline constexpr
bool is_nothrow_move_assignable_v =
2989 template <
typename _Tp>
2990 inline constexpr
bool is_nothrow_destructible_v =
2992 template <
typename _Tp>
2993 inline constexpr
bool has_virtual_destructor_v =
2995 template <
typename _Tp>
2997 template <
typename _Tp>
2999 template <
typename _Tp,
unsigned _Idx = 0>
3001 template <
typename _Tp,
typename _Up>
3003 template <
typename _Base,
typename _Derived>
3005 template <
typename _From,
typename _To>
3008 #ifdef _GLIBCXX_HAVE_BUILTIN_HAS_UNIQ_OBJ_REP 3009 # define __cpp_lib_has_unique_object_representations 201606 3011 template<
typename _Tp>
3012 struct has_unique_object_representations
3013 : bool_constant<__has_unique_object_representations(
3014 remove_cv_t<remove_all_extents_t<_Tp>>
3018 template<
typename _Tp>
3019 inline constexpr
bool has_unique_object_representations_v
3020 = has_unique_object_representations<_Tp>::value;
3023 #ifdef _GLIBCXX_HAVE_BUILTIN_IS_AGGREGATE 3024 # define __cpp_lib_is_aggregate 201703 3026 template<
typename _Tp>
3028 : bool_constant<__is_aggregate(remove_cv_t<_Tp>)> { };
3031 template<
typename _Tp>
3032 inline constexpr
bool is_aggregate_v = is_aggregate<_Tp>::value;
3036 #if __cplusplus > 201703L 3040 little = __ORDER_LITTLE_ENDIAN__,
3041 big = __ORDER_BIG_ENDIAN__,
3042 native = __BYTE_ORDER__
3046 template<
typename _Tp>
3049 using type = __remove_cvref_t<_Tp>;
3052 template<
typename _Tp>
3053 using remove_cvref_t = __remove_cvref_t<_Tp>;
3056 template<
typename _Tp>
3057 struct type_identity {
using type = _Tp; };
3059 template<
typename _Tp>
3060 using type_identity_t =
typename type_identity<_Tp>::type;
3063 template<
typename _Tp>
3064 struct unwrap_reference {
using type = _Tp; };
3066 template<
typename _Tp>
3067 struct unwrap_reference<reference_wrapper<_Tp>> {
using type = _Tp&; };
3069 template<
typename _Tp>
3070 using unwrap_reference_t =
typename unwrap_reference<_Tp>::type;
3073 template<
typename _Tp>
3074 struct unwrap_ref_decay {
using type = unwrap_reference_t<decay_t<_Tp>>; };
3076 template<
typename _Tp>
3077 using unwrap_ref_decay_t =
typename unwrap_ref_decay<_Tp>::type;
3079 #define __cpp_lib_bounded_array_traits 201902L 3082 template<
typename _Tp>
3083 struct is_bounded_array
3084 :
public __is_array_known_bounds<_Tp>
3088 template<
typename _Tp>
3089 struct is_unbounded_array
3090 :
public __is_array_unknown_bounds<_Tp>
3093 template<
typename _Tp>
3094 inline constexpr
bool is_bounded_array_v
3095 = is_bounded_array<_Tp>::value;
3097 template<
typename _Tp>
3098 inline constexpr
bool is_unbounded_array_v
3099 = is_unbounded_array<_Tp>::value;
3101 #ifdef _GLIBCXX_HAVE_BUILTIN_IS_CONSTANT_EVALUATED 3103 #define __cpp_lib_is_constant_evaluated 201811L 3105 constexpr
inline bool 3106 is_constant_evaluated() noexcept
3107 {
return __builtin_is_constant_evaluated(); }
3112 _GLIBCXX_END_NAMESPACE_VERSION
3117 #endif // _GLIBCXX_TYPE_TRAITS typename enable_if< _Cond, _Tp >::type enable_if_t
Alias template for enable_if.
typename underlying_type< _Tp >::type underlying_type_t
Alias template for underlying_type.
is_nothrow_copy_assignable
typename make_signed< _Tp >::type make_signed_t
Alias template for make_signed.
typename conditional< _Cond, _Iftrue, _Iffalse >::type conditional_t
Alias template for conditional.
_GLIBCXX17_INLINE constexpr bool is_nothrow_swappable_with_v
is_nothrow_swappable_with_v
Define a member typedef type only if a boolean constant is true.
typename add_cv< _Tp >::type add_cv_t
Alias template for add_cv.
is_trivially_constructible
typename remove_pointer< _Tp >::type remove_pointer_t
Alias template for remove_pointer.
is_trivially_copy_constructible
__is_nullptr_t (extension).
typename add_lvalue_reference< _Tp >::type add_lvalue_reference_t
Alias template for add_lvalue_reference.
ISO C++ entities toplevel namespace is std.
typename remove_reference< _Tp >::type remove_reference_t
Alias template for remove_reference.
_GLIBCXX17_INLINE constexpr bool is_nothrow_swappable_v
is_nothrow_swappable_v
The underlying type of an enum.
is_nothrow_swappable_with
is_member_function_pointer
typename remove_cv< _Tp >::type remove_cv_t
Alias template for remove_cv.
is_trivially_move_assignable
aligned_storage< _S_len, alignment_value >::type type
The storage.
Define a member typedef type to one of two argument types.
typename remove_const< _Tp >::type remove_const_t
Alias template for remove_const.
Implementation of the detection idiom (negative case).
typename make_unsigned< _Tp >::type make_unsigned_t
Alias template for make_unsigned.
Primary class template for reference_wrapper.
typename add_rvalue_reference< _Tp >::type add_rvalue_reference_t
Alias template for add_rvalue_reference.
is_null_pointer (LWG 2247).
typename add_volatile< _Tp >::type add_volatile_t
Alias template for add_volatile.
Metafunctions used for detecting swappable types: p0185r1.
integral_constant< bool, true > true_type
The type used as a compile-time boolean with true value.
is_nothrow_move_assignable
is_nothrow_default_constructible
is_trivially_default_constructible
is_nothrow_copy_constructible
is_trivially_destructible
_GLIBCXX17_INLINE constexpr bool is_swappable_v
is_swappable_v
typename remove_volatile< _Tp >::type remove_volatile_t
Alias template for remove_volatile.
typename aligned_storage< _Len, _Align >::type aligned_storage_t
Alias template for aligned_storage.
is_nothrow_move_constructible
integral_constant< bool, false > false_type
The type used as a compile-time boolean with false value.
typename remove_all_extents< _Tp >::type remove_all_extents_t
Alias template for remove_all_extents.
_GLIBCXX17_INLINE constexpr bool is_swappable_with_v
is_swappable_with_v
typename result_of< _Tp >::type result_of_t
Alias template for result_of.
is_trivially_move_constructible
Provide aligned storage for types.
typename remove_extent< _Tp >::type remove_extent_t
Alias template for remove_extent.
typename decay< _Tp >::type decay_t
Alias template for decay.
is_trivially_copy_assignable
typename add_pointer< _Tp >::type add_pointer_t
Alias template for add_pointer.
void void_t
A metafunction that always yields void, used for detecting valid types.
typename common_type< _Tp... >::type common_type_t
Alias template for common_type.
typename add_const< _Tp >::type add_const_t
Alias template for add_const.