Created
July 7, 2024 19:23
-
-
Save cfgauss/97ee37df2f6f18013454d4fd7096859d to your computer and use it in GitHub Desktop.
qqmldomexternalitems.cpp.ii
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 0 "/var/tmp/portage/dev-qt/qtdeclarative-6.7.2/work/qtdeclarative-everywhere-src-6.7.2/src/qmldom/qqmldomexternalitems.cpp" | |
# 0 "<built-in>" | |
# 0 "<command-line>" | |
# 1 "/usr/include/stdc-predef.h" 1 3 4 | |
# 0 "<command-line>" 2 | |
# 1 "/var/tmp/portage/dev-qt/qtdeclarative-6.7.2/work/qtdeclarative-everywhere-src-6.7.2/src/qmldom/qqmldomexternalitems.cpp" | |
# 1 "/var/tmp/portage/dev-qt/qtdeclarative-6.7.2/work/qtdeclarative-everywhere-src-6.7.2/src/qmldom/qqmldomtop_p.h" 1 | |
# 18 "/var/tmp/portage/dev-qt/qtdeclarative-6.7.2/work/qtdeclarative-everywhere-src-6.7.2/src/qmldom/qqmldomtop_p.h" | |
# 1 "/var/tmp/portage/dev-qt/qtdeclarative-6.7.2/work/qtdeclarative-everywhere-src-6.7.2/src/qmldom/qqmldomitem_p.h" 1 | |
# 18 "/var/tmp/portage/dev-qt/qtdeclarative-6.7.2/work/qtdeclarative-everywhere-src-6.7.2/src/qmldom/qqmldomitem_p.h" | |
# 1 "/var/tmp/portage/dev-qt/qtdeclarative-6.7.2/work/qtdeclarative-everywhere-src-6.7.2/src/qmldom/qqmldom_global.h" 1 | |
# 1 "/usr/include/qt6/QtCore/qglobal.h" 1 3 4 | |
# 13 "/usr/include/qt6/QtCore/qglobal.h" 3 4 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 1 3 4 | |
# 32 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 4 | |
# 33 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/x86_64-pc-linux-gnu/bits/c++config.h" 1 3 | |
# 33 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/x86_64-pc-linux-gnu/bits/c++config.h" 3 | |
# 34 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/x86_64-pc-linux-gnu/bits/c++config.h" 3 | |
# 308 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/x86_64-pc-linux-gnu/bits/c++config.h" 3 | |
# 308 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/x86_64-pc-linux-gnu/bits/c++config.h" 3 | |
namespace std | |
{ | |
typedef long unsigned int size_t; | |
typedef long int ptrdiff_t; | |
typedef decltype(nullptr) nullptr_t; | |
#pragma GCC visibility push(default) | |
extern "C++" __attribute__ ((__noreturn__, __always_inline__)) | |
inline void __terminate() noexcept | |
{ | |
void terminate() noexcept __attribute__ ((__noreturn__,__cold__)); | |
terminate(); | |
} | |
#pragma GCC visibility pop | |
} | |
# 341 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/x86_64-pc-linux-gnu/bits/c++config.h" 3 | |
namespace std | |
{ | |
inline namespace __cxx11 __attribute__((__abi_tag__ ("cxx11"))) { } | |
} | |
namespace __gnu_cxx | |
{ | |
inline namespace __cxx11 __attribute__((__abi_tag__ ("cxx11"))) { } | |
} | |
# 534 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/x86_64-pc-linux-gnu/bits/c++config.h" 3 | |
namespace std | |
{ | |
#pragma GCC visibility push(default) | |
__attribute__((__always_inline__)) | |
constexpr inline bool | |
__is_constant_evaluated() noexcept | |
{ | |
return __builtin_is_constant_evaluated(); | |
} | |
#pragma GCC visibility pop | |
} | |
# 573 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/x86_64-pc-linux-gnu/bits/c++config.h" 3 | |
namespace std | |
{ | |
#pragma GCC visibility push(default) | |
extern "C++" __attribute__ ((__noreturn__)) | |
void | |
__glibcxx_assert_fail | |
(const char* __file, int __line, const char* __function, | |
const char* __condition) | |
noexcept; | |
#pragma GCC visibility pop | |
} | |
# 601 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/x86_64-pc-linux-gnu/bits/c++config.h" 3 | |
namespace std | |
{ | |
__attribute__((__always_inline__,__visibility__("default"))) | |
inline void | |
__glibcxx_assert_fail() | |
{ } | |
} | |
# 680 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/x86_64-pc-linux-gnu/bits/c++config.h" 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/x86_64-pc-linux-gnu/bits/os_defines.h" 1 3 | |
# 39 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/x86_64-pc-linux-gnu/bits/os_defines.h" 3 | |
# 1 "/usr/include/features.h" 1 3 4 | |
# 394 "/usr/include/features.h" 3 4 | |
# 1 "/usr/include/features-time64.h" 1 3 4 | |
# 20 "/usr/include/features-time64.h" 3 4 | |
# 1 "/usr/include/bits/wordsize.h" 1 3 4 | |
# 21 "/usr/include/features-time64.h" 2 3 4 | |
# 1 "/usr/include/bits/timesize.h" 1 3 4 | |
# 19 "/usr/include/bits/timesize.h" 3 4 | |
# 1 "/usr/include/bits/wordsize.h" 1 3 4 | |
# 20 "/usr/include/bits/timesize.h" 2 3 4 | |
# 22 "/usr/include/features-time64.h" 2 3 4 | |
# 395 "/usr/include/features.h" 2 3 4 | |
# 503 "/usr/include/features.h" 3 4 | |
# 1 "/usr/include/sys/cdefs.h" 1 3 4 | |
# 576 "/usr/include/sys/cdefs.h" 3 4 | |
# 1 "/usr/include/bits/wordsize.h" 1 3 4 | |
# 577 "/usr/include/sys/cdefs.h" 2 3 4 | |
# 1 "/usr/include/bits/long-double.h" 1 3 4 | |
# 578 "/usr/include/sys/cdefs.h" 2 3 4 | |
# 504 "/usr/include/features.h" 2 3 4 | |
# 527 "/usr/include/features.h" 3 4 | |
# 1 "/usr/include/gnu/stubs.h" 1 3 4 | |
# 10 "/usr/include/gnu/stubs.h" 3 4 | |
# 1 "/usr/include/gnu/stubs-64.h" 1 3 4 | |
# 11 "/usr/include/gnu/stubs.h" 2 3 4 | |
# 528 "/usr/include/features.h" 2 3 4 | |
# 40 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/x86_64-pc-linux-gnu/bits/os_defines.h" 2 3 | |
# 681 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/x86_64-pc-linux-gnu/bits/c++config.h" 2 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/x86_64-pc-linux-gnu/bits/cpu_defines.h" 1 3 | |
# 684 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/x86_64-pc-linux-gnu/bits/c++config.h" 2 3 | |
# 825 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/x86_64-pc-linux-gnu/bits/c++config.h" 3 | |
namespace __gnu_cxx | |
{ | |
typedef __decltype(0.0bf16) __bfloat16_t; | |
} | |
# 887 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/x86_64-pc-linux-gnu/bits/c++config.h" 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/pstl/pstl_config.h" 1 3 | |
# 888 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/x86_64-pc-linux-gnu/bits/c++config.h" 2 3 | |
# 39 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 2 3 | |
# 63 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 1 3 | |
# 47 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 3 | |
# 48 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 3 | |
# 64 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 2 3 | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
template<typename _Tp> | |
class reference_wrapper; | |
# 86 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
template<typename _Tp, _Tp __v> | |
struct integral_constant | |
{ | |
static constexpr _Tp value = __v; | |
using value_type = _Tp; | |
using type = integral_constant<_Tp, __v>; | |
constexpr operator value_type() const noexcept { return value; } | |
constexpr value_type operator()() const noexcept { return value; } | |
}; | |
# 106 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
template<bool __v> | |
using __bool_constant = integral_constant<bool, __v>; | |
using true_type = __bool_constant<true>; | |
using false_type = __bool_constant<false>; | |
template<bool __v> | |
using bool_constant = __bool_constant<__v>; | |
template<bool, typename _Tp = void> | |
struct enable_if | |
{ }; | |
template<typename _Tp> | |
struct enable_if<true, _Tp> | |
{ using type = _Tp; }; | |
template<bool _Cond, typename _Tp = void> | |
using __enable_if_t = typename enable_if<_Cond, _Tp>::type; | |
template<bool> | |
struct __conditional | |
{ | |
template<typename _Tp, typename> | |
using type = _Tp; | |
}; | |
template<> | |
struct __conditional<false> | |
{ | |
template<typename, typename _Up> | |
using type = _Up; | |
}; | |
template<bool _Cond, typename _If, typename _Else> | |
using __conditional_t | |
= typename __conditional<_Cond>::template type<_If, _Else>; | |
template <typename _Type> | |
struct __type_identity | |
{ using type = _Type; }; | |
template<typename _Tp> | |
using __type_identity_t = typename __type_identity<_Tp>::type; | |
namespace __detail | |
{ | |
template<typename _Tp, typename...> | |
using __first_t = _Tp; | |
template<typename... _Bn> | |
auto __or_fn(int) -> __first_t<false_type, | |
__enable_if_t<!bool(_Bn::value)>...>; | |
template<typename... _Bn> | |
auto __or_fn(...) -> true_type; | |
template<typename... _Bn> | |
auto __and_fn(int) -> __first_t<true_type, | |
__enable_if_t<bool(_Bn::value)>...>; | |
template<typename... _Bn> | |
auto __and_fn(...) -> false_type; | |
} | |
template<typename... _Bn> | |
struct __or_ | |
: decltype(__detail::__or_fn<_Bn...>(0)) | |
{ }; | |
template<typename... _Bn> | |
struct __and_ | |
: decltype(__detail::__and_fn<_Bn...>(0)) | |
{ }; | |
template<typename _Pp> | |
struct __not_ | |
: __bool_constant<!bool(_Pp::value)> | |
{ }; | |
template<typename... _Bn> | |
inline constexpr bool __or_v = __or_<_Bn...>::value; | |
template<typename... _Bn> | |
inline constexpr bool __and_v = __and_<_Bn...>::value; | |
namespace __detail | |
{ | |
template<typename , typename _B1, typename... _Bn> | |
struct __disjunction_impl | |
{ using type = _B1; }; | |
template<typename _B1, typename _B2, typename... _Bn> | |
struct __disjunction_impl<__enable_if_t<!bool(_B1::value)>, _B1, _B2, _Bn...> | |
{ using type = typename __disjunction_impl<void, _B2, _Bn...>::type; }; | |
template<typename , typename _B1, typename... _Bn> | |
struct __conjunction_impl | |
{ using type = _B1; }; | |
template<typename _B1, typename _B2, typename... _Bn> | |
struct __conjunction_impl<__enable_if_t<bool(_B1::value)>, _B1, _B2, _Bn...> | |
{ using type = typename __conjunction_impl<void, _B2, _Bn...>::type; }; | |
} | |
template<typename... _Bn> | |
struct conjunction | |
: __detail::__conjunction_impl<void, _Bn...>::type | |
{ }; | |
template<> | |
struct conjunction<> | |
: true_type | |
{ }; | |
template<typename... _Bn> | |
struct disjunction | |
: __detail::__disjunction_impl<void, _Bn...>::type | |
{ }; | |
template<> | |
struct disjunction<> | |
: false_type | |
{ }; | |
template<typename _Pp> | |
struct negation | |
: __not_<_Pp>::type | |
{ }; | |
template<typename... _Bn> | |
inline constexpr bool conjunction_v = conjunction<_Bn...>::value; | |
template<typename... _Bn> | |
inline constexpr bool disjunction_v = disjunction<_Bn...>::value; | |
template<typename _Pp> | |
inline constexpr bool negation_v = negation<_Pp>::value; | |
template<typename> | |
struct is_reference; | |
template<typename> | |
struct is_function; | |
template<typename> | |
struct is_void; | |
template<typename> | |
struct remove_cv; | |
template<typename> | |
struct is_const; | |
template<typename> | |
struct __is_array_unknown_bounds; | |
template <typename _Tp, size_t = sizeof(_Tp)> | |
constexpr true_type __is_complete_or_unbounded(__type_identity<_Tp>) | |
{ return {}; } | |
template <typename _TypeIdentity, | |
typename _NestedType = typename _TypeIdentity::type> | |
constexpr typename __or_< | |
is_reference<_NestedType>, | |
is_function<_NestedType>, | |
is_void<_NestedType>, | |
__is_array_unknown_bounds<_NestedType> | |
>::type __is_complete_or_unbounded(_TypeIdentity) | |
{ return {}; } | |
template<typename _Tp> | |
using __remove_cv_t = typename remove_cv<_Tp>::type; | |
template<typename _Tp> | |
struct is_void | |
: public false_type { }; | |
template<> | |
struct is_void<void> | |
: public true_type { }; | |
template<> | |
struct is_void<const void> | |
: public true_type { }; | |
template<> | |
struct is_void<volatile void> | |
: public true_type { }; | |
template<> | |
struct is_void<const volatile void> | |
: public true_type { }; | |
template<typename> | |
struct __is_integral_helper | |
: public false_type { }; | |
template<> | |
struct __is_integral_helper<bool> | |
: public true_type { }; | |
template<> | |
struct __is_integral_helper<char> | |
: public true_type { }; | |
template<> | |
struct __is_integral_helper<signed char> | |
: public true_type { }; | |
template<> | |
struct __is_integral_helper<unsigned char> | |
: public true_type { }; | |
template<> | |
struct __is_integral_helper<wchar_t> | |
: public true_type { }; | |
template<> | |
struct __is_integral_helper<char16_t> | |
: public true_type { }; | |
template<> | |
struct __is_integral_helper<char32_t> | |
: public true_type { }; | |
template<> | |
struct __is_integral_helper<short> | |
: public true_type { }; | |
template<> | |
struct __is_integral_helper<unsigned short> | |
: public true_type { }; | |
template<> | |
struct __is_integral_helper<int> | |
: public true_type { }; | |
template<> | |
struct __is_integral_helper<unsigned int> | |
: public true_type { }; | |
template<> | |
struct __is_integral_helper<long> | |
: public true_type { }; | |
template<> | |
struct __is_integral_helper<unsigned long> | |
: public true_type { }; | |
template<> | |
struct __is_integral_helper<long long> | |
: public true_type { }; | |
template<> | |
struct __is_integral_helper<unsigned long long> | |
: public true_type { }; | |
# 460 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
template<typename _Tp> | |
struct is_integral | |
: public __is_integral_helper<__remove_cv_t<_Tp>>::type | |
{ }; | |
template<typename> | |
struct __is_floating_point_helper | |
: public false_type { }; | |
template<> | |
struct __is_floating_point_helper<float> | |
: public true_type { }; | |
template<> | |
struct __is_floating_point_helper<double> | |
: public true_type { }; | |
template<> | |
struct __is_floating_point_helper<long double> | |
: public true_type { }; | |
# 520 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
template<typename _Tp> | |
struct is_floating_point | |
: public __is_floating_point_helper<__remove_cv_t<_Tp>>::type | |
{ }; | |
template<typename _Tp> | |
struct is_array | |
: public __bool_constant<__is_array(_Tp)> | |
{ }; | |
# 545 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
template<typename> | |
struct __is_pointer_helper | |
: public false_type { }; | |
template<typename _Tp> | |
struct __is_pointer_helper<_Tp*> | |
: public true_type { }; | |
template<typename _Tp> | |
struct is_pointer | |
: public __is_pointer_helper<__remove_cv_t<_Tp>>::type | |
{ }; | |
template<typename> | |
struct is_lvalue_reference | |
: public false_type { }; | |
template<typename _Tp> | |
struct is_lvalue_reference<_Tp&> | |
: public true_type { }; | |
template<typename> | |
struct is_rvalue_reference | |
: public false_type { }; | |
template<typename _Tp> | |
struct is_rvalue_reference<_Tp&&> | |
: public true_type { }; | |
template<typename _Tp> | |
struct is_member_object_pointer | |
: public __bool_constant<__is_member_object_pointer(_Tp)> | |
{ }; | |
# 601 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
template<typename _Tp> | |
struct is_member_function_pointer | |
: public __bool_constant<__is_member_function_pointer(_Tp)> | |
{ }; | |
# 622 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
template<typename _Tp> | |
struct is_enum | |
: public __bool_constant<__is_enum(_Tp)> | |
{ }; | |
template<typename _Tp> | |
struct is_union | |
: public __bool_constant<__is_union(_Tp)> | |
{ }; | |
template<typename _Tp> | |
struct is_class | |
: public __bool_constant<__is_class(_Tp)> | |
{ }; | |
template<typename _Tp> | |
struct is_function | |
: public __bool_constant<__is_function(_Tp)> | |
{ }; | |
# 661 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
template<typename _Tp> | |
struct is_null_pointer | |
: public false_type { }; | |
template<> | |
struct is_null_pointer<std::nullptr_t> | |
: public true_type { }; | |
template<> | |
struct is_null_pointer<const std::nullptr_t> | |
: public true_type { }; | |
template<> | |
struct is_null_pointer<volatile std::nullptr_t> | |
: public true_type { }; | |
template<> | |
struct is_null_pointer<const volatile std::nullptr_t> | |
: public true_type { }; | |
template<typename _Tp> | |
struct __is_nullptr_t | |
: public is_null_pointer<_Tp> | |
{ } __attribute__ ((__deprecated__ ("use '" "std::is_null_pointer" "' instead"))); | |
template<typename _Tp> | |
struct is_reference | |
: public __bool_constant<__is_reference(_Tp)> | |
{ }; | |
# 715 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
template<typename _Tp> | |
struct is_arithmetic | |
: public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type | |
{ }; | |
template<typename _Tp> | |
struct is_fundamental | |
: public __or_<is_arithmetic<_Tp>, is_void<_Tp>, | |
is_null_pointer<_Tp>>::type | |
{ }; | |
template<typename _Tp> | |
struct is_object | |
: public __bool_constant<__is_object(_Tp)> | |
{ }; | |
# 741 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
template<typename> | |
struct is_member_pointer; | |
template<typename _Tp> | |
struct is_scalar | |
: public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>, | |
is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type | |
{ }; | |
template<typename _Tp> | |
struct is_compound | |
: public __bool_constant<!is_fundamental<_Tp>::value> { }; | |
template<typename _Tp> | |
struct is_member_pointer | |
: public __bool_constant<__is_member_pointer(_Tp)> | |
{ }; | |
# 779 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
template<typename, typename> | |
struct is_same; | |
template<typename _Tp, typename... _Types> | |
using __is_one_of = __or_<is_same<_Tp, _Types>...>; | |
__extension__ | |
template<typename _Tp> | |
using __is_signed_integer = __is_one_of<__remove_cv_t<_Tp>, | |
signed char, signed short, signed int, signed long, | |
signed long long | |
# 804 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
>; | |
__extension__ | |
template<typename _Tp> | |
using __is_unsigned_integer = __is_one_of<__remove_cv_t<_Tp>, | |
unsigned char, unsigned short, unsigned int, unsigned long, | |
unsigned long long | |
# 824 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
>; | |
template<typename _Tp> | |
using __is_standard_integer | |
= __or_<__is_signed_integer<_Tp>, __is_unsigned_integer<_Tp>>; | |
template<typename...> using __void_t = void; | |
template<typename> | |
struct is_const | |
: public false_type { }; | |
template<typename _Tp> | |
struct is_const<_Tp const> | |
: public true_type { }; | |
template<typename> | |
struct is_volatile | |
: public false_type { }; | |
template<typename _Tp> | |
struct is_volatile<_Tp volatile> | |
: public true_type { }; | |
template<typename _Tp> | |
struct is_trivial | |
: public __bool_constant<__is_trivial(_Tp)> | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | |
"template argument must be a complete class or an unbounded array"); | |
}; | |
template<typename _Tp> | |
struct is_trivially_copyable | |
: public __bool_constant<__is_trivially_copyable(_Tp)> | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | |
"template argument must be a complete class or an unbounded array"); | |
}; | |
template<typename _Tp> | |
struct is_standard_layout | |
: public __bool_constant<__is_standard_layout(_Tp)> | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | |
"template argument must be a complete class or an unbounded array"); | |
}; | |
template<typename _Tp> | |
struct | |
is_pod | |
: public __bool_constant<__is_pod(_Tp)> | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | |
"template argument must be a complete class or an unbounded array"); | |
}; | |
template<typename _Tp> | |
struct | |
[[__deprecated__]] | |
is_literal_type | |
: public __bool_constant<__is_literal_type(_Tp)> | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | |
"template argument must be a complete class or an unbounded array"); | |
}; | |
template<typename _Tp> | |
struct is_empty | |
: public __bool_constant<__is_empty(_Tp)> | |
{ }; | |
template<typename _Tp> | |
struct is_polymorphic | |
: public __bool_constant<__is_polymorphic(_Tp)> | |
{ }; | |
template<typename _Tp> | |
struct is_final | |
: public __bool_constant<__is_final(_Tp)> | |
{ }; | |
template<typename _Tp> | |
struct is_abstract | |
: public __bool_constant<__is_abstract(_Tp)> | |
{ }; | |
template<typename _Tp, | |
bool = is_arithmetic<_Tp>::value> | |
struct __is_signed_helper | |
: public false_type { }; | |
template<typename _Tp> | |
struct __is_signed_helper<_Tp, true> | |
: public __bool_constant<_Tp(-1) < _Tp(0)> | |
{ }; | |
template<typename _Tp> | |
struct is_signed | |
: public __is_signed_helper<_Tp>::type | |
{ }; | |
template<typename _Tp> | |
struct is_unsigned | |
: public __and_<is_arithmetic<_Tp>, __not_<is_signed<_Tp>>>::type | |
{ }; | |
template<typename _Tp, typename _Up = _Tp&&> | |
_Up | |
__declval(int); | |
template<typename _Tp> | |
_Tp | |
__declval(long); | |
template<typename _Tp> | |
auto declval() noexcept -> decltype(__declval<_Tp>(0)); | |
template<typename> | |
struct remove_all_extents; | |
template<typename _Tp> | |
struct __is_array_known_bounds | |
: public false_type | |
{ }; | |
template<typename _Tp, size_t _Size> | |
struct __is_array_known_bounds<_Tp[_Size]> | |
: public true_type | |
{ }; | |
template<typename _Tp> | |
struct __is_array_unknown_bounds | |
: public false_type | |
{ }; | |
template<typename _Tp> | |
struct __is_array_unknown_bounds<_Tp[]> | |
: public true_type | |
{ }; | |
# 1006 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
struct __do_is_destructible_impl | |
{ | |
template<typename _Tp, typename = decltype(declval<_Tp&>().~_Tp())> | |
static true_type __test(int); | |
template<typename> | |
static false_type __test(...); | |
}; | |
template<typename _Tp> | |
struct __is_destructible_impl | |
: public __do_is_destructible_impl | |
{ | |
using type = decltype(__test<_Tp>(0)); | |
}; | |
template<typename _Tp, | |
bool = __or_<is_void<_Tp>, | |
__is_array_unknown_bounds<_Tp>, | |
is_function<_Tp>>::value, | |
bool = __or_<is_reference<_Tp>, is_scalar<_Tp>>::value> | |
struct __is_destructible_safe; | |
template<typename _Tp> | |
struct __is_destructible_safe<_Tp, false, false> | |
: public __is_destructible_impl<typename | |
remove_all_extents<_Tp>::type>::type | |
{ }; | |
template<typename _Tp> | |
struct __is_destructible_safe<_Tp, true, false> | |
: public false_type { }; | |
template<typename _Tp> | |
struct __is_destructible_safe<_Tp, false, true> | |
: public true_type { }; | |
template<typename _Tp> | |
struct is_destructible | |
: public __is_destructible_safe<_Tp>::type | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | |
"template argument must be a complete class or an unbounded array"); | |
}; | |
struct __do_is_nt_destructible_impl | |
{ | |
template<typename _Tp> | |
static __bool_constant<noexcept(declval<_Tp&>().~_Tp())> | |
__test(int); | |
template<typename> | |
static false_type __test(...); | |
}; | |
template<typename _Tp> | |
struct __is_nt_destructible_impl | |
: public __do_is_nt_destructible_impl | |
{ | |
using type = decltype(__test<_Tp>(0)); | |
}; | |
template<typename _Tp, | |
bool = __or_<is_void<_Tp>, | |
__is_array_unknown_bounds<_Tp>, | |
is_function<_Tp>>::value, | |
bool = __or_<is_reference<_Tp>, is_scalar<_Tp>>::value> | |
struct __is_nt_destructible_safe; | |
template<typename _Tp> | |
struct __is_nt_destructible_safe<_Tp, false, false> | |
: public __is_nt_destructible_impl<typename | |
remove_all_extents<_Tp>::type>::type | |
{ }; | |
template<typename _Tp> | |
struct __is_nt_destructible_safe<_Tp, true, false> | |
: public false_type { }; | |
template<typename _Tp> | |
struct __is_nt_destructible_safe<_Tp, false, true> | |
: public true_type { }; | |
template<typename _Tp> | |
struct is_nothrow_destructible | |
: public __is_nt_destructible_safe<_Tp>::type | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | |
"template argument must be a complete class or an unbounded array"); | |
}; | |
template<typename _Tp, typename... _Args> | |
using __is_constructible_impl | |
= __bool_constant<__is_constructible(_Tp, _Args...)>; | |
template<typename _Tp, typename... _Args> | |
struct is_constructible | |
: public __is_constructible_impl<_Tp, _Args...> | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | |
"template argument must be a complete class or an unbounded array"); | |
}; | |
template<typename _Tp> | |
struct is_default_constructible | |
: public __is_constructible_impl<_Tp> | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | |
"template argument must be a complete class or an unbounded array"); | |
}; | |
template<typename _Tp, typename = void> | |
struct __add_lvalue_reference_helper | |
{ using type = _Tp; }; | |
template<typename _Tp> | |
struct __add_lvalue_reference_helper<_Tp, __void_t<_Tp&>> | |
{ using type = _Tp&; }; | |
template<typename _Tp> | |
using __add_lval_ref_t = typename __add_lvalue_reference_helper<_Tp>::type; | |
template<typename _Tp> | |
struct is_copy_constructible | |
: public __is_constructible_impl<_Tp, __add_lval_ref_t<const _Tp>> | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | |
"template argument must be a complete class or an unbounded array"); | |
}; | |
template<typename _Tp, typename = void> | |
struct __add_rvalue_reference_helper | |
{ using type = _Tp; }; | |
template<typename _Tp> | |
struct __add_rvalue_reference_helper<_Tp, __void_t<_Tp&&>> | |
{ using type = _Tp&&; }; | |
template<typename _Tp> | |
using __add_rval_ref_t = typename __add_rvalue_reference_helper<_Tp>::type; | |
template<typename _Tp> | |
struct is_move_constructible | |
: public __is_constructible_impl<_Tp, __add_rval_ref_t<_Tp>> | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | |
"template argument must be a complete class or an unbounded array"); | |
}; | |
template<typename _Tp, typename... _Args> | |
using __is_nothrow_constructible_impl | |
= __bool_constant<__is_nothrow_constructible(_Tp, _Args...)>; | |
template<typename _Tp, typename... _Args> | |
struct is_nothrow_constructible | |
: public __is_nothrow_constructible_impl<_Tp, _Args...> | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | |
"template argument must be a complete class or an unbounded array"); | |
}; | |
template<typename _Tp> | |
struct is_nothrow_default_constructible | |
: public __is_nothrow_constructible_impl<_Tp> | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | |
"template argument must be a complete class or an unbounded array"); | |
}; | |
template<typename _Tp> | |
struct is_nothrow_copy_constructible | |
: public __is_nothrow_constructible_impl<_Tp, __add_lval_ref_t<const _Tp>> | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | |
"template argument must be a complete class or an unbounded array"); | |
}; | |
template<typename _Tp> | |
struct is_nothrow_move_constructible | |
: public __is_nothrow_constructible_impl<_Tp, __add_rval_ref_t<_Tp>> | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | |
"template argument must be a complete class or an unbounded array"); | |
}; | |
template<typename _Tp, typename _Up> | |
using __is_assignable_impl = __bool_constant<__is_assignable(_Tp, _Up)>; | |
template<typename _Tp, typename _Up> | |
struct is_assignable | |
: public __is_assignable_impl<_Tp, _Up> | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | |
"template argument must be a complete class or an unbounded array"); | |
}; | |
template<typename _Tp> | |
struct is_copy_assignable | |
: public __is_assignable_impl<__add_lval_ref_t<_Tp>, | |
__add_lval_ref_t<const _Tp>> | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | |
"template argument must be a complete class or an unbounded array"); | |
}; | |
template<typename _Tp> | |
struct is_move_assignable | |
: public __is_assignable_impl<__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>> | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | |
"template argument must be a complete class or an unbounded array"); | |
}; | |
template<typename _Tp, typename _Up> | |
using __is_nothrow_assignable_impl | |
= __bool_constant<__is_nothrow_assignable(_Tp, _Up)>; | |
template<typename _Tp, typename _Up> | |
struct is_nothrow_assignable | |
: public __is_nothrow_assignable_impl<_Tp, _Up> | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | |
"template argument must be a complete class or an unbounded array"); | |
}; | |
template<typename _Tp> | |
struct is_nothrow_copy_assignable | |
: public __is_nothrow_assignable_impl<__add_lval_ref_t<_Tp>, | |
__add_lval_ref_t<const _Tp>> | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | |
"template argument must be a complete class or an unbounded array"); | |
}; | |
template<typename _Tp> | |
struct is_nothrow_move_assignable | |
: public __is_nothrow_assignable_impl<__add_lval_ref_t<_Tp>, | |
__add_rval_ref_t<_Tp>> | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | |
"template argument must be a complete class or an unbounded array"); | |
}; | |
template<typename _Tp, typename... _Args> | |
using __is_trivially_constructible_impl | |
= __bool_constant<__is_trivially_constructible(_Tp, _Args...)>; | |
template<typename _Tp, typename... _Args> | |
struct is_trivially_constructible | |
: public __is_trivially_constructible_impl<_Tp, _Args...> | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | |
"template argument must be a complete class or an unbounded array"); | |
}; | |
template<typename _Tp> | |
struct is_trivially_default_constructible | |
: public __is_trivially_constructible_impl<_Tp> | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | |
"template argument must be a complete class or an unbounded array"); | |
}; | |
# 1319 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
struct __do_is_implicitly_default_constructible_impl | |
{ | |
template <typename _Tp> | |
static void __helper(const _Tp&); | |
template <typename _Tp> | |
static true_type __test(const _Tp&, | |
decltype(__helper<const _Tp&>({}))* = 0); | |
static false_type __test(...); | |
}; | |
template<typename _Tp> | |
struct __is_implicitly_default_constructible_impl | |
: public __do_is_implicitly_default_constructible_impl | |
{ | |
using type = decltype(__test(declval<_Tp>())); | |
}; | |
template<typename _Tp> | |
struct __is_implicitly_default_constructible_safe | |
: public __is_implicitly_default_constructible_impl<_Tp>::type | |
{ }; | |
template <typename _Tp> | |
struct __is_implicitly_default_constructible | |
: public __and_<__is_constructible_impl<_Tp>, | |
__is_implicitly_default_constructible_safe<_Tp>>::type | |
{ }; | |
template<typename _Tp> | |
struct is_trivially_copy_constructible | |
: public __is_trivially_constructible_impl<_Tp, __add_lval_ref_t<const _Tp>> | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | |
"template argument must be a complete class or an unbounded array"); | |
}; | |
template<typename _Tp> | |
struct is_trivially_move_constructible | |
: public __is_trivially_constructible_impl<_Tp, __add_rval_ref_t<_Tp>> | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | |
"template argument must be a complete class or an unbounded array"); | |
}; | |
template<typename _Tp, typename _Up> | |
using __is_trivially_assignable_impl | |
= __bool_constant<__is_trivially_assignable(_Tp, _Up)>; | |
template<typename _Tp, typename _Up> | |
struct is_trivially_assignable | |
: public __is_trivially_assignable_impl<_Tp, _Up> | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | |
"template argument must be a complete class or an unbounded array"); | |
}; | |
template<typename _Tp> | |
struct is_trivially_copy_assignable | |
: public __is_trivially_assignable_impl<__add_lval_ref_t<_Tp>, | |
__add_lval_ref_t<const _Tp>> | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | |
"template argument must be a complete class or an unbounded array"); | |
}; | |
template<typename _Tp> | |
struct is_trivially_move_assignable | |
: public __is_trivially_assignable_impl<__add_lval_ref_t<_Tp>, | |
__add_rval_ref_t<_Tp>> | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | |
"template argument must be a complete class or an unbounded array"); | |
}; | |
template<typename _Tp> | |
struct is_trivially_destructible | |
: public __and_<__is_destructible_safe<_Tp>, | |
__bool_constant<__has_trivial_destructor(_Tp)>>::type | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | |
"template argument must be a complete class or an unbounded array"); | |
}; | |
template<typename _Tp> | |
struct has_virtual_destructor | |
: public __bool_constant<__has_virtual_destructor(_Tp)> | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | |
"template argument must be a complete class or an unbounded array"); | |
}; | |
template<typename _Tp> | |
struct alignment_of | |
: public integral_constant<std::size_t, alignof(_Tp)> | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | |
"template argument must be a complete class or an unbounded array"); | |
}; | |
template<typename> | |
struct rank | |
: public integral_constant<std::size_t, 0> { }; | |
template<typename _Tp, std::size_t _Size> | |
struct rank<_Tp[_Size]> | |
: public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | |
template<typename _Tp> | |
struct rank<_Tp[]> | |
: public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | |
template<typename, unsigned _Uint = 0> | |
struct extent | |
: public integral_constant<size_t, 0> { }; | |
template<typename _Tp, size_t _Size> | |
struct extent<_Tp[_Size], 0> | |
: public integral_constant<size_t, _Size> { }; | |
template<typename _Tp, unsigned _Uint, size_t _Size> | |
struct extent<_Tp[_Size], _Uint> | |
: public extent<_Tp, _Uint - 1>::type { }; | |
template<typename _Tp> | |
struct extent<_Tp[], 0> | |
: public integral_constant<size_t, 0> { }; | |
template<typename _Tp, unsigned _Uint> | |
struct extent<_Tp[], _Uint> | |
: public extent<_Tp, _Uint - 1>::type { }; | |
template<typename _Tp, typename _Up> | |
struct is_same | |
: public __bool_constant<__is_same(_Tp, _Up)> | |
{ }; | |
# 1491 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
template<typename _Base, typename _Derived> | |
struct is_base_of | |
: public __bool_constant<__is_base_of(_Base, _Derived)> | |
{ }; | |
template<typename _From, typename _To> | |
struct is_convertible | |
: public __bool_constant<__is_convertible(_From, _To)> | |
{ }; | |
# 1540 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
template<typename _ToElementType, typename _FromElementType> | |
using __is_array_convertible | |
= is_convertible<_FromElementType(*)[], _ToElementType(*)[]>; | |
# 1603 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
template<typename _Tp> | |
struct remove_const | |
{ using type = _Tp; }; | |
template<typename _Tp> | |
struct remove_const<_Tp const> | |
{ using type = _Tp; }; | |
template<typename _Tp> | |
struct remove_volatile | |
{ using type = _Tp; }; | |
template<typename _Tp> | |
struct remove_volatile<_Tp volatile> | |
{ using type = _Tp; }; | |
template<typename _Tp> | |
struct remove_cv | |
{ using type = __remove_cv(_Tp); }; | |
# 1644 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
template<typename _Tp> | |
struct add_const | |
{ using type = _Tp const; }; | |
template<typename _Tp> | |
struct add_volatile | |
{ using type = _Tp volatile; }; | |
template<typename _Tp> | |
struct add_cv | |
{ using type = _Tp const volatile; }; | |
template<typename _Tp> | |
using remove_const_t = typename remove_const<_Tp>::type; | |
template<typename _Tp> | |
using remove_volatile_t = typename remove_volatile<_Tp>::type; | |
template<typename _Tp> | |
using remove_cv_t = typename remove_cv<_Tp>::type; | |
template<typename _Tp> | |
using add_const_t = typename add_const<_Tp>::type; | |
template<typename _Tp> | |
using add_volatile_t = typename add_volatile<_Tp>::type; | |
template<typename _Tp> | |
using add_cv_t = typename add_cv<_Tp>::type; | |
template<typename _Tp> | |
struct remove_reference | |
{ using type = __remove_reference(_Tp); }; | |
# 1706 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
template<typename _Tp> | |
struct add_lvalue_reference | |
{ using type = __add_lval_ref_t<_Tp>; }; | |
template<typename _Tp> | |
struct add_rvalue_reference | |
{ using type = __add_rval_ref_t<_Tp>; }; | |
template<typename _Tp> | |
using remove_reference_t = typename remove_reference<_Tp>::type; | |
template<typename _Tp> | |
using add_lvalue_reference_t = typename add_lvalue_reference<_Tp>::type; | |
template<typename _Tp> | |
using add_rvalue_reference_t = typename add_rvalue_reference<_Tp>::type; | |
template<typename _Unqualified, bool _IsConst, bool _IsVol> | |
struct __cv_selector; | |
template<typename _Unqualified> | |
struct __cv_selector<_Unqualified, false, false> | |
{ using __type = _Unqualified; }; | |
template<typename _Unqualified> | |
struct __cv_selector<_Unqualified, false, true> | |
{ using __type = volatile _Unqualified; }; | |
template<typename _Unqualified> | |
struct __cv_selector<_Unqualified, true, false> | |
{ using __type = const _Unqualified; }; | |
template<typename _Unqualified> | |
struct __cv_selector<_Unqualified, true, true> | |
{ using __type = const volatile _Unqualified; }; | |
template<typename _Qualified, typename _Unqualified, | |
bool _IsConst = is_const<_Qualified>::value, | |
bool _IsVol = is_volatile<_Qualified>::value> | |
class __match_cv_qualifiers | |
{ | |
using __match = __cv_selector<_Unqualified, _IsConst, _IsVol>; | |
public: | |
using __type = typename __match::__type; | |
}; | |
template<typename _Tp> | |
struct __make_unsigned | |
{ using __type = _Tp; }; | |
template<> | |
struct __make_unsigned<char> | |
{ using __type = unsigned char; }; | |
template<> | |
struct __make_unsigned<signed char> | |
{ using __type = unsigned char; }; | |
template<> | |
struct __make_unsigned<short> | |
{ using __type = unsigned short; }; | |
template<> | |
struct __make_unsigned<int> | |
{ using __type = unsigned int; }; | |
template<> | |
struct __make_unsigned<long> | |
{ using __type = unsigned long; }; | |
template<> | |
struct __make_unsigned<long long> | |
{ using __type = unsigned long long; }; | |
# 1819 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
template<typename _Tp, | |
bool _IsInt = is_integral<_Tp>::value, | |
bool _IsEnum = __is_enum(_Tp)> | |
class __make_unsigned_selector; | |
template<typename _Tp> | |
class __make_unsigned_selector<_Tp, true, false> | |
{ | |
using __unsigned_type | |
= typename __make_unsigned<__remove_cv_t<_Tp>>::__type; | |
public: | |
using __type | |
= typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type; | |
}; | |
class __make_unsigned_selector_base | |
{ | |
protected: | |
template<typename...> struct _List { }; | |
template<typename _Tp, typename... _Up> | |
struct _List<_Tp, _Up...> : _List<_Up...> | |
{ static constexpr size_t __size = sizeof(_Tp); }; | |
template<size_t _Sz, typename _Tp, bool = (_Sz <= _Tp::__size)> | |
struct __select; | |
template<size_t _Sz, typename _Uint, typename... _UInts> | |
struct __select<_Sz, _List<_Uint, _UInts...>, true> | |
{ using __type = _Uint; }; | |
template<size_t _Sz, typename _Uint, typename... _UInts> | |
struct __select<_Sz, _List<_Uint, _UInts...>, false> | |
: __select<_Sz, _List<_UInts...>> | |
{ }; | |
}; | |
template<typename _Tp> | |
class __make_unsigned_selector<_Tp, false, true> | |
: __make_unsigned_selector_base | |
{ | |
using _UInts = _List<unsigned char, unsigned short, unsigned int, | |
unsigned long, unsigned long long>; | |
using __unsigned_type = typename __select<sizeof(_Tp), _UInts>::__type; | |
public: | |
using __type | |
= typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type; | |
}; | |
template<> | |
struct __make_unsigned<wchar_t> | |
{ | |
using __type | |
= typename __make_unsigned_selector<wchar_t, false, true>::__type; | |
}; | |
# 1893 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
template<> | |
struct __make_unsigned<char16_t> | |
{ | |
using __type | |
= typename __make_unsigned_selector<char16_t, false, true>::__type; | |
}; | |
template<> | |
struct __make_unsigned<char32_t> | |
{ | |
using __type | |
= typename __make_unsigned_selector<char32_t, false, true>::__type; | |
}; | |
template<typename _Tp> | |
struct make_unsigned | |
{ using type = typename __make_unsigned_selector<_Tp>::__type; }; | |
template<> struct make_unsigned<bool>; | |
template<> struct make_unsigned<bool const>; | |
template<> struct make_unsigned<bool volatile>; | |
template<> struct make_unsigned<bool const volatile>; | |
template<typename _Tp> | |
struct __make_signed | |
{ using __type = _Tp; }; | |
template<> | |
struct __make_signed<char> | |
{ using __type = signed char; }; | |
template<> | |
struct __make_signed<unsigned char> | |
{ using __type = signed char; }; | |
template<> | |
struct __make_signed<unsigned short> | |
{ using __type = signed short; }; | |
template<> | |
struct __make_signed<unsigned int> | |
{ using __type = signed int; }; | |
template<> | |
struct __make_signed<unsigned long> | |
{ using __type = signed long; }; | |
template<> | |
struct __make_signed<unsigned long long> | |
{ using __type = signed long long; }; | |
# 1979 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
template<typename _Tp, | |
bool _IsInt = is_integral<_Tp>::value, | |
bool _IsEnum = __is_enum(_Tp)> | |
class __make_signed_selector; | |
template<typename _Tp> | |
class __make_signed_selector<_Tp, true, false> | |
{ | |
using __signed_type | |
= typename __make_signed<__remove_cv_t<_Tp>>::__type; | |
public: | |
using __type | |
= typename __match_cv_qualifiers<_Tp, __signed_type>::__type; | |
}; | |
template<typename _Tp> | |
class __make_signed_selector<_Tp, false, true> | |
{ | |
using __unsigned_type = typename __make_unsigned_selector<_Tp>::__type; | |
public: | |
using __type = typename __make_signed_selector<__unsigned_type>::__type; | |
}; | |
template<> | |
struct __make_signed<wchar_t> | |
{ | |
using __type | |
= typename __make_signed_selector<wchar_t, false, true>::__type; | |
}; | |
# 2025 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
template<> | |
struct __make_signed<char16_t> | |
{ | |
using __type | |
= typename __make_signed_selector<char16_t, false, true>::__type; | |
}; | |
template<> | |
struct __make_signed<char32_t> | |
{ | |
using __type | |
= typename __make_signed_selector<char32_t, false, true>::__type; | |
}; | |
template<typename _Tp> | |
struct make_signed | |
{ using type = typename __make_signed_selector<_Tp>::__type; }; | |
template<> struct make_signed<bool>; | |
template<> struct make_signed<bool const>; | |
template<> struct make_signed<bool volatile>; | |
template<> struct make_signed<bool const volatile>; | |
template<typename _Tp> | |
using make_signed_t = typename make_signed<_Tp>::type; | |
template<typename _Tp> | |
using make_unsigned_t = typename make_unsigned<_Tp>::type; | |
template<typename _Tp> | |
struct remove_extent | |
{ using type = _Tp; }; | |
template<typename _Tp, std::size_t _Size> | |
struct remove_extent<_Tp[_Size]> | |
{ using type = _Tp; }; | |
template<typename _Tp> | |
struct remove_extent<_Tp[]> | |
{ using type = _Tp; }; | |
template<typename _Tp> | |
struct remove_all_extents | |
{ using type = _Tp; }; | |
template<typename _Tp, std::size_t _Size> | |
struct remove_all_extents<_Tp[_Size]> | |
{ using type = typename remove_all_extents<_Tp>::type; }; | |
template<typename _Tp> | |
struct remove_all_extents<_Tp[]> | |
{ using type = typename remove_all_extents<_Tp>::type; }; | |
template<typename _Tp> | |
using remove_extent_t = typename remove_extent<_Tp>::type; | |
template<typename _Tp> | |
using remove_all_extents_t = typename remove_all_extents<_Tp>::type; | |
template<typename _Tp> | |
struct remove_pointer | |
{ using type = __remove_pointer(_Tp); }; | |
# 2124 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
template<typename _Tp, typename = void> | |
struct __add_pointer_helper | |
{ using type = _Tp; }; | |
template<typename _Tp> | |
struct __add_pointer_helper<_Tp, __void_t<_Tp*>> | |
{ using type = _Tp*; }; | |
template<typename _Tp> | |
struct add_pointer | |
: public __add_pointer_helper<_Tp> | |
{ }; | |
template<typename _Tp> | |
struct add_pointer<_Tp&> | |
{ using type = _Tp*; }; | |
template<typename _Tp> | |
struct add_pointer<_Tp&&> | |
{ using type = _Tp*; }; | |
template<typename _Tp> | |
using remove_pointer_t = typename remove_pointer<_Tp>::type; | |
template<typename _Tp> | |
using add_pointer_t = typename add_pointer<_Tp>::type; | |
template<std::size_t _Len> | |
struct __aligned_storage_msa | |
{ | |
union __type | |
{ | |
unsigned char __data[_Len]; | |
struct __attribute__((__aligned__)) { } __align; | |
}; | |
}; | |
# 2179 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
template<std::size_t _Len, std::size_t _Align = | |
__alignof__(typename __aligned_storage_msa<_Len>::__type)> | |
struct | |
aligned_storage | |
{ | |
union type | |
{ | |
unsigned char __data[_Len]; | |
struct __attribute__((__aligned__((_Align)))) { } __align; | |
}; | |
}; | |
template <typename... _Types> | |
struct __strictest_alignment | |
{ | |
static const size_t _S_alignment = 0; | |
static const size_t _S_size = 0; | |
}; | |
template <typename _Tp, typename... _Types> | |
struct __strictest_alignment<_Tp, _Types...> | |
{ | |
static const size_t _S_alignment = | |
alignof(_Tp) > __strictest_alignment<_Types...>::_S_alignment | |
? alignof(_Tp) : __strictest_alignment<_Types...>::_S_alignment; | |
static const size_t _S_size = | |
sizeof(_Tp) > __strictest_alignment<_Types...>::_S_size | |
? sizeof(_Tp) : __strictest_alignment<_Types...>::_S_size; | |
}; | |
#pragma GCC diagnostic push | |
#pragma GCC diagnostic ignored "-Wdeprecated-declarations" | |
# 2225 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
template <size_t _Len, typename... _Types> | |
struct | |
aligned_union | |
{ | |
private: | |
static_assert(sizeof...(_Types) != 0, "At least one type is required"); | |
using __strictest = __strictest_alignment<_Types...>; | |
static const size_t _S_len = _Len > __strictest::_S_size | |
? _Len : __strictest::_S_size; | |
public: | |
static const size_t alignment_value = __strictest::_S_alignment; | |
using type = typename aligned_storage<_S_len, alignment_value>::type; | |
}; | |
template <size_t _Len, typename... _Types> | |
const size_t aligned_union<_Len, _Types...>::alignment_value; | |
#pragma GCC diagnostic pop | |
template<typename _Up> | |
struct __decay_selector | |
: __conditional_t<is_const<const _Up>::value, | |
remove_cv<_Up>, | |
add_pointer<_Up>> | |
{ }; | |
template<typename _Up, size_t _Nm> | |
struct __decay_selector<_Up[_Nm]> | |
{ using type = _Up*; }; | |
template<typename _Up> | |
struct __decay_selector<_Up[]> | |
{ using type = _Up*; }; | |
template<typename _Tp> | |
struct decay | |
{ using type = typename __decay_selector<_Tp>::type; }; | |
template<typename _Tp> | |
struct decay<_Tp&> | |
{ using type = typename __decay_selector<_Tp>::type; }; | |
template<typename _Tp> | |
struct decay<_Tp&&> | |
{ using type = typename __decay_selector<_Tp>::type; }; | |
template<typename _Tp> | |
struct __strip_reference_wrapper | |
{ | |
using __type = _Tp; | |
}; | |
template<typename _Tp> | |
struct __strip_reference_wrapper<reference_wrapper<_Tp> > | |
{ | |
using __type = _Tp&; | |
}; | |
template<typename _Tp> | |
using __decay_t = typename decay<_Tp>::type; | |
template<typename _Tp> | |
using __decay_and_strip = __strip_reference_wrapper<__decay_t<_Tp>>; | |
template<typename... _Cond> | |
using _Require = __enable_if_t<__and_<_Cond...>::value>; | |
template<typename _Tp> | |
using __remove_cvref_t | |
= typename remove_cv<typename remove_reference<_Tp>::type>::type; | |
template<bool _Cond, typename _Iftrue, typename _Iffalse> | |
struct conditional | |
{ using type = _Iftrue; }; | |
template<typename _Iftrue, typename _Iffalse> | |
struct conditional<false, _Iftrue, _Iffalse> | |
{ using type = _Iffalse; }; | |
template<typename... _Tp> | |
struct common_type; | |
# 2340 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
template<typename _Tp> | |
struct __success_type | |
{ using type = _Tp; }; | |
struct __failure_type | |
{ }; | |
struct __do_common_type_impl | |
{ | |
template<typename _Tp, typename _Up> | |
using __cond_t | |
= decltype(true ? std::declval<_Tp>() : std::declval<_Up>()); | |
template<typename _Tp, typename _Up> | |
static __success_type<__decay_t<__cond_t<_Tp, _Up>>> | |
_S_test(int); | |
# 2367 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
template<typename, typename> | |
static __failure_type | |
_S_test_2(...); | |
template<typename _Tp, typename _Up> | |
static decltype(_S_test_2<_Tp, _Up>(0)) | |
_S_test(...); | |
}; | |
template<> | |
struct common_type<> | |
{ }; | |
template<typename _Tp0> | |
struct common_type<_Tp0> | |
: public common_type<_Tp0, _Tp0> | |
{ }; | |
template<typename _Tp1, typename _Tp2, | |
typename _Dp1 = __decay_t<_Tp1>, typename _Dp2 = __decay_t<_Tp2>> | |
struct __common_type_impl | |
{ | |
using type = common_type<_Dp1, _Dp2>; | |
}; | |
template<typename _Tp1, typename _Tp2> | |
struct __common_type_impl<_Tp1, _Tp2, _Tp1, _Tp2> | |
: private __do_common_type_impl | |
{ | |
using type = decltype(_S_test<_Tp1, _Tp2>(0)); | |
}; | |
template<typename _Tp1, typename _Tp2> | |
struct common_type<_Tp1, _Tp2> | |
: public __common_type_impl<_Tp1, _Tp2>::type | |
{ }; | |
template<typename...> | |
struct __common_type_pack | |
{ }; | |
template<typename, typename, typename = void> | |
struct __common_type_fold; | |
template<typename _Tp1, typename _Tp2, typename... _Rp> | |
struct common_type<_Tp1, _Tp2, _Rp...> | |
: public __common_type_fold<common_type<_Tp1, _Tp2>, | |
__common_type_pack<_Rp...>> | |
{ }; | |
template<typename _CTp, typename... _Rp> | |
struct __common_type_fold<_CTp, __common_type_pack<_Rp...>, | |
__void_t<typename _CTp::type>> | |
: public common_type<typename _CTp::type, _Rp...> | |
{ }; | |
template<typename _CTp, typename _Rp> | |
struct __common_type_fold<_CTp, _Rp, void> | |
{ }; | |
template<typename _Tp, bool = __is_enum(_Tp)> | |
struct __underlying_type_impl | |
{ | |
using type = __underlying_type(_Tp); | |
}; | |
template<typename _Tp> | |
struct __underlying_type_impl<_Tp, false> | |
{ }; | |
template<typename _Tp> | |
struct underlying_type | |
: public __underlying_type_impl<_Tp> | |
{ }; | |
template<typename _Tp> | |
struct __declval_protector | |
{ | |
static const bool __stop = false; | |
}; | |
template<typename _Tp> | |
auto declval() noexcept -> decltype(__declval<_Tp>(0)) | |
{ | |
static_assert(__declval_protector<_Tp>::__stop, | |
"declval() must not be used!"); | |
return __declval<_Tp>(0); | |
} | |
template<typename _Signature> | |
struct result_of; | |
struct __invoke_memfun_ref { }; | |
struct __invoke_memfun_deref { }; | |
struct __invoke_memobj_ref { }; | |
struct __invoke_memobj_deref { }; | |
struct __invoke_other { }; | |
template<typename _Tp, typename _Tag> | |
struct __result_of_success : __success_type<_Tp> | |
{ using __invoke_type = _Tag; }; | |
struct __result_of_memfun_ref_impl | |
{ | |
template<typename _Fp, typename _Tp1, typename... _Args> | |
static __result_of_success<decltype( | |
(std::declval<_Tp1>().*std::declval<_Fp>())(std::declval<_Args>()...) | |
), __invoke_memfun_ref> _S_test(int); | |
template<typename...> | |
static __failure_type _S_test(...); | |
}; | |
template<typename _MemPtr, typename _Arg, typename... _Args> | |
struct __result_of_memfun_ref | |
: private __result_of_memfun_ref_impl | |
{ | |
using type = decltype(_S_test<_MemPtr, _Arg, _Args...>(0)); | |
}; | |
struct __result_of_memfun_deref_impl | |
{ | |
template<typename _Fp, typename _Tp1, typename... _Args> | |
static __result_of_success<decltype( | |
((*std::declval<_Tp1>()).*std::declval<_Fp>())(std::declval<_Args>()...) | |
), __invoke_memfun_deref> _S_test(int); | |
template<typename...> | |
static __failure_type _S_test(...); | |
}; | |
template<typename _MemPtr, typename _Arg, typename... _Args> | |
struct __result_of_memfun_deref | |
: private __result_of_memfun_deref_impl | |
{ | |
using type = decltype(_S_test<_MemPtr, _Arg, _Args...>(0)); | |
}; | |
struct __result_of_memobj_ref_impl | |
{ | |
template<typename _Fp, typename _Tp1> | |
static __result_of_success<decltype( | |
std::declval<_Tp1>().*std::declval<_Fp>() | |
), __invoke_memobj_ref> _S_test(int); | |
template<typename, typename> | |
static __failure_type _S_test(...); | |
}; | |
template<typename _MemPtr, typename _Arg> | |
struct __result_of_memobj_ref | |
: private __result_of_memobj_ref_impl | |
{ | |
using type = decltype(_S_test<_MemPtr, _Arg>(0)); | |
}; | |
struct __result_of_memobj_deref_impl | |
{ | |
template<typename _Fp, typename _Tp1> | |
static __result_of_success<decltype( | |
(*std::declval<_Tp1>()).*std::declval<_Fp>() | |
), __invoke_memobj_deref> _S_test(int); | |
template<typename, typename> | |
static __failure_type _S_test(...); | |
}; | |
template<typename _MemPtr, typename _Arg> | |
struct __result_of_memobj_deref | |
: private __result_of_memobj_deref_impl | |
{ | |
using type = decltype(_S_test<_MemPtr, _Arg>(0)); | |
}; | |
template<typename _MemPtr, typename _Arg> | |
struct __result_of_memobj; | |
template<typename _Res, typename _Class, typename _Arg> | |
struct __result_of_memobj<_Res _Class::*, _Arg> | |
{ | |
using _Argval = __remove_cvref_t<_Arg>; | |
using _MemPtr = _Res _Class::*; | |
using type = typename __conditional_t<__or_<is_same<_Argval, _Class>, | |
is_base_of<_Class, _Argval>>::value, | |
__result_of_memobj_ref<_MemPtr, _Arg>, | |
__result_of_memobj_deref<_MemPtr, _Arg> | |
>::type; | |
}; | |
template<typename _MemPtr, typename _Arg, typename... _Args> | |
struct __result_of_memfun; | |
template<typename _Res, typename _Class, typename _Arg, typename... _Args> | |
struct __result_of_memfun<_Res _Class::*, _Arg, _Args...> | |
{ | |
using _Argval = typename remove_reference<_Arg>::type; | |
using _MemPtr = _Res _Class::*; | |
using type = typename __conditional_t<is_base_of<_Class, _Argval>::value, | |
__result_of_memfun_ref<_MemPtr, _Arg, _Args...>, | |
__result_of_memfun_deref<_MemPtr, _Arg, _Args...> | |
>::type; | |
}; | |
template<typename _Tp, typename _Up = __remove_cvref_t<_Tp>> | |
struct __inv_unwrap | |
{ | |
using type = _Tp; | |
}; | |
template<typename _Tp, typename _Up> | |
struct __inv_unwrap<_Tp, reference_wrapper<_Up>> | |
{ | |
using type = _Up&; | |
}; | |
template<bool, bool, typename _Functor, typename... _ArgTypes> | |
struct __result_of_impl | |
{ | |
using type = __failure_type; | |
}; | |
template<typename _MemPtr, typename _Arg> | |
struct __result_of_impl<true, false, _MemPtr, _Arg> | |
: public __result_of_memobj<__decay_t<_MemPtr>, | |
typename __inv_unwrap<_Arg>::type> | |
{ }; | |
template<typename _MemPtr, typename _Arg, typename... _Args> | |
struct __result_of_impl<false, true, _MemPtr, _Arg, _Args...> | |
: public __result_of_memfun<__decay_t<_MemPtr>, | |
typename __inv_unwrap<_Arg>::type, _Args...> | |
{ }; | |
struct __result_of_other_impl | |
{ | |
template<typename _Fn, typename... _Args> | |
static __result_of_success<decltype( | |
std::declval<_Fn>()(std::declval<_Args>()...) | |
), __invoke_other> _S_test(int); | |
template<typename...> | |
static __failure_type _S_test(...); | |
}; | |
template<typename _Functor, typename... _ArgTypes> | |
struct __result_of_impl<false, false, _Functor, _ArgTypes...> | |
: private __result_of_other_impl | |
{ | |
using type = decltype(_S_test<_Functor, _ArgTypes...>(0)); | |
}; | |
template<typename _Functor, typename... _ArgTypes> | |
struct __invoke_result | |
: public __result_of_impl< | |
is_member_object_pointer< | |
typename remove_reference<_Functor>::type | |
>::value, | |
is_member_function_pointer< | |
typename remove_reference<_Functor>::type | |
>::value, | |
_Functor, _ArgTypes... | |
>::type | |
{ }; | |
template<typename _Fn, typename... _Args> | |
using __invoke_result_t = typename __invoke_result<_Fn, _Args...>::type; | |
template<typename _Functor, typename... _ArgTypes> | |
struct result_of<_Functor(_ArgTypes...)> | |
: public __invoke_result<_Functor, _ArgTypes...> | |
{ } __attribute__ ((__deprecated__ ("use '" "std::invoke_result" "' instead"))); | |
#pragma GCC diagnostic push | |
#pragma GCC diagnostic ignored "-Wdeprecated-declarations" | |
template<size_t _Len, size_t _Align = | |
__alignof__(typename __aligned_storage_msa<_Len>::__type)> | |
using aligned_storage_t = typename aligned_storage<_Len, _Align>::type; | |
template <size_t _Len, typename... _Types> | |
using aligned_union_t = typename aligned_union<_Len, _Types...>::type; | |
#pragma GCC diagnostic pop | |
template<typename _Tp> | |
using decay_t = typename decay<_Tp>::type; | |
template<bool _Cond, typename _Tp = void> | |
using enable_if_t = typename enable_if<_Cond, _Tp>::type; | |
template<bool _Cond, typename _Iftrue, typename _Iffalse> | |
using conditional_t = typename conditional<_Cond, _Iftrue, _Iffalse>::type; | |
template<typename... _Tp> | |
using common_type_t = typename common_type<_Tp...>::type; | |
template<typename _Tp> | |
using underlying_type_t = typename underlying_type<_Tp>::type; | |
template<typename _Tp> | |
using result_of_t = typename result_of<_Tp>::type; | |
template<typename...> using void_t = void; | |
# 2744 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
template<typename _Default, typename _AlwaysVoid, | |
template<typename...> class _Op, typename... _Args> | |
struct __detector | |
{ | |
using type = _Default; | |
using __is_detected = false_type; | |
}; | |
template<typename _Default, template<typename...> class _Op, | |
typename... _Args> | |
struct __detector<_Default, __void_t<_Op<_Args...>>, _Op, _Args...> | |
{ | |
using type = _Op<_Args...>; | |
using __is_detected = true_type; | |
}; | |
template<typename _Default, template<typename...> class _Op, | |
typename... _Args> | |
using __detected_or = __detector<_Default, void, _Op, _Args...>; | |
template<typename _Default, template<typename...> class _Op, | |
typename... _Args> | |
using __detected_or_t | |
= typename __detected_or<_Default, _Op, _Args...>::type; | |
# 2786 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
template <typename _Tp> | |
struct __is_swappable; | |
template <typename _Tp> | |
struct __is_nothrow_swappable; | |
template<typename> | |
struct __is_tuple_like_impl : false_type | |
{ }; | |
template<typename _Tp> | |
struct __is_tuple_like | |
: public __is_tuple_like_impl<__remove_cvref_t<_Tp>>::type | |
{ }; | |
template<typename _Tp> | |
inline | |
_Require<__not_<__is_tuple_like<_Tp>>, | |
is_move_constructible<_Tp>, | |
is_move_assignable<_Tp>> | |
swap(_Tp&, _Tp&) | |
noexcept(__and_<is_nothrow_move_constructible<_Tp>, | |
is_nothrow_move_assignable<_Tp>>::value); | |
template<typename _Tp, size_t _Nm> | |
inline | |
__enable_if_t<__is_swappable<_Tp>::value> | |
swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm]) | |
noexcept(__is_nothrow_swappable<_Tp>::value); | |
namespace __swappable_details { | |
using std::swap; | |
struct __do_is_swappable_impl | |
{ | |
template<typename _Tp, typename | |
= decltype(swap(std::declval<_Tp&>(), std::declval<_Tp&>()))> | |
static true_type __test(int); | |
template<typename> | |
static false_type __test(...); | |
}; | |
struct __do_is_nothrow_swappable_impl | |
{ | |
template<typename _Tp> | |
static __bool_constant< | |
noexcept(swap(std::declval<_Tp&>(), std::declval<_Tp&>())) | |
> __test(int); | |
template<typename> | |
static false_type __test(...); | |
}; | |
} | |
template<typename _Tp> | |
struct __is_swappable_impl | |
: public __swappable_details::__do_is_swappable_impl | |
{ | |
using type = decltype(__test<_Tp>(0)); | |
}; | |
template<typename _Tp> | |
struct __is_nothrow_swappable_impl | |
: public __swappable_details::__do_is_nothrow_swappable_impl | |
{ | |
using type = decltype(__test<_Tp>(0)); | |
}; | |
template<typename _Tp> | |
struct __is_swappable | |
: public __is_swappable_impl<_Tp>::type | |
{ }; | |
template<typename _Tp> | |
struct __is_nothrow_swappable | |
: public __is_nothrow_swappable_impl<_Tp>::type | |
{ }; | |
template<typename _Tp> | |
struct is_swappable | |
: public __is_swappable_impl<_Tp>::type | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | |
"template argument must be a complete class or an unbounded array"); | |
}; | |
template<typename _Tp> | |
struct is_nothrow_swappable | |
: public __is_nothrow_swappable_impl<_Tp>::type | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | |
"template argument must be a complete class or an unbounded array"); | |
}; | |
template<typename _Tp> | |
inline constexpr bool is_swappable_v = | |
is_swappable<_Tp>::value; | |
template<typename _Tp> | |
inline constexpr bool is_nothrow_swappable_v = | |
is_nothrow_swappable<_Tp>::value; | |
namespace __swappable_with_details { | |
using std::swap; | |
struct __do_is_swappable_with_impl | |
{ | |
template<typename _Tp, typename _Up, typename | |
= decltype(swap(std::declval<_Tp>(), std::declval<_Up>())), | |
typename | |
= decltype(swap(std::declval<_Up>(), std::declval<_Tp>()))> | |
static true_type __test(int); | |
template<typename, typename> | |
static false_type __test(...); | |
}; | |
struct __do_is_nothrow_swappable_with_impl | |
{ | |
template<typename _Tp, typename _Up> | |
static __bool_constant< | |
noexcept(swap(std::declval<_Tp>(), std::declval<_Up>())) | |
&& | |
noexcept(swap(std::declval<_Up>(), std::declval<_Tp>())) | |
> __test(int); | |
template<typename, typename> | |
static false_type __test(...); | |
}; | |
} | |
template<typename _Tp, typename _Up> | |
struct __is_swappable_with_impl | |
: public __swappable_with_details::__do_is_swappable_with_impl | |
{ | |
using type = decltype(__test<_Tp, _Up>(0)); | |
}; | |
template<typename _Tp> | |
struct __is_swappable_with_impl<_Tp&, _Tp&> | |
: public __swappable_details::__do_is_swappable_impl | |
{ | |
using type = decltype(__test<_Tp&>(0)); | |
}; | |
template<typename _Tp, typename _Up> | |
struct __is_nothrow_swappable_with_impl | |
: public __swappable_with_details::__do_is_nothrow_swappable_with_impl | |
{ | |
using type = decltype(__test<_Tp, _Up>(0)); | |
}; | |
template<typename _Tp> | |
struct __is_nothrow_swappable_with_impl<_Tp&, _Tp&> | |
: public __swappable_details::__do_is_nothrow_swappable_impl | |
{ | |
using type = decltype(__test<_Tp&>(0)); | |
}; | |
template<typename _Tp, typename _Up> | |
struct is_swappable_with | |
: public __is_swappable_with_impl<_Tp, _Up>::type | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | |
"first template argument must be a complete class or an unbounded array"); | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Up>{}), | |
"second template argument must be a complete class or an unbounded array"); | |
}; | |
template<typename _Tp, typename _Up> | |
struct is_nothrow_swappable_with | |
: public __is_nothrow_swappable_with_impl<_Tp, _Up>::type | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | |
"first template argument must be a complete class or an unbounded array"); | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Up>{}), | |
"second template argument must be a complete class or an unbounded array"); | |
}; | |
template<typename _Tp, typename _Up> | |
inline constexpr bool is_swappable_with_v = | |
is_swappable_with<_Tp, _Up>::value; | |
template<typename _Tp, typename _Up> | |
inline constexpr bool is_nothrow_swappable_with_v = | |
is_nothrow_swappable_with<_Tp, _Up>::value; | |
# 3008 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
template<typename _Result, typename _Ret, | |
bool = is_void<_Ret>::value, typename = void> | |
struct __is_invocable_impl | |
: false_type | |
{ | |
using __nothrow_conv = false_type; | |
}; | |
template<typename _Result, typename _Ret> | |
struct __is_invocable_impl<_Result, _Ret, | |
true, | |
__void_t<typename _Result::type>> | |
: true_type | |
{ | |
using __nothrow_conv = true_type; | |
}; | |
#pragma GCC diagnostic push | |
#pragma GCC diagnostic ignored "-Wctor-dtor-privacy" | |
template<typename _Result, typename _Ret> | |
struct __is_invocable_impl<_Result, _Ret, | |
false, | |
__void_t<typename _Result::type>> | |
{ | |
private: | |
using _Res_t = typename _Result::type; | |
static _Res_t _S_get() noexcept; | |
template<typename _Tp> | |
static void _S_conv(__type_identity_t<_Tp>) noexcept; | |
template<typename _Tp, | |
bool _Nothrow = noexcept(_S_conv<_Tp>(_S_get())), | |
typename = decltype(_S_conv<_Tp>(_S_get())), | |
bool _Dangle = __reference_converts_from_temporary(_Tp, _Res_t) | |
> | |
static __bool_constant<_Nothrow && !_Dangle> | |
_S_test(int); | |
template<typename _Tp, bool = false> | |
static false_type | |
_S_test(...); | |
public: | |
using type = decltype(_S_test<_Ret, true>(1)); | |
using __nothrow_conv = decltype(_S_test<_Ret>(1)); | |
}; | |
#pragma GCC diagnostic pop | |
template<typename _Fn, typename... _ArgTypes> | |
struct __is_invocable | |
: __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>::type | |
{ }; | |
template<typename _Fn, typename _Tp, typename... _Args> | |
constexpr bool __call_is_nt(__invoke_memfun_ref) | |
{ | |
using _Up = typename __inv_unwrap<_Tp>::type; | |
return noexcept((std::declval<_Up>().*std::declval<_Fn>())( | |
std::declval<_Args>()...)); | |
} | |
template<typename _Fn, typename _Tp, typename... _Args> | |
constexpr bool __call_is_nt(__invoke_memfun_deref) | |
{ | |
return noexcept(((*std::declval<_Tp>()).*std::declval<_Fn>())( | |
std::declval<_Args>()...)); | |
} | |
template<typename _Fn, typename _Tp> | |
constexpr bool __call_is_nt(__invoke_memobj_ref) | |
{ | |
using _Up = typename __inv_unwrap<_Tp>::type; | |
return noexcept(std::declval<_Up>().*std::declval<_Fn>()); | |
} | |
template<typename _Fn, typename _Tp> | |
constexpr bool __call_is_nt(__invoke_memobj_deref) | |
{ | |
return noexcept((*std::declval<_Tp>()).*std::declval<_Fn>()); | |
} | |
template<typename _Fn, typename... _Args> | |
constexpr bool __call_is_nt(__invoke_other) | |
{ | |
return noexcept(std::declval<_Fn>()(std::declval<_Args>()...)); | |
} | |
template<typename _Result, typename _Fn, typename... _Args> | |
struct __call_is_nothrow | |
: __bool_constant< | |
std::__call_is_nt<_Fn, _Args...>(typename _Result::__invoke_type{}) | |
> | |
{ }; | |
template<typename _Fn, typename... _Args> | |
using __call_is_nothrow_ | |
= __call_is_nothrow<__invoke_result<_Fn, _Args...>, _Fn, _Args...>; | |
template<typename _Fn, typename... _Args> | |
struct __is_nothrow_invocable | |
: __and_<__is_invocable<_Fn, _Args...>, | |
__call_is_nothrow_<_Fn, _Args...>>::type | |
{ }; | |
#pragma GCC diagnostic push | |
#pragma GCC diagnostic ignored "-Wctor-dtor-privacy" | |
struct __nonesuchbase {}; | |
struct __nonesuch : private __nonesuchbase { | |
~__nonesuch() = delete; | |
__nonesuch(__nonesuch const&) = delete; | |
void operator=(__nonesuch const&) = delete; | |
}; | |
#pragma GCC diagnostic pop | |
template<typename _Functor, typename... _ArgTypes> | |
struct invoke_result | |
: public __invoke_result<_Functor, _ArgTypes...> | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Functor>{}), | |
"_Functor must be a complete class or an unbounded array"); | |
static_assert((std::__is_complete_or_unbounded( | |
__type_identity<_ArgTypes>{}) && ...), | |
"each argument type must be a complete class or an unbounded array"); | |
}; | |
template<typename _Fn, typename... _Args> | |
using invoke_result_t = typename invoke_result<_Fn, _Args...>::type; | |
template<typename _Fn, typename... _ArgTypes> | |
struct is_invocable | |
: __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>::type | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), | |
"_Fn must be a complete class or an unbounded array"); | |
static_assert((std::__is_complete_or_unbounded( | |
__type_identity<_ArgTypes>{}) && ...), | |
"each argument type must be a complete class or an unbounded array"); | |
}; | |
template<typename _Ret, typename _Fn, typename... _ArgTypes> | |
struct is_invocable_r | |
: __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, _Ret>::type | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), | |
"_Fn must be a complete class or an unbounded array"); | |
static_assert((std::__is_complete_or_unbounded( | |
__type_identity<_ArgTypes>{}) && ...), | |
"each argument type must be a complete class or an unbounded array"); | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Ret>{}), | |
"_Ret must be a complete class or an unbounded array"); | |
}; | |
template<typename _Fn, typename... _ArgTypes> | |
struct is_nothrow_invocable | |
: __and_<__is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>, | |
__call_is_nothrow_<_Fn, _ArgTypes...>>::type | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), | |
"_Fn must be a complete class or an unbounded array"); | |
static_assert((std::__is_complete_or_unbounded( | |
__type_identity<_ArgTypes>{}) && ...), | |
"each argument type must be a complete class or an unbounded array"); | |
}; | |
template<typename _Result, typename _Ret> | |
using __is_nt_invocable_impl | |
= typename __is_invocable_impl<_Result, _Ret>::__nothrow_conv; | |
template<typename _Ret, typename _Fn, typename... _ArgTypes> | |
struct is_nothrow_invocable_r | |
: __and_<__is_nt_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, _Ret>, | |
__call_is_nothrow_<_Fn, _ArgTypes...>>::type | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), | |
"_Fn must be a complete class or an unbounded array"); | |
static_assert((std::__is_complete_or_unbounded( | |
__type_identity<_ArgTypes>{}) && ...), | |
"each argument type must be a complete class or an unbounded array"); | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Ret>{}), | |
"_Ret must be a complete class or an unbounded array"); | |
}; | |
# 3236 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
template <typename _Tp> | |
inline constexpr bool is_void_v = is_void<_Tp>::value; | |
template <typename _Tp> | |
inline constexpr bool is_null_pointer_v = is_null_pointer<_Tp>::value; | |
template <typename _Tp> | |
inline constexpr bool is_integral_v = is_integral<_Tp>::value; | |
template <typename _Tp> | |
inline constexpr bool is_floating_point_v = is_floating_point<_Tp>::value; | |
template <typename _Tp> | |
inline constexpr bool is_array_v = __is_array(_Tp); | |
# 3257 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
template <typename _Tp> | |
inline constexpr bool is_pointer_v = is_pointer<_Tp>::value; | |
template <typename _Tp> | |
inline constexpr bool is_lvalue_reference_v = false; | |
template <typename _Tp> | |
inline constexpr bool is_lvalue_reference_v<_Tp&> = true; | |
template <typename _Tp> | |
inline constexpr bool is_rvalue_reference_v = false; | |
template <typename _Tp> | |
inline constexpr bool is_rvalue_reference_v<_Tp&&> = true; | |
template <typename _Tp> | |
inline constexpr bool is_member_object_pointer_v = | |
__is_member_object_pointer(_Tp); | |
template <typename _Tp> | |
inline constexpr bool is_member_function_pointer_v = | |
__is_member_function_pointer(_Tp); | |
template <typename _Tp> | |
inline constexpr bool is_enum_v = __is_enum(_Tp); | |
template <typename _Tp> | |
inline constexpr bool is_union_v = __is_union(_Tp); | |
template <typename _Tp> | |
inline constexpr bool is_class_v = __is_class(_Tp); | |
template <typename _Tp> | |
inline constexpr bool is_reference_v = __is_reference(_Tp); | |
# 3308 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
template <typename _Tp> | |
inline constexpr bool is_arithmetic_v = is_arithmetic<_Tp>::value; | |
template <typename _Tp> | |
inline constexpr bool is_fundamental_v = is_fundamental<_Tp>::value; | |
template <typename _Tp> | |
inline constexpr bool is_object_v = __is_object(_Tp); | |
template <typename _Tp> | |
inline constexpr bool is_scalar_v = is_scalar<_Tp>::value; | |
template <typename _Tp> | |
inline constexpr bool is_compound_v = !is_fundamental_v<_Tp>; | |
template <typename _Tp> | |
inline constexpr bool is_member_pointer_v = __is_member_pointer(_Tp); | |
template <typename _Tp> | |
inline constexpr bool is_const_v = false; | |
template <typename _Tp> | |
inline constexpr bool is_const_v<const _Tp> = true; | |
template <typename _Tp> | |
inline constexpr bool is_function_v = __is_function(_Tp); | |
# 3351 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
template <typename _Tp> | |
inline constexpr bool is_volatile_v = false; | |
template <typename _Tp> | |
inline constexpr bool is_volatile_v<volatile _Tp> = true; | |
template <typename _Tp> | |
inline constexpr bool is_trivial_v = __is_trivial(_Tp); | |
template <typename _Tp> | |
inline constexpr bool is_trivially_copyable_v = __is_trivially_copyable(_Tp); | |
template <typename _Tp> | |
inline constexpr bool is_standard_layout_v = __is_standard_layout(_Tp); | |
template <typename _Tp> | |
inline constexpr bool is_pod_v = __is_pod(_Tp); | |
template <typename _Tp> | |
[[__deprecated__]] | |
inline constexpr bool is_literal_type_v = __is_literal_type(_Tp); | |
template <typename _Tp> | |
inline constexpr bool is_empty_v = __is_empty(_Tp); | |
template <typename _Tp> | |
inline constexpr bool is_polymorphic_v = __is_polymorphic(_Tp); | |
template <typename _Tp> | |
inline constexpr bool is_abstract_v = __is_abstract(_Tp); | |
template <typename _Tp> | |
inline constexpr bool is_final_v = __is_final(_Tp); | |
template <typename _Tp> | |
inline constexpr bool is_signed_v = is_signed<_Tp>::value; | |
template <typename _Tp> | |
inline constexpr bool is_unsigned_v = is_unsigned<_Tp>::value; | |
template <typename _Tp, typename... _Args> | |
inline constexpr bool is_constructible_v = __is_constructible(_Tp, _Args...); | |
template <typename _Tp> | |
inline constexpr bool is_default_constructible_v = __is_constructible(_Tp); | |
template <typename _Tp> | |
inline constexpr bool is_copy_constructible_v | |
= __is_constructible(_Tp, __add_lval_ref_t<const _Tp>); | |
template <typename _Tp> | |
inline constexpr bool is_move_constructible_v | |
= __is_constructible(_Tp, __add_rval_ref_t<_Tp>); | |
template <typename _Tp, typename _Up> | |
inline constexpr bool is_assignable_v = __is_assignable(_Tp, _Up); | |
template <typename _Tp> | |
inline constexpr bool is_copy_assignable_v | |
= __is_assignable(__add_lval_ref_t<_Tp>, __add_lval_ref_t<const _Tp>); | |
template <typename _Tp> | |
inline constexpr bool is_move_assignable_v | |
= __is_assignable(__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>); | |
template <typename _Tp> | |
inline constexpr bool is_destructible_v = is_destructible<_Tp>::value; | |
template <typename _Tp, typename... _Args> | |
inline constexpr bool is_trivially_constructible_v | |
= __is_trivially_constructible(_Tp, _Args...); | |
template <typename _Tp> | |
inline constexpr bool is_trivially_default_constructible_v | |
= __is_trivially_constructible(_Tp); | |
template <typename _Tp> | |
inline constexpr bool is_trivially_copy_constructible_v | |
= __is_trivially_constructible(_Tp, __add_lval_ref_t<const _Tp>); | |
template <typename _Tp> | |
inline constexpr bool is_trivially_move_constructible_v | |
= __is_trivially_constructible(_Tp, __add_rval_ref_t<_Tp>); | |
template <typename _Tp, typename _Up> | |
inline constexpr bool is_trivially_assignable_v | |
= __is_trivially_assignable(_Tp, _Up); | |
template <typename _Tp> | |
inline constexpr bool is_trivially_copy_assignable_v | |
= __is_trivially_assignable(__add_lval_ref_t<_Tp>, | |
__add_lval_ref_t<const _Tp>); | |
template <typename _Tp> | |
inline constexpr bool is_trivially_move_assignable_v | |
= __is_trivially_assignable(__add_lval_ref_t<_Tp>, | |
__add_rval_ref_t<_Tp>); | |
# 3446 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
template <typename _Tp> | |
inline constexpr bool is_trivially_destructible_v = | |
is_trivially_destructible<_Tp>::value; | |
template <typename _Tp, typename... _Args> | |
inline constexpr bool is_nothrow_constructible_v | |
= __is_nothrow_constructible(_Tp, _Args...); | |
template <typename _Tp> | |
inline constexpr bool is_nothrow_default_constructible_v | |
= __is_nothrow_constructible(_Tp); | |
template <typename _Tp> | |
inline constexpr bool is_nothrow_copy_constructible_v | |
= __is_nothrow_constructible(_Tp, __add_lval_ref_t<const _Tp>); | |
template <typename _Tp> | |
inline constexpr bool is_nothrow_move_constructible_v | |
= __is_nothrow_constructible(_Tp, __add_rval_ref_t<_Tp>); | |
template <typename _Tp, typename _Up> | |
inline constexpr bool is_nothrow_assignable_v | |
= __is_nothrow_assignable(_Tp, _Up); | |
template <typename _Tp> | |
inline constexpr bool is_nothrow_copy_assignable_v | |
= __is_nothrow_assignable(__add_lval_ref_t<_Tp>, | |
__add_lval_ref_t<const _Tp>); | |
template <typename _Tp> | |
inline constexpr bool is_nothrow_move_assignable_v | |
= __is_nothrow_assignable(__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>); | |
template <typename _Tp> | |
inline constexpr bool is_nothrow_destructible_v = | |
is_nothrow_destructible<_Tp>::value; | |
template <typename _Tp> | |
inline constexpr bool has_virtual_destructor_v | |
= __has_virtual_destructor(_Tp); | |
template <typename _Tp> | |
inline constexpr size_t alignment_of_v = alignment_of<_Tp>::value; | |
template <typename _Tp> | |
inline constexpr size_t rank_v = 0; | |
template <typename _Tp, size_t _Size> | |
inline constexpr size_t rank_v<_Tp[_Size]> = 1 + rank_v<_Tp>; | |
template <typename _Tp> | |
inline constexpr size_t rank_v<_Tp[]> = 1 + rank_v<_Tp>; | |
template <typename _Tp, unsigned _Idx = 0> | |
inline constexpr size_t extent_v = 0; | |
template <typename _Tp, size_t _Size> | |
inline constexpr size_t extent_v<_Tp[_Size], 0> = _Size; | |
template <typename _Tp, unsigned _Idx, size_t _Size> | |
inline constexpr size_t extent_v<_Tp[_Size], _Idx> = extent_v<_Tp, _Idx - 1>; | |
template <typename _Tp> | |
inline constexpr size_t extent_v<_Tp[], 0> = 0; | |
template <typename _Tp, unsigned _Idx> | |
inline constexpr size_t extent_v<_Tp[], _Idx> = extent_v<_Tp, _Idx - 1>; | |
template <typename _Tp, typename _Up> | |
inline constexpr bool is_same_v = __is_same(_Tp, _Up); | |
template <typename _Base, typename _Derived> | |
inline constexpr bool is_base_of_v = __is_base_of(_Base, _Derived); | |
template <typename _From, typename _To> | |
inline constexpr bool is_convertible_v = __is_convertible(_From, _To); | |
template<typename _Fn, typename... _Args> | |
inline constexpr bool is_invocable_v = is_invocable<_Fn, _Args...>::value; | |
template<typename _Fn, typename... _Args> | |
inline constexpr bool is_nothrow_invocable_v | |
= is_nothrow_invocable<_Fn, _Args...>::value; | |
template<typename _Ret, typename _Fn, typename... _Args> | |
inline constexpr bool is_invocable_r_v | |
= is_invocable_r<_Ret, _Fn, _Args...>::value; | |
template<typename _Ret, typename _Fn, typename... _Args> | |
inline constexpr bool is_nothrow_invocable_r_v | |
= is_nothrow_invocable_r<_Ret, _Fn, _Args...>::value; | |
template<typename _Tp> | |
struct has_unique_object_representations | |
: bool_constant<__has_unique_object_representations( | |
remove_cv_t<remove_all_extents_t<_Tp>> | |
)> | |
{ | |
static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | |
"template argument must be a complete class or an unbounded array"); | |
}; | |
template<typename _Tp> | |
inline constexpr bool has_unique_object_representations_v | |
= has_unique_object_representations<_Tp>::value; | |
template<typename _Tp> | |
struct is_aggregate | |
: bool_constant<__is_aggregate(remove_cv_t<_Tp>)> | |
{ }; | |
template<typename _Tp> | |
inline constexpr bool is_aggregate_v = __is_aggregate(remove_cv_t<_Tp>); | |
# 4002 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/type_traits" 3 | |
} | |
# 14 "/usr/include/qt6/QtCore/qglobal.h" 2 3 4 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/cstddef" 1 3 4 | |
# 42 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/cstddef" 3 4 | |
# 43 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/cstddef" 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/stddef.h" 1 3 4 | |
# 145 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/stddef.h" 3 4 | |
typedef long int ptrdiff_t; | |
# 214 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/stddef.h" 3 4 | |
typedef long unsigned int size_t; | |
# 425 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/stddef.h" 3 4 | |
typedef struct { | |
long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); | |
long double __max_align_ld __attribute__((__aligned__(__alignof__(long double)))); | |
# 436 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/stddef.h" 3 4 | |
} max_align_t; | |
typedef decltype(nullptr) nullptr_t; | |
# 51 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/cstddef" 2 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 1 3 | |
# 47 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 3 | |
# 48 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 3 | |
# 54 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/cstddef" 2 3 | |
extern "C++" | |
{ | |
namespace std | |
{ | |
using ::max_align_t; | |
} | |
namespace std | |
{ | |
enum class byte : unsigned char {}; | |
template<typename _IntegerType> struct __byte_operand { }; | |
template<> struct __byte_operand<bool> { using __type = byte; }; | |
template<> struct __byte_operand<char> { using __type = byte; }; | |
template<> struct __byte_operand<signed char> { using __type = byte; }; | |
template<> struct __byte_operand<unsigned char> { using __type = byte; }; | |
template<> struct __byte_operand<wchar_t> { using __type = byte; }; | |
template<> struct __byte_operand<char16_t> { using __type = byte; }; | |
template<> struct __byte_operand<char32_t> { using __type = byte; }; | |
template<> struct __byte_operand<short> { using __type = byte; }; | |
template<> struct __byte_operand<unsigned short> { using __type = byte; }; | |
template<> struct __byte_operand<int> { using __type = byte; }; | |
template<> struct __byte_operand<unsigned int> { using __type = byte; }; | |
template<> struct __byte_operand<long> { using __type = byte; }; | |
template<> struct __byte_operand<unsigned long> { using __type = byte; }; | |
template<> struct __byte_operand<long long> { using __type = byte; }; | |
template<> struct __byte_operand<unsigned long long> { using __type = byte; }; | |
# 109 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/cstddef" 3 | |
template<typename _IntegerType> | |
struct __byte_operand<const _IntegerType> | |
: __byte_operand<_IntegerType> { }; | |
template<typename _IntegerType> | |
struct __byte_operand<volatile _IntegerType> | |
: __byte_operand<_IntegerType> { }; | |
template<typename _IntegerType> | |
struct __byte_operand<const volatile _IntegerType> | |
: __byte_operand<_IntegerType> { }; | |
template<typename _IntegerType> | |
using __byte_op_t = typename __byte_operand<_IntegerType>::__type; | |
template<typename _IntegerType> | |
[[__gnu__::__always_inline__]] | |
constexpr __byte_op_t<_IntegerType> | |
operator<<(byte __b, _IntegerType __shift) noexcept | |
{ return (byte)(unsigned char)((unsigned)__b << __shift); } | |
template<typename _IntegerType> | |
[[__gnu__::__always_inline__]] | |
constexpr __byte_op_t<_IntegerType> | |
operator>>(byte __b, _IntegerType __shift) noexcept | |
{ return (byte)(unsigned char)((unsigned)__b >> __shift); } | |
[[__gnu__::__always_inline__]] | |
constexpr byte | |
operator|(byte __l, byte __r) noexcept | |
{ return (byte)(unsigned char)((unsigned)__l | (unsigned)__r); } | |
[[__gnu__::__always_inline__]] | |
constexpr byte | |
operator&(byte __l, byte __r) noexcept | |
{ return (byte)(unsigned char)((unsigned)__l & (unsigned)__r); } | |
[[__gnu__::__always_inline__]] | |
constexpr byte | |
operator^(byte __l, byte __r) noexcept | |
{ return (byte)(unsigned char)((unsigned)__l ^ (unsigned)__r); } | |
[[__gnu__::__always_inline__]] | |
constexpr byte | |
operator~(byte __b) noexcept | |
{ return (byte)(unsigned char)~(unsigned)__b; } | |
template<typename _IntegerType> | |
[[__gnu__::__always_inline__]] | |
constexpr __byte_op_t<_IntegerType>& | |
operator<<=(byte& __b, _IntegerType __shift) noexcept | |
{ return __b = __b << __shift; } | |
template<typename _IntegerType> | |
[[__gnu__::__always_inline__]] | |
constexpr __byte_op_t<_IntegerType>& | |
operator>>=(byte& __b, _IntegerType __shift) noexcept | |
{ return __b = __b >> __shift; } | |
[[__gnu__::__always_inline__]] | |
constexpr byte& | |
operator|=(byte& __l, byte __r) noexcept | |
{ return __l = __l | __r; } | |
[[__gnu__::__always_inline__]] | |
constexpr byte& | |
operator&=(byte& __l, byte __r) noexcept | |
{ return __l = __l & __r; } | |
[[__gnu__::__always_inline__]] | |
constexpr byte& | |
operator^=(byte& __l, byte __r) noexcept | |
{ return __l = __l ^ __r; } | |
template<typename _IntegerType> | |
[[nodiscard,__gnu__::__always_inline__]] | |
constexpr _IntegerType | |
to_integer(__byte_op_t<_IntegerType> __b) noexcept | |
{ return _IntegerType(__b); } | |
} | |
} | |
# 15 "/usr/include/qt6/QtCore/qglobal.h" 2 3 4 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/utility" 1 3 4 | |
# 58 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/utility" 3 4 | |
# 59 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/utility" 3 | |
# 68 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/utility" 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_relops.h" 1 3 | |
# 62 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_relops.h" 3 | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
namespace rel_ops | |
{ | |
# 86 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_relops.h" 3 | |
template <class _Tp> | |
inline bool | |
operator!=(const _Tp& __x, const _Tp& __y) | |
{ return !(__x == __y); } | |
# 99 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_relops.h" 3 | |
template <class _Tp> | |
inline bool | |
operator>(const _Tp& __x, const _Tp& __y) | |
{ return __y < __x; } | |
# 112 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_relops.h" 3 | |
template <class _Tp> | |
inline bool | |
operator<=(const _Tp& __x, const _Tp& __y) | |
{ return !(__y < __x); } | |
# 125 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_relops.h" 3 | |
template <class _Tp> | |
inline bool | |
operator>=(const _Tp& __x, const _Tp& __y) | |
{ return !(__x < __y); } | |
} | |
} | |
# 69 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/utility" 2 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_pair.h" 1 3 | |
# 61 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_pair.h" 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/move.h" 1 3 | |
# 40 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/move.h" 3 | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
template<typename _Tp> | |
inline constexpr _Tp* | |
__addressof(_Tp& __r) noexcept | |
{ return __builtin_addressof(__r); } | |
# 67 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/move.h" 3 | |
template<typename _Tp> | |
[[__nodiscard__]] | |
constexpr _Tp&& | |
forward(typename std::remove_reference<_Tp>::type& __t) noexcept | |
{ return static_cast<_Tp&&>(__t); } | |
template<typename _Tp> | |
[[__nodiscard__]] | |
constexpr _Tp&& | |
forward(typename std::remove_reference<_Tp>::type&& __t) noexcept | |
{ | |
static_assert(!std::is_lvalue_reference<_Tp>::value, | |
"std::forward must not be used to convert an rvalue to an lvalue"); | |
return static_cast<_Tp&&>(__t); | |
} | |
# 123 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/move.h" 3 | |
template<typename _Tp> | |
[[__nodiscard__]] | |
constexpr typename std::remove_reference<_Tp>::type&& | |
move(_Tp&& __t) noexcept | |
{ return static_cast<typename std::remove_reference<_Tp>::type&&>(__t); } | |
template<typename _Tp> | |
struct __move_if_noexcept_cond | |
: public __and_<__not_<is_nothrow_move_constructible<_Tp>>, | |
is_copy_constructible<_Tp>>::type { }; | |
# 143 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/move.h" 3 | |
template<typename _Tp> | |
[[__nodiscard__]] | |
constexpr | |
__conditional_t<__move_if_noexcept_cond<_Tp>::value, const _Tp&, _Tp&&> | |
move_if_noexcept(_Tp& __x) noexcept | |
{ return std::move(__x); } | |
# 159 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/move.h" 3 | |
template<typename _Tp> | |
[[__nodiscard__]] | |
inline constexpr _Tp* | |
addressof(_Tp& __r) noexcept | |
{ return std::__addressof(__r); } | |
template<typename _Tp> | |
const _Tp* addressof(const _Tp&&) = delete; | |
template <typename _Tp, typename _Up = _Tp> | |
inline _Tp | |
__exchange(_Tp& __obj, _Up&& __new_val) | |
{ | |
_Tp __old_val = std::move(__obj); | |
__obj = std::forward<_Up>(__new_val); | |
return __old_val; | |
} | |
# 203 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/move.h" 3 | |
template<typename _Tp> | |
inline | |
typename enable_if<__and_<__not_<__is_tuple_like<_Tp>>, | |
is_move_constructible<_Tp>, | |
is_move_assignable<_Tp>>::value>::type | |
swap(_Tp& __a, _Tp& __b) | |
noexcept(__and_<is_nothrow_move_constructible<_Tp>, is_nothrow_move_assignable<_Tp>>::value) | |
{ | |
_Tp __tmp = std::move(__a); | |
__a = std::move(__b); | |
__b = std::move(__tmp); | |
} | |
template<typename _Tp, size_t _Nm> | |
inline | |
typename enable_if<__is_swappable<_Tp>::value>::type | |
swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm]) | |
noexcept(__is_nothrow_swappable<_Tp>::value) | |
{ | |
for (size_t __n = 0; __n < _Nm; ++__n) | |
swap(__a[__n], __b[__n]); | |
} | |
} | |
# 62 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_pair.h" 2 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/utility.h" 1 3 | |
# 36 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/utility.h" 3 | |
# 37 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/utility.h" 3 | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
template<typename _Tp> | |
struct tuple_size; | |
template<typename _Tp, | |
typename _Up = typename remove_cv<_Tp>::type, | |
typename = typename enable_if<is_same<_Tp, _Up>::value>::type, | |
size_t = tuple_size<_Tp>::value> | |
using __enable_if_has_tuple_size = _Tp; | |
template<typename _Tp> | |
struct tuple_size<const __enable_if_has_tuple_size<_Tp>> | |
: public tuple_size<_Tp> { }; | |
template<typename _Tp> | |
struct tuple_size<volatile __enable_if_has_tuple_size<_Tp>> | |
: public tuple_size<_Tp> { }; | |
template<typename _Tp> | |
struct tuple_size<const volatile __enable_if_has_tuple_size<_Tp>> | |
: public tuple_size<_Tp> { }; | |
template<typename _Tp> | |
inline constexpr size_t tuple_size_v = tuple_size<_Tp>::value; | |
template<size_t __i, typename _Tp> | |
struct tuple_element; | |
template<size_t __i, typename _Tp> | |
using __tuple_element_t = typename tuple_element<__i, _Tp>::type; | |
template<size_t __i, typename _Tp> | |
struct tuple_element<__i, const _Tp> | |
{ | |
using type = const __tuple_element_t<__i, _Tp>; | |
}; | |
template<size_t __i, typename _Tp> | |
struct tuple_element<__i, volatile _Tp> | |
{ | |
using type = volatile __tuple_element_t<__i, _Tp>; | |
}; | |
template<size_t __i, typename _Tp> | |
struct tuple_element<__i, const volatile _Tp> | |
{ | |
using type = const volatile __tuple_element_t<__i, _Tp>; | |
}; | |
template<typename _Tp, typename... _Types> | |
constexpr size_t | |
__find_uniq_type_in_pack() | |
{ | |
constexpr size_t __sz = sizeof...(_Types); | |
constexpr bool __found[__sz] = { __is_same(_Tp, _Types) ... }; | |
size_t __n = __sz; | |
for (size_t __i = 0; __i < __sz; ++__i) | |
{ | |
if (__found[__i]) | |
{ | |
if (__n < __sz) | |
return __sz; | |
__n = __i; | |
} | |
} | |
return __n; | |
} | |
# 134 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/utility.h" 3 | |
template<size_t __i, typename _Tp> | |
using tuple_element_t = typename tuple_element<__i, _Tp>::type; | |
template<size_t... _Indexes> struct _Index_tuple { }; | |
template<size_t _Num> | |
struct _Build_index_tuple | |
{ | |
# 154 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/utility.h" 3 | |
using __type = _Index_tuple<__integer_pack(_Num)...>; | |
}; | |
template<typename _Tp, _Tp... _Idx> | |
struct integer_sequence | |
{ | |
typedef _Tp value_type; | |
static constexpr size_t size() noexcept { return sizeof...(_Idx); } | |
}; | |
template<typename _Tp, _Tp _Num> | |
using make_integer_sequence | |
= integer_sequence<_Tp, __integer_pack(_Num)...>; | |
template<size_t... _Idx> | |
using index_sequence = integer_sequence<size_t, _Idx...>; | |
template<size_t _Num> | |
using make_index_sequence = make_integer_sequence<size_t, _Num>; | |
template<typename... _Types> | |
using index_sequence_for = make_index_sequence<sizeof...(_Types)>; | |
struct in_place_t { | |
explicit in_place_t() = default; | |
}; | |
inline constexpr in_place_t in_place{}; | |
template<typename _Tp> struct in_place_type_t | |
{ | |
explicit in_place_type_t() = default; | |
}; | |
template<typename _Tp> | |
inline constexpr in_place_type_t<_Tp> in_place_type{}; | |
template<size_t _Idx> struct in_place_index_t | |
{ | |
explicit in_place_index_t() = default; | |
}; | |
template<size_t _Idx> | |
inline constexpr in_place_index_t<_Idx> in_place_index{}; | |
template<typename> | |
inline constexpr bool __is_in_place_type_v = false; | |
template<typename _Tp> | |
inline constexpr bool __is_in_place_type_v<in_place_type_t<_Tp>> = true; | |
template<typename _Tp> | |
using __is_in_place_type = bool_constant<__is_in_place_type_v<_Tp>>; | |
template<typename> | |
inline constexpr bool __is_in_place_index_v = false; | |
template<size_t _Nm> | |
inline constexpr bool __is_in_place_index_v<in_place_index_t<_Nm>> = true; | |
template<size_t _Np, typename... _Types> | |
struct _Nth_type | |
{ using type = __type_pack_element<_Np, _Types...>; }; | |
# 283 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/utility.h" 3 | |
} | |
# 63 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_pair.h" 2 3 | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
# 79 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_pair.h" 3 | |
struct piecewise_construct_t { explicit piecewise_construct_t() = default; }; | |
inline constexpr piecewise_construct_t piecewise_construct = | |
piecewise_construct_t(); | |
template<typename _T1, typename _T2> | |
struct pair; | |
template<typename...> | |
class tuple; | |
template<typename _Tp, size_t _Nm> | |
struct array; | |
template<size_t...> | |
struct _Index_tuple; | |
template<size_t _Int, class _Tp1, class _Tp2> | |
constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& | |
get(pair<_Tp1, _Tp2>& __in) noexcept; | |
template<size_t _Int, class _Tp1, class _Tp2> | |
constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& | |
get(pair<_Tp1, _Tp2>&& __in) noexcept; | |
template<size_t _Int, class _Tp1, class _Tp2> | |
constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& | |
get(const pair<_Tp1, _Tp2>& __in) noexcept; | |
template<size_t _Int, class _Tp1, class _Tp2> | |
constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& | |
get(const pair<_Tp1, _Tp2>&& __in) noexcept; | |
template<size_t __i, typename... _Elements> | |
constexpr __tuple_element_t<__i, tuple<_Elements...>>& | |
get(tuple<_Elements...>& __t) noexcept; | |
template<size_t __i, typename... _Elements> | |
constexpr const __tuple_element_t<__i, tuple<_Elements...>>& | |
get(const tuple<_Elements...>& __t) noexcept; | |
template<size_t __i, typename... _Elements> | |
constexpr __tuple_element_t<__i, tuple<_Elements...>>&& | |
get(tuple<_Elements...>&& __t) noexcept; | |
template<size_t __i, typename... _Elements> | |
constexpr const __tuple_element_t<__i, tuple<_Elements...>>&& | |
get(const tuple<_Elements...>&& __t) noexcept; | |
template<size_t _Int, typename _Tp, size_t _Nm> | |
constexpr _Tp& | |
get(array<_Tp, _Nm>&) noexcept; | |
template<size_t _Int, typename _Tp, size_t _Nm> | |
constexpr _Tp&& | |
get(array<_Tp, _Nm>&&) noexcept; | |
template<size_t _Int, typename _Tp, size_t _Nm> | |
constexpr const _Tp& | |
get(const array<_Tp, _Nm>&) noexcept; | |
template<size_t _Int, typename _Tp, size_t _Nm> | |
constexpr const _Tp&& | |
get(const array<_Tp, _Nm>&&) noexcept; | |
template <bool, typename _T1, typename _T2> | |
struct _PCC | |
{ | |
template <typename _U1, typename _U2> | |
static constexpr bool _ConstructiblePair() | |
{ | |
return __and_<is_constructible<_T1, const _U1&>, | |
is_constructible<_T2, const _U2&>>::value; | |
} | |
template <typename _U1, typename _U2> | |
static constexpr bool _ImplicitlyConvertiblePair() | |
{ | |
return __and_<is_convertible<const _U1&, _T1>, | |
is_convertible<const _U2&, _T2>>::value; | |
} | |
template <typename _U1, typename _U2> | |
static constexpr bool _MoveConstructiblePair() | |
{ | |
return __and_<is_constructible<_T1, _U1&&>, | |
is_constructible<_T2, _U2&&>>::value; | |
} | |
template <typename _U1, typename _U2> | |
static constexpr bool _ImplicitlyMoveConvertiblePair() | |
{ | |
return __and_<is_convertible<_U1&&, _T1>, | |
is_convertible<_U2&&, _T2>>::value; | |
} | |
}; | |
template <typename _T1, typename _T2> | |
struct _PCC<false, _T1, _T2> | |
{ | |
template <typename _U1, typename _U2> | |
static constexpr bool _ConstructiblePair() | |
{ | |
return false; | |
} | |
template <typename _U1, typename _U2> | |
static constexpr bool _ImplicitlyConvertiblePair() | |
{ | |
return false; | |
} | |
template <typename _U1, typename _U2> | |
static constexpr bool _MoveConstructiblePair() | |
{ | |
return false; | |
} | |
template <typename _U1, typename _U2> | |
static constexpr bool _ImplicitlyMoveConvertiblePair() | |
{ | |
return false; | |
} | |
}; | |
# 260 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_pair.h" 3 | |
template<typename _U1, typename _U2> class __pair_base | |
{ | |
template<typename _T1, typename _T2> friend struct pair; | |
__pair_base() = default; | |
~__pair_base() = default; | |
__pair_base(const __pair_base&) = default; | |
__pair_base& operator=(const __pair_base&) = delete; | |
}; | |
# 283 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_pair.h" 3 | |
template<typename _T1, typename _T2> | |
struct pair | |
: public __pair_base<_T1, _T2> | |
{ | |
typedef _T1 first_type; | |
typedef _T2 second_type; | |
_T1 first; | |
_T2 second; | |
constexpr pair(const pair&) = default; | |
constexpr pair(pair&&) = default; | |
template<typename... _Args1, typename... _Args2> | |
pair(piecewise_construct_t, tuple<_Args1...>, tuple<_Args2...>); | |
void | |
swap(pair& __p) | |
noexcept(__and_<__is_nothrow_swappable<_T1>, | |
__is_nothrow_swappable<_T2>>::value) | |
{ | |
using std::swap; | |
swap(first, __p.first); | |
swap(second, __p.second); | |
} | |
# 331 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_pair.h" 3 | |
private: | |
template<typename... _Args1, size_t... _Indexes1, | |
typename... _Args2, size_t... _Indexes2> | |
pair(tuple<_Args1...>&, tuple<_Args2...>&, | |
_Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>); | |
public: | |
# 719 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_pair.h" 3 | |
template <typename _U1 = _T1, | |
typename _U2 = _T2, | |
typename enable_if<__and_< | |
__is_implicitly_default_constructible<_U1>, | |
__is_implicitly_default_constructible<_U2>> | |
::value, bool>::type = true> | |
constexpr pair() | |
: first(), second() { } | |
template <typename _U1 = _T1, | |
typename _U2 = _T2, | |
typename enable_if<__and_< | |
is_default_constructible<_U1>, | |
is_default_constructible<_U2>, | |
__not_< | |
__and_<__is_implicitly_default_constructible<_U1>, | |
__is_implicitly_default_constructible<_U2>>>> | |
::value, bool>::type = false> | |
explicit constexpr pair() | |
: first(), second() { } | |
using _PCCP = _PCC<true, _T1, _T2>; | |
template<typename _U1 = _T1, typename _U2=_T2, typename | |
enable_if<_PCCP::template | |
_ConstructiblePair<_U1, _U2>() | |
&& _PCCP::template | |
_ImplicitlyConvertiblePair<_U1, _U2>(), | |
bool>::type=true> | |
constexpr pair(const _T1& __a, const _T2& __b) | |
: first(__a), second(__b) { } | |
template<typename _U1 = _T1, typename _U2=_T2, typename | |
enable_if<_PCCP::template | |
_ConstructiblePair<_U1, _U2>() | |
&& !_PCCP::template | |
_ImplicitlyConvertiblePair<_U1, _U2>(), | |
bool>::type=false> | |
explicit constexpr pair(const _T1& __a, const _T2& __b) | |
: first(__a), second(__b) { } | |
template <typename _U1, typename _U2> | |
using _PCCFP = _PCC<!is_same<_T1, _U1>::value | |
|| !is_same<_T2, _U2>::value, | |
_T1, _T2>; | |
template<typename _U1, typename _U2, typename | |
enable_if<_PCCFP<_U1, _U2>::template | |
_ConstructiblePair<_U1, _U2>() | |
&& _PCCFP<_U1, _U2>::template | |
_ImplicitlyConvertiblePair<_U1, _U2>(), | |
bool>::type=true> | |
constexpr pair(const pair<_U1, _U2>& __p) | |
: first(__p.first), second(__p.second) | |
{ ; } | |
template<typename _U1, typename _U2, typename | |
enable_if<_PCCFP<_U1, _U2>::template | |
_ConstructiblePair<_U1, _U2>() | |
&& !_PCCFP<_U1, _U2>::template | |
_ImplicitlyConvertiblePair<_U1, _U2>(), | |
bool>::type=false> | |
explicit constexpr pair(const pair<_U1, _U2>& __p) | |
: first(__p.first), second(__p.second) | |
{ ; } | |
# 803 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_pair.h" 3 | |
private: | |
struct __zero_as_null_pointer_constant | |
{ | |
__zero_as_null_pointer_constant(int __zero_as_null_pointer_constant::*) | |
{ } | |
template<typename _Tp, | |
typename = __enable_if_t<is_null_pointer<_Tp>::value>> | |
__zero_as_null_pointer_constant(_Tp) = delete; | |
}; | |
public: | |
template<typename _U1, | |
__enable_if_t<__and_<__not_<is_reference<_U1>>, | |
is_pointer<_T2>, | |
is_constructible<_T1, _U1>, | |
__not_<is_constructible<_T1, const _U1&>>, | |
is_convertible<_U1, _T1>>::value, | |
bool> = true> | |
__attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) | |
constexpr | |
pair(_U1&& __x, __zero_as_null_pointer_constant, ...) | |
: first(std::forward<_U1>(__x)), second(nullptr) | |
{ ; } | |
template<typename _U1, | |
__enable_if_t<__and_<__not_<is_reference<_U1>>, | |
is_pointer<_T2>, | |
is_constructible<_T1, _U1>, | |
__not_<is_constructible<_T1, const _U1&>>, | |
__not_<is_convertible<_U1, _T1>>>::value, | |
bool> = false> | |
__attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) | |
explicit constexpr | |
pair(_U1&& __x, __zero_as_null_pointer_constant, ...) | |
: first(std::forward<_U1>(__x)), second(nullptr) | |
{ ; } | |
template<typename _U2, | |
__enable_if_t<__and_<is_pointer<_T1>, | |
__not_<is_reference<_U2>>, | |
is_constructible<_T2, _U2>, | |
__not_<is_constructible<_T2, const _U2&>>, | |
is_convertible<_U2, _T2>>::value, | |
bool> = true> | |
__attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) | |
constexpr | |
pair(__zero_as_null_pointer_constant, _U2&& __y, ...) | |
: first(nullptr), second(std::forward<_U2>(__y)) | |
{ ; } | |
template<typename _U2, | |
__enable_if_t<__and_<is_pointer<_T1>, | |
__not_<is_reference<_U2>>, | |
is_constructible<_T2, _U2>, | |
__not_<is_constructible<_T2, const _U2&>>, | |
__not_<is_convertible<_U2, _T2>>>::value, | |
bool> = false> | |
__attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) | |
explicit constexpr | |
pair(__zero_as_null_pointer_constant, _U2&& __y, ...) | |
: first(nullptr), second(std::forward<_U2>(__y)) | |
{ ; } | |
template<typename _U1, typename _U2, typename | |
enable_if<_PCCP::template | |
_MoveConstructiblePair<_U1, _U2>() | |
&& _PCCP::template | |
_ImplicitlyMoveConvertiblePair<_U1, _U2>(), | |
bool>::type=true> | |
constexpr pair(_U1&& __x, _U2&& __y) | |
: first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) | |
{ ; } | |
template<typename _U1, typename _U2, typename | |
enable_if<_PCCP::template | |
_MoveConstructiblePair<_U1, _U2>() | |
&& !_PCCP::template | |
_ImplicitlyMoveConvertiblePair<_U1, _U2>(), | |
bool>::type=false> | |
explicit constexpr pair(_U1&& __x, _U2&& __y) | |
: first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) | |
{ ; } | |
template<typename _U1, typename _U2, typename | |
enable_if<_PCCFP<_U1, _U2>::template | |
_MoveConstructiblePair<_U1, _U2>() | |
&& _PCCFP<_U1, _U2>::template | |
_ImplicitlyMoveConvertiblePair<_U1, _U2>(), | |
bool>::type=true> | |
constexpr pair(pair<_U1, _U2>&& __p) | |
: first(std::forward<_U1>(__p.first)), | |
second(std::forward<_U2>(__p.second)) | |
{ ; } | |
template<typename _U1, typename _U2, typename | |
enable_if<_PCCFP<_U1, _U2>::template | |
_MoveConstructiblePair<_U1, _U2>() | |
&& !_PCCFP<_U1, _U2>::template | |
_ImplicitlyMoveConvertiblePair<_U1, _U2>(), | |
bool>::type=false> | |
explicit constexpr pair(pair<_U1, _U2>&& __p) | |
: first(std::forward<_U1>(__p.first)), | |
second(std::forward<_U2>(__p.second)) | |
{ ; } | |
pair& | |
operator=(__conditional_t<__and_<is_copy_assignable<_T1>, | |
is_copy_assignable<_T2>>::value, | |
const pair&, const __nonesuch&> __p) | |
{ | |
first = __p.first; | |
second = __p.second; | |
return *this; | |
} | |
pair& | |
operator=(__conditional_t<__and_<is_move_assignable<_T1>, | |
is_move_assignable<_T2>>::value, | |
pair&&, __nonesuch&&> __p) | |
noexcept(__and_<is_nothrow_move_assignable<_T1>, | |
is_nothrow_move_assignable<_T2>>::value) | |
{ | |
first = std::forward<first_type>(__p.first); | |
second = std::forward<second_type>(__p.second); | |
return *this; | |
} | |
template<typename _U1, typename _U2> | |
typename enable_if<__and_<is_assignable<_T1&, const _U1&>, | |
is_assignable<_T2&, const _U2&>>::value, | |
pair&>::type | |
operator=(const pair<_U1, _U2>& __p) | |
{ | |
first = __p.first; | |
second = __p.second; | |
return *this; | |
} | |
template<typename _U1, typename _U2> | |
typename enable_if<__and_<is_assignable<_T1&, _U1&&>, | |
is_assignable<_T2&, _U2&&>>::value, | |
pair&>::type | |
operator=(pair<_U1, _U2>&& __p) | |
{ | |
first = std::forward<_U1>(__p.first); | |
second = std::forward<_U2>(__p.second); | |
return *this; | |
} | |
# 995 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_pair.h" 3 | |
}; | |
template<typename _T1, typename _T2> pair(_T1, _T2) -> pair<_T1, _T2>; | |
# 1031 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_pair.h" 3 | |
template<typename _T1, typename _T2> | |
inline constexpr bool | |
operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | |
{ return __x.first == __y.first && __x.second == __y.second; } | |
# 1043 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_pair.h" 3 | |
template<typename _T1, typename _T2> | |
inline constexpr bool | |
operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | |
{ return __x.first < __y.first | |
|| (!(__y.first < __x.first) && __x.second < __y.second); } | |
template<typename _T1, typename _T2> | |
inline constexpr bool | |
operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | |
{ return !(__x == __y); } | |
template<typename _T1, typename _T2> | |
inline constexpr bool | |
operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | |
{ return __y < __x; } | |
template<typename _T1, typename _T2> | |
inline constexpr bool | |
operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | |
{ return !(__y < __x); } | |
template<typename _T1, typename _T2> | |
inline constexpr bool | |
operator>=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | |
{ return !(__x < __y); } | |
# 1080 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_pair.h" 3 | |
template<typename _T1, typename _T2> | |
inline | |
typename enable_if<__and_<__is_swappable<_T1>, | |
__is_swappable<_T2>>::value>::type | |
swap(pair<_T1, _T2>& __x, pair<_T1, _T2>& __y) | |
noexcept(noexcept(__x.swap(__y))) | |
{ __x.swap(__y); } | |
# 1103 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_pair.h" 3 | |
template<typename _T1, typename _T2> | |
typename enable_if<!__and_<__is_swappable<_T1>, | |
__is_swappable<_T2>>::value>::type | |
swap(pair<_T1, _T2>&, pair<_T1, _T2>&) = delete; | |
# 1129 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_pair.h" 3 | |
template<typename _T1, typename _T2> | |
constexpr pair<typename __decay_and_strip<_T1>::__type, | |
typename __decay_and_strip<_T2>::__type> | |
make_pair(_T1&& __x, _T2&& __y) | |
{ | |
typedef typename __decay_and_strip<_T1>::__type __ds_type1; | |
typedef typename __decay_and_strip<_T2>::__type __ds_type2; | |
typedef pair<__ds_type1, __ds_type2> __pair_type; | |
return __pair_type(std::forward<_T1>(__x), std::forward<_T2>(__y)); | |
} | |
# 1152 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_pair.h" 3 | |
template<typename _T1, typename _T2> | |
struct __is_tuple_like_impl<pair<_T1, _T2>> : true_type | |
{ }; | |
template<class _Tp1, class _Tp2> | |
struct tuple_size<pair<_Tp1, _Tp2>> | |
: public integral_constant<size_t, 2> { }; | |
template<class _Tp1, class _Tp2> | |
struct tuple_element<0, pair<_Tp1, _Tp2>> | |
{ typedef _Tp1 type; }; | |
template<class _Tp1, class _Tp2> | |
struct tuple_element<1, pair<_Tp1, _Tp2>> | |
{ typedef _Tp2 type; }; | |
template<size_t __i, typename... _Types> | |
struct tuple_element<__i, tuple<_Types...>>; | |
template<typename _Tp1, typename _Tp2> | |
inline constexpr size_t tuple_size_v<pair<_Tp1, _Tp2>> = 2; | |
template<typename _Tp1, typename _Tp2> | |
inline constexpr size_t tuple_size_v<const pair<_Tp1, _Tp2>> = 2; | |
template<typename _Tp> | |
inline constexpr bool __is_pair = false; | |
template<typename _Tp, typename _Up> | |
inline constexpr bool __is_pair<pair<_Tp, _Up>> = true; | |
template<size_t _Int> | |
struct __pair_get; | |
template<> | |
struct __pair_get<0> | |
{ | |
template<typename _Tp1, typename _Tp2> | |
static constexpr _Tp1& | |
__get(pair<_Tp1, _Tp2>& __pair) noexcept | |
{ return __pair.first; } | |
template<typename _Tp1, typename _Tp2> | |
static constexpr _Tp1&& | |
__move_get(pair<_Tp1, _Tp2>&& __pair) noexcept | |
{ return std::forward<_Tp1>(__pair.first); } | |
template<typename _Tp1, typename _Tp2> | |
static constexpr const _Tp1& | |
__const_get(const pair<_Tp1, _Tp2>& __pair) noexcept | |
{ return __pair.first; } | |
template<typename _Tp1, typename _Tp2> | |
static constexpr const _Tp1&& | |
__const_move_get(const pair<_Tp1, _Tp2>&& __pair) noexcept | |
{ return std::forward<const _Tp1>(__pair.first); } | |
}; | |
template<> | |
struct __pair_get<1> | |
{ | |
template<typename _Tp1, typename _Tp2> | |
static constexpr _Tp2& | |
__get(pair<_Tp1, _Tp2>& __pair) noexcept | |
{ return __pair.second; } | |
template<typename _Tp1, typename _Tp2> | |
static constexpr _Tp2&& | |
__move_get(pair<_Tp1, _Tp2>&& __pair) noexcept | |
{ return std::forward<_Tp2>(__pair.second); } | |
template<typename _Tp1, typename _Tp2> | |
static constexpr const _Tp2& | |
__const_get(const pair<_Tp1, _Tp2>& __pair) noexcept | |
{ return __pair.second; } | |
template<typename _Tp1, typename _Tp2> | |
static constexpr const _Tp2&& | |
__const_move_get(const pair<_Tp1, _Tp2>&& __pair) noexcept | |
{ return std::forward<const _Tp2>(__pair.second); } | |
}; | |
template<size_t _Int, class _Tp1, class _Tp2> | |
constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& | |
get(pair<_Tp1, _Tp2>& __in) noexcept | |
{ return __pair_get<_Int>::__get(__in); } | |
template<size_t _Int, class _Tp1, class _Tp2> | |
constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& | |
get(pair<_Tp1, _Tp2>&& __in) noexcept | |
{ return __pair_get<_Int>::__move_get(std::move(__in)); } | |
template<size_t _Int, class _Tp1, class _Tp2> | |
constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& | |
get(const pair<_Tp1, _Tp2>& __in) noexcept | |
{ return __pair_get<_Int>::__const_get(__in); } | |
template<size_t _Int, class _Tp1, class _Tp2> | |
constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& | |
get(const pair<_Tp1, _Tp2>&& __in) noexcept | |
{ return __pair_get<_Int>::__const_move_get(std::move(__in)); } | |
template <typename _Tp, typename _Up> | |
constexpr _Tp& | |
get(pair<_Tp, _Up>& __p) noexcept | |
{ return __p.first; } | |
template <typename _Tp, typename _Up> | |
constexpr const _Tp& | |
get(const pair<_Tp, _Up>& __p) noexcept | |
{ return __p.first; } | |
template <typename _Tp, typename _Up> | |
constexpr _Tp&& | |
get(pair<_Tp, _Up>&& __p) noexcept | |
{ return std::move(__p.first); } | |
template <typename _Tp, typename _Up> | |
constexpr const _Tp&& | |
get(const pair<_Tp, _Up>&& __p) noexcept | |
{ return std::move(__p.first); } | |
template <typename _Tp, typename _Up> | |
constexpr _Tp& | |
get(pair<_Up, _Tp>& __p) noexcept | |
{ return __p.second; } | |
template <typename _Tp, typename _Up> | |
constexpr const _Tp& | |
get(const pair<_Up, _Tp>& __p) noexcept | |
{ return __p.second; } | |
template <typename _Tp, typename _Up> | |
constexpr _Tp&& | |
get(pair<_Up, _Tp>&& __p) noexcept | |
{ return std::move(__p.second); } | |
template <typename _Tp, typename _Up> | |
constexpr const _Tp&& | |
get(const pair<_Up, _Tp>&& __p) noexcept | |
{ return std::move(__p.second); } | |
# 1332 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_pair.h" 3 | |
} | |
# 70 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/utility" 2 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/initializer_list" 1 3 | |
# 33 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/initializer_list" 3 | |
# 34 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/initializer_list" 3 | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
template<class _E> | |
class initializer_list | |
{ | |
public: | |
typedef _E value_type; | |
typedef const _E& reference; | |
typedef const _E& const_reference; | |
typedef size_t size_type; | |
typedef const _E* iterator; | |
typedef const _E* const_iterator; | |
private: | |
iterator _M_array; | |
size_type _M_len; | |
constexpr initializer_list(const_iterator __a, size_type __l) | |
: _M_array(__a), _M_len(__l) { } | |
public: | |
constexpr initializer_list() noexcept | |
: _M_array(0), _M_len(0) { } | |
constexpr size_type | |
size() const noexcept { return _M_len; } | |
constexpr const_iterator | |
begin() const noexcept { return _M_array; } | |
constexpr const_iterator | |
end() const noexcept { return begin() + size(); } | |
}; | |
template<class _Tp> | |
constexpr const _Tp* | |
begin(initializer_list<_Tp> __ils) noexcept | |
{ return __ils.begin(); } | |
template<class _Tp> | |
constexpr const _Tp* | |
end(initializer_list<_Tp> __ils) noexcept | |
{ return __ils.end(); } | |
} | |
# 74 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/utility" 2 3 | |
# 96 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/utility" 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 1 3 | |
# 47 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 3 | |
# 48 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 3 | |
# 97 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/utility" 2 3 | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
template <typename _Tp, typename _Up = _Tp> | |
inline _Tp | |
exchange(_Tp& __obj, _Up&& __new_val) | |
noexcept(__and_<is_nothrow_move_constructible<_Tp>, | |
is_nothrow_assignable<_Tp&, _Up>>::value) | |
{ return std::__exchange(__obj, std::forward<_Up>(__new_val)); } | |
template<typename _Tp> | |
[[nodiscard]] | |
constexpr add_const_t<_Tp>& | |
as_const(_Tp& __t) noexcept | |
{ return __t; } | |
template<typename _Tp> | |
void as_const(const _Tp&&) = delete; | |
# 230 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/utility" 3 | |
} | |
# 16 "/usr/include/qt6/QtCore/qglobal.h" 2 3 4 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/cstdint" 1 3 4 | |
# 32 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/cstdint" 3 4 | |
# 33 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/cstdint" 3 | |
# 45 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/cstdint" 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/stdint.h" 1 3 4 | |
# 9 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/stdint.h" 3 4 | |
# 1 "/usr/include/stdint.h" 1 3 4 | |
# 26 "/usr/include/stdint.h" 3 4 | |
# 1 "/usr/include/bits/libc-header-start.h" 1 3 4 | |
# 27 "/usr/include/stdint.h" 2 3 4 | |
# 1 "/usr/include/bits/types.h" 1 3 4 | |
# 27 "/usr/include/bits/types.h" 3 4 | |
# 1 "/usr/include/bits/wordsize.h" 1 3 4 | |
# 28 "/usr/include/bits/types.h" 2 3 4 | |
# 1 "/usr/include/bits/timesize.h" 1 3 4 | |
# 19 "/usr/include/bits/timesize.h" 3 4 | |
# 1 "/usr/include/bits/wordsize.h" 1 3 4 | |
# 20 "/usr/include/bits/timesize.h" 2 3 4 | |
# 29 "/usr/include/bits/types.h" 2 3 4 | |
typedef unsigned char __u_char; | |
typedef unsigned short int __u_short; | |
typedef unsigned int __u_int; | |
typedef unsigned long int __u_long; | |
typedef signed char __int8_t; | |
typedef unsigned char __uint8_t; | |
typedef signed short int __int16_t; | |
typedef unsigned short int __uint16_t; | |
typedef signed int __int32_t; | |
typedef unsigned int __uint32_t; | |
typedef signed long int __int64_t; | |
typedef unsigned long int __uint64_t; | |
typedef __int8_t __int_least8_t; | |
typedef __uint8_t __uint_least8_t; | |
typedef __int16_t __int_least16_t; | |
typedef __uint16_t __uint_least16_t; | |
typedef __int32_t __int_least32_t; | |
typedef __uint32_t __uint_least32_t; | |
typedef __int64_t __int_least64_t; | |
typedef __uint64_t __uint_least64_t; | |
typedef long int __quad_t; | |
typedef unsigned long int __u_quad_t; | |
typedef long int __intmax_t; | |
typedef unsigned long int __uintmax_t; | |
# 141 "/usr/include/bits/types.h" 3 4 | |
# 1 "/usr/include/bits/typesizes.h" 1 3 4 | |
# 142 "/usr/include/bits/types.h" 2 3 4 | |
# 1 "/usr/include/bits/time64.h" 1 3 4 | |
# 143 "/usr/include/bits/types.h" 2 3 4 | |
typedef unsigned long int __dev_t; | |
typedef unsigned int __uid_t; | |
typedef unsigned int __gid_t; | |
typedef unsigned long int __ino_t; | |
typedef unsigned long int __ino64_t; | |
typedef unsigned int __mode_t; | |
typedef unsigned long int __nlink_t; | |
typedef long int __off_t; | |
typedef long int __off64_t; | |
typedef int __pid_t; | |
typedef struct { int __val[2]; } __fsid_t; | |
typedef long int __clock_t; | |
typedef unsigned long int __rlim_t; | |
typedef unsigned long int __rlim64_t; | |
typedef unsigned int __id_t; | |
typedef long int __time_t; | |
typedef unsigned int __useconds_t; | |
typedef long int __suseconds_t; | |
typedef long int __suseconds64_t; | |
typedef int __daddr_t; | |
typedef int __key_t; | |
typedef int __clockid_t; | |
typedef void * __timer_t; | |
typedef long int __blksize_t; | |
typedef long int __blkcnt_t; | |
typedef long int __blkcnt64_t; | |
typedef unsigned long int __fsblkcnt_t; | |
typedef unsigned long int __fsblkcnt64_t; | |
typedef unsigned long int __fsfilcnt_t; | |
typedef unsigned long int __fsfilcnt64_t; | |
typedef long int __fsword_t; | |
typedef long int __ssize_t; | |
typedef long int __syscall_slong_t; | |
typedef unsigned long int __syscall_ulong_t; | |
typedef __off64_t __loff_t; | |
typedef char *__caddr_t; | |
typedef long int __intptr_t; | |
typedef unsigned int __socklen_t; | |
typedef int __sig_atomic_t; | |
# 28 "/usr/include/stdint.h" 2 3 4 | |
# 1 "/usr/include/bits/wchar.h" 1 3 4 | |
# 29 "/usr/include/stdint.h" 2 3 4 | |
# 1 "/usr/include/bits/wordsize.h" 1 3 4 | |
# 30 "/usr/include/stdint.h" 2 3 4 | |
# 1 "/usr/include/bits/stdint-intn.h" 1 3 4 | |
# 24 "/usr/include/bits/stdint-intn.h" 3 4 | |
typedef __int8_t int8_t; | |
typedef __int16_t int16_t; | |
typedef __int32_t int32_t; | |
typedef __int64_t int64_t; | |
# 35 "/usr/include/stdint.h" 2 3 4 | |
# 1 "/usr/include/bits/stdint-uintn.h" 1 3 4 | |
# 24 "/usr/include/bits/stdint-uintn.h" 3 4 | |
typedef __uint8_t uint8_t; | |
typedef __uint16_t uint16_t; | |
typedef __uint32_t uint32_t; | |
typedef __uint64_t uint64_t; | |
# 38 "/usr/include/stdint.h" 2 3 4 | |
# 1 "/usr/include/bits/stdint-least.h" 1 3 4 | |
# 25 "/usr/include/bits/stdint-least.h" 3 4 | |
typedef __int_least8_t int_least8_t; | |
typedef __int_least16_t int_least16_t; | |
typedef __int_least32_t int_least32_t; | |
typedef __int_least64_t int_least64_t; | |
typedef __uint_least8_t uint_least8_t; | |
typedef __uint_least16_t uint_least16_t; | |
typedef __uint_least32_t uint_least32_t; | |
typedef __uint_least64_t uint_least64_t; | |
# 42 "/usr/include/stdint.h" 2 3 4 | |
typedef signed char int_fast8_t; | |
typedef long int int_fast16_t; | |
typedef long int int_fast32_t; | |
typedef long int int_fast64_t; | |
# 60 "/usr/include/stdint.h" 3 4 | |
typedef unsigned char uint_fast8_t; | |
typedef unsigned long int uint_fast16_t; | |
typedef unsigned long int uint_fast32_t; | |
typedef unsigned long int uint_fast64_t; | |
# 76 "/usr/include/stdint.h" 3 4 | |
typedef long int intptr_t; | |
typedef unsigned long int uintptr_t; | |
# 90 "/usr/include/stdint.h" 3 4 | |
typedef __intmax_t intmax_t; | |
typedef __uintmax_t uintmax_t; | |
# 10 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/stdint.h" 2 3 4 | |
# 46 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/cstdint" 2 3 | |
namespace std | |
{ | |
using ::int8_t; | |
using ::int16_t; | |
using ::int32_t; | |
using ::int64_t; | |
using ::int_fast8_t; | |
using ::int_fast16_t; | |
using ::int_fast32_t; | |
using ::int_fast64_t; | |
using ::int_least8_t; | |
using ::int_least16_t; | |
using ::int_least32_t; | |
using ::int_least64_t; | |
using ::intmax_t; | |
using ::intptr_t; | |
using ::uint8_t; | |
using ::uint16_t; | |
using ::uint32_t; | |
using ::uint64_t; | |
using ::uint_fast8_t; | |
using ::uint_fast16_t; | |
using ::uint_fast32_t; | |
using ::uint_fast64_t; | |
using ::uint_least8_t; | |
using ::uint_least16_t; | |
using ::uint_least32_t; | |
using ::uint_least64_t; | |
using ::uintmax_t; | |
using ::uintptr_t; | |
# 142 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/cstdint" 3 | |
} | |
# 17 "/usr/include/qt6/QtCore/qglobal.h" 2 3 4 | |
# 1 "/usr/include/assert.h" 1 3 4 | |
# 64 "/usr/include/assert.h" 3 4 | |
extern "C" { | |
extern void __assert_fail (const char *__assertion, const char *__file, | |
unsigned int __line, const char *__function) | |
noexcept (true) __attribute__ ((__noreturn__)); | |
extern void __assert_perror_fail (int __errnum, const char *__file, | |
unsigned int __line, const char *__function) | |
noexcept (true) __attribute__ ((__noreturn__)); | |
extern void __assert (const char *__assertion, const char *__file, int __line) | |
noexcept (true) __attribute__ ((__noreturn__)); | |
} | |
# 20 "/usr/include/qt6/QtCore/qglobal.h" 2 3 4 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/stdbool.h" 1 3 4 | |
# 21 "/usr/include/qt6/QtCore/qglobal.h" 2 3 4 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/stddef.h" 1 3 4 | |
# 22 "/usr/include/qt6/QtCore/qglobal.h" 2 3 4 | |
# 1 "/usr/include/qt6/QtCore/qtversionchecks.h" 1 3 4 | |
# 12 "/usr/include/qt6/QtCore/qtversionchecks.h" 3 4 | |
# 1 "/usr/include/qt6/QtCore/qtconfiginclude.h" 1 3 4 | |
# 11 "/usr/include/qt6/QtCore/qtconfiginclude.h" 3 4 | |
# 1 "/usr/include/qt6/QtCore/qconfig.h" 1 3 4 | |
# 12 "/usr/include/qt6/QtCore/qtconfiginclude.h" 2 3 4 | |
# 1 "/usr/include/qt6/QtCore/qtcore-config.h" 1 3 4 | |
# 20 "/usr/include/qt6/QtCore/qtconfiginclude.h" 2 3 4 | |
# 13 "/usr/include/qt6/QtCore/qtversionchecks.h" 2 3 4 | |
# 25 "/usr/include/qt6/QtCore/qglobal.h" 2 3 4 | |
# 1 "/usr/include/qt6/QtCore/qtconfigmacros.h" 1 3 4 | |
# 13 "/usr/include/qt6/QtCore/qtconfigmacros.h" 3 4 | |
# 1 "/usr/include/assert.h" 1 3 4 | |
# 64 "/usr/include/assert.h" 3 4 | |
extern "C" { | |
extern void __assert_fail (const char *__assertion, const char *__file, | |
unsigned int __line, const char *__function) | |
noexcept (true) __attribute__ ((__noreturn__)); | |
extern void __assert_perror_fail (int __errnum, const char *__file, | |
unsigned int __line, const char *__function) | |
noexcept (true) __attribute__ ((__noreturn__)); | |
extern void __assert (const char *__assertion, const char *__file, int __line) | |
noexcept (true) __attribute__ ((__noreturn__)); | |
} | |
# 14 "/usr/include/qt6/QtCore/qtconfigmacros.h" 2 3 4 | |
# 26 "/usr/include/qt6/QtCore/qglobal.h" 2 3 4 | |
# 1 "/usr/include/qt6/QtCore/qtcoreexports.h" 1 3 4 | |
# 1 "/usr/include/qt6/QtCore/qcompilerdetection.h" 1 3 4 | |
# 14 "/usr/include/qt6/QtCore/qcompilerdetection.h" 3 4 | |
# 1 "/usr/include/qt6/QtCore/qprocessordetection.h" 1 3 4 | |
# 15 "/usr/include/qt6/QtCore/qcompilerdetection.h" 2 3 4 | |
# 1 "/usr/include/qt6/QtCore/qsystemdetection.h" 1 3 4 | |
# 16 "/usr/include/qt6/QtCore/qcompilerdetection.h" 2 3 4 | |
# 465 "/usr/include/qt6/QtCore/qcompilerdetection.h" 3 4 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/version" 1 3 4 | |
# 33 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/version" 3 4 | |
# 34 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/version" 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 1 3 | |
# 47 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 3 | |
# 48 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 3 | |
# 37 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/version" 2 3 | |
# 466 "/usr/include/qt6/QtCore/qcompilerdetection.h" 2 3 4 | |
# 1419 "/usr/include/qt6/QtCore/qcompilerdetection.h" 3 4 | |
class QT_CLASS_JUST_FOR_P0846_SIMULATION; | |
# 8 "/usr/include/qt6/QtCore/qtcoreexports.h" 2 3 4 | |
# 1 "/usr/include/qt6/QtCore/qtdeprecationmarkers.h" 1 3 4 | |
# 9 "/usr/include/qt6/QtCore/qtdeprecationmarkers.h" 3 4 | |
# 1 "/usr/include/qt6/QtCore/qcompilerdetection.h" 1 3 4 | |
# 10 "/usr/include/qt6/QtCore/qtdeprecationmarkers.h" 2 3 4 | |
# 332 "/usr/include/qt6/QtCore/qtdeprecationmarkers.h" 3 4 | |
namespace QtPrivate { | |
enum class Deprecated_t {}; | |
constexpr inline Deprecated_t Deprecated = {}; | |
} | |
# 345 "/usr/include/qt6/QtCore/qtdeprecationmarkers.h" 3 4 | |
# 10 "/usr/include/qt6/QtCore/qtcoreexports.h" 2 3 4 | |
# 27 "/usr/include/qt6/QtCore/qglobal.h" 2 3 4 | |
# 1 "/usr/include/qt6/QtCore/qtpreprocessorsupport.h" 1 3 4 | |
# 29 "/usr/include/qt6/QtCore/qglobal.h" 2 3 4 | |
# 1 "/usr/include/qt6/QtCore/qsystemdetection.h" 1 3 4 | |
# 31 "/usr/include/qt6/QtCore/qglobal.h" 2 3 4 | |
# 1 "/usr/include/qt6/QtCore/qprocessordetection.h" 1 3 4 | |
# 32 "/usr/include/qt6/QtCore/qglobal.h" 2 3 4 | |
# 1 "/usr/include/qt6/QtCore/qcompilerdetection.h" 1 3 4 | |
# 33 "/usr/include/qt6/QtCore/qglobal.h" 2 3 4 | |
# 1 "/usr/include/qt6/QtCore/qassert.h" 1 3 4 | |
# 1 "/usr/include/qt6/QtCore/qcompilerdetection.h" 1 3 4 | |
# 8 "/usr/include/qt6/QtCore/qassert.h" 2 3 4 | |
# 1 "/usr/include/qt6/QtCore/qtnoop.h" 1 3 4 | |
# 12 "/usr/include/qt6/QtCore/qtnoop.h" 3 4 | |
constexpr | |
inline void qt_noop(void) | |
noexcept | |
{} | |
# 11 "/usr/include/qt6/QtCore/qassert.h" 2 3 4 | |
[[noreturn]] | |
__attribute__((cold)) | |
__attribute__((visibility("default"))) void qt_assert(const char *assertion, const char *file, int line) noexcept; | |
# 36 "/usr/include/qt6/QtCore/qassert.h" 3 4 | |
[[noreturn]] | |
__attribute__((cold)) | |
__attribute__((visibility("default"))) | |
void qt_assert_x(const char *where, const char *what, const char *file, int line) noexcept; | |
# 50 "/usr/include/qt6/QtCore/qassert.h" 3 4 | |
[[noreturn]] __attribute__((visibility("default"))) void qt_check_pointer(const char *, int) noexcept; | |
[[noreturn]] __attribute__((cold)) | |
__attribute__((visibility("default"))) void qBadAlloc(); | |
# 64 "/usr/include/qt6/QtCore/qassert.h" 3 4 | |
template <typename T> | |
inline T *q_check_ptr(T *p) { qt_noop(); return p; } | |
# 82 "/usr/include/qt6/QtCore/qassert.h" 3 4 | |
[[deprecated("Q_ASSUME() is deprecated because it can produce worse code than when it's absent; " "use C++23 [[assume]] instead")]] | |
inline bool qt_assume_is_deprecated(bool cond) noexcept { return cond; } | |
# 114 "/usr/include/qt6/QtCore/qassert.h" 3 4 | |
# 36 "/usr/include/qt6/QtCore/qglobal.h" 2 3 4 | |
# 1 "/usr/include/qt6/QtCore/qtypes.h" 1 3 4 | |
# 1 "/usr/include/qt6/QtCore/qprocessordetection.h" 1 3 4 | |
# 9 "/usr/include/qt6/QtCore/qtypes.h" 2 3 4 | |
# 32 "/usr/include/qt6/QtCore/qtypes.h" 3 4 | |
typedef unsigned char uchar; | |
typedef unsigned short ushort; | |
typedef unsigned int uint; | |
typedef unsigned long ulong; | |
typedef signed char qint8; | |
typedef unsigned char quint8; | |
typedef short qint16; | |
typedef unsigned short quint16; | |
typedef int qint32; | |
typedef unsigned int quint32; | |
# 60 "/usr/include/qt6/QtCore/qtypes.h" 3 4 | |
typedef long long qint64; | |
typedef unsigned long long quint64; | |
typedef qint64 qlonglong; | |
typedef quint64 qulonglong; | |
# 73 "/usr/include/qt6/QtCore/qtypes.h" 3 4 | |
__extension__ typedef __int128_t qint128; | |
__extension__ typedef __uint128_t quint128; | |
# 89 "/usr/include/qt6/QtCore/qtypes.h" 3 4 | |
namespace QtPrivate::NumberLiterals { | |
namespace detail { | |
template <quint128 accu, int base> | |
constexpr quint128 construct() { return accu; } | |
template <quint128 accu, int base, char C, char...Cs> | |
constexpr quint128 construct() | |
{ | |
if constexpr (C != '\'') { | |
const int digitValue = '0' <= C && C <= '9' ? C - '0' : | |
'a' <= C && C <= 'z' ? C - 'a' + 10 : | |
'A' <= C && C <= 'Z' ? C - 'A' + 10 : | |
-1 ; | |
static_assert(digitValue >= 0 && digitValue < base, | |
"Invalid character"); | |
static_assert(accu <= (static_cast<quint128>(-1) - digitValue) / base, | |
"Overflow occurred"); | |
return construct<accu * base + digitValue, base, Cs...>(); | |
} else { | |
return construct<accu, base, Cs...>(); | |
} | |
} | |
template <char C, char...Cs> | |
constexpr quint128 parse0xb() | |
{ | |
constexpr quint128 accu = 0; | |
if constexpr (C == 'x' || C == 'X') | |
return construct<accu, 16, Cs...>(); | |
else if constexpr (C == 'b' || C == 'B') | |
return construct<accu, 2, Cs...>(); | |
else | |
return construct<accu, 8, C, Cs...>(); | |
} | |
template <char...Cs> | |
constexpr quint128 parse0() | |
{ | |
if constexpr (sizeof...(Cs) == 0) | |
return 0; | |
else | |
return parse0xb<Cs...>(); | |
} | |
template <char C, char...Cs> | |
constexpr quint128 parse() | |
{ | |
if constexpr (C == '0') | |
return parse0<Cs...>(); | |
else | |
return construct<0, 10, C, Cs...>(); | |
} | |
} | |
template <char...Cs> | |
constexpr quint128 operator""_quint128() noexcept | |
{ return QtPrivate::NumberLiterals::detail::parse<Cs...>(); } | |
template <char...Cs> | |
constexpr qint128 operator""_qint128() noexcept | |
{ return qint128(QtPrivate::NumberLiterals::detail::parse<Cs...>()); } | |
# 157 "/usr/include/qt6/QtCore/qtypes.h" 3 4 | |
} | |
# 187 "/usr/include/qt6/QtCore/qtypes.h" 3 4 | |
typedef double qreal; | |
# 200 "/usr/include/qt6/QtCore/qtypes.h" 3 4 | |
template <int> struct QIntegerForSize; | |
template <> struct QIntegerForSize<1> { typedef quint8 Unsigned; typedef qint8 Signed; }; | |
template <> struct QIntegerForSize<2> { typedef quint16 Unsigned; typedef qint16 Signed; }; | |
template <> struct QIntegerForSize<4> { typedef quint32 Unsigned; typedef qint32 Signed; }; | |
template <> struct QIntegerForSize<8> { typedef quint64 Unsigned; typedef qint64 Signed; }; | |
template <> struct QIntegerForSize<16> { typedef quint128 Unsigned; typedef qint128 Signed; }; | |
template <class T> struct QIntegerForSizeof: QIntegerForSize<sizeof(T)> { }; | |
typedef QIntegerForSize<8>::Signed qregisterint; | |
typedef QIntegerForSize<8>::Unsigned qregisteruint; | |
typedef QIntegerForSizeof<void *>::Unsigned quintptr; | |
typedef QIntegerForSizeof<void *>::Signed qptrdiff; | |
typedef qptrdiff qintptr; | |
using qsizetype = QIntegerForSizeof<std::size_t>::Signed; | |
# 258 "/usr/include/qt6/QtCore/qtypes.h" 3 4 | |
namespace QtPrivate { | |
# 271 "/usr/include/qt6/QtCore/qtypes.h" 3 4 | |
using NativeFloat16Type = _Float16; | |
} | |
# 38 "/usr/include/qt6/QtCore/qglobal.h" 2 3 4 | |
# 1 "/usr/include/qt6/QtCore/qtversion.h" 1 3 4 | |
# 14 "/usr/include/qt6/QtCore/qtversion.h" 3 4 | |
# 1 "/usr/include/qt6/QtCore/qcompilerdetection.h" 1 3 4 | |
# 15 "/usr/include/qt6/QtCore/qtversion.h" 2 3 4 | |
# 29 "/usr/include/qt6/QtCore/qtversion.h" 3 4 | |
extern "C" | |
__attribute__((visibility("default"))) __attribute__((const)) const char *qVersion(void) noexcept; | |
# 40 "/usr/include/qt6/QtCore/qglobal.h" 2 3 4 | |
# 1 "/usr/include/qt6/QtCore/qtclasshelpermacros.h" 1 3 4 | |
# 14 "/usr/include/qt6/QtCore/qtclasshelpermacros.h" 3 4 | |
# 77 "/usr/include/qt6/QtCore/qtclasshelpermacros.h" 3 4 | |
template <typename T> inline T *qGetPtrHelper(T *ptr) noexcept { return ptr; } | |
template <typename Ptr> inline auto qGetPtrHelper(Ptr &ptr) noexcept -> decltype(ptr.get()) | |
{ static_assert(noexcept(ptr.get()), "Smart d pointers for Q_DECLARE_PRIVATE must have noexcept get()"); return ptr.get(); } | |
class QObject; | |
class QObjectPrivate; | |
namespace QtPrivate { | |
template <typename ObjPrivate> void assertObjectType(QObjectPrivate *d); | |
inline const QObject *getQObject(const QObjectPrivate *d); | |
} | |
# 130 "/usr/include/qt6/QtCore/qtclasshelpermacros.h" 3 4 | |
# 44 "/usr/include/qt6/QtCore/qglobal.h" 2 3 4 | |
# 1 "/usr/include/qt6/QtCore/qtypeinfo.h" 1 3 4 | |
# 1 "/usr/include/qt6/QtCore/qcompilerdetection.h" 1 3 4 | |
# 9 "/usr/include/qt6/QtCore/qtypeinfo.h" 2 3 4 | |
# 1 "/usr/include/qt6/QtCore/qcontainerfwd.h" 1 3 4 | |
# 18 "/usr/include/qt6/QtCore/qcontainerfwd.h" 3 4 | |
template <typename Key, typename T> class QCache; | |
template <typename Key, typename T> class QHash; | |
template <typename Key, typename T> class QMap; | |
template <typename Key, typename T> class QMultiHash; | |
template <typename Key, typename T> class QMultiMap; | |
template <typename T1, typename T2> | |
using QPair = std::pair<T1, T2>; | |
template <typename T> class QQueue; | |
template <typename T> class QSet; | |
template <typename T, std::size_t E = std::size_t(-1) > class QSpan; | |
template <typename T> class QStack; | |
constexpr qsizetype QVarLengthArrayDefaultPrealloc = 256; | |
template <typename T, qsizetype Prealloc = QVarLengthArrayDefaultPrealloc> class QVarLengthArray; | |
template <typename T> class QList; | |
class QString; | |
template<typename T> using QVector = QList<T>; | |
using QStringList = QList<QString>; | |
class QByteArray; | |
using QByteArrayList = QList<QByteArray>; | |
class QMetaType; | |
class QVariant; | |
using QVariantList = QList<QVariant>; | |
using QVariantMap = QMap<QString, QVariant>; | |
using QVariantHash = QHash<QString, QVariant>; | |
using QVariantPair = std::pair<QVariant, QVariant>; | |
# 10 "/usr/include/qt6/QtCore/qtypeinfo.h" 2 3 4 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/variant" 1 3 4 | |
# 32 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/variant" 3 4 | |
# 33 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/variant" 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 1 3 | |
# 47 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 3 | |
# 48 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 3 | |
# 37 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/variant" 2 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/enable_special_members.h" 1 3 | |
# 33 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/enable_special_members.h" 3 | |
# 34 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/enable_special_members.h" 3 | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
struct _Enable_default_constructor_tag | |
{ | |
explicit constexpr _Enable_default_constructor_tag() = default; | |
}; | |
template<bool _Switch, typename _Tag = void> | |
struct _Enable_default_constructor | |
{ | |
constexpr _Enable_default_constructor() noexcept = default; | |
constexpr _Enable_default_constructor(_Enable_default_constructor const&) | |
noexcept = default; | |
constexpr _Enable_default_constructor(_Enable_default_constructor&&) | |
noexcept = default; | |
_Enable_default_constructor& | |
operator=(_Enable_default_constructor const&) noexcept = default; | |
_Enable_default_constructor& | |
operator=(_Enable_default_constructor&&) noexcept = default; | |
constexpr explicit | |
_Enable_default_constructor(_Enable_default_constructor_tag) { } | |
}; | |
template<bool _Switch, typename _Tag = void> | |
struct _Enable_destructor { }; | |
template<bool _Copy, bool _CopyAssignment, | |
bool _Move, bool _MoveAssignment, | |
typename _Tag = void> | |
struct _Enable_copy_move { }; | |
# 96 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/enable_special_members.h" 3 | |
template<bool _Default, bool _Destructor, | |
bool _Copy, bool _CopyAssignment, | |
bool _Move, bool _MoveAssignment, | |
typename _Tag = void> | |
struct _Enable_special_members | |
: private _Enable_default_constructor<_Default, _Tag>, | |
private _Enable_destructor<_Destructor, _Tag>, | |
private _Enable_copy_move<_Copy, _CopyAssignment, | |
_Move, _MoveAssignment, | |
_Tag> | |
{ }; | |
template<typename _Tag> | |
struct _Enable_default_constructor<false, _Tag> | |
{ | |
constexpr _Enable_default_constructor() noexcept = delete; | |
constexpr _Enable_default_constructor(_Enable_default_constructor const&) | |
noexcept = default; | |
constexpr _Enable_default_constructor(_Enable_default_constructor&&) | |
noexcept = default; | |
_Enable_default_constructor& | |
operator=(_Enable_default_constructor const&) noexcept = default; | |
_Enable_default_constructor& | |
operator=(_Enable_default_constructor&&) noexcept = default; | |
constexpr explicit | |
_Enable_default_constructor(_Enable_default_constructor_tag) { } | |
}; | |
template<typename _Tag> | |
struct _Enable_destructor<false, _Tag> | |
{ ~_Enable_destructor() noexcept = delete; }; | |
template<typename _Tag> | |
struct _Enable_copy_move<false, true, true, true, _Tag> | |
{ | |
constexpr _Enable_copy_move() noexcept = default; | |
constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; | |
constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; | |
_Enable_copy_move& | |
operator=(_Enable_copy_move const&) noexcept = default; | |
_Enable_copy_move& | |
operator=(_Enable_copy_move&&) noexcept = default; | |
}; | |
template<typename _Tag> | |
struct _Enable_copy_move<true, false, true, true, _Tag> | |
{ | |
constexpr _Enable_copy_move() noexcept = default; | |
constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; | |
constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; | |
_Enable_copy_move& | |
operator=(_Enable_copy_move const&) noexcept = delete; | |
_Enable_copy_move& | |
operator=(_Enable_copy_move&&) noexcept = default; | |
}; | |
template<typename _Tag> | |
struct _Enable_copy_move<false, false, true, true, _Tag> | |
{ | |
constexpr _Enable_copy_move() noexcept = default; | |
constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; | |
constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; | |
_Enable_copy_move& | |
operator=(_Enable_copy_move const&) noexcept = delete; | |
_Enable_copy_move& | |
operator=(_Enable_copy_move&&) noexcept = default; | |
}; | |
template<typename _Tag> | |
struct _Enable_copy_move<true, true, false, true, _Tag> | |
{ | |
constexpr _Enable_copy_move() noexcept = default; | |
constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; | |
constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; | |
_Enable_copy_move& | |
operator=(_Enable_copy_move const&) noexcept = default; | |
_Enable_copy_move& | |
operator=(_Enable_copy_move&&) noexcept = default; | |
}; | |
template<typename _Tag> | |
struct _Enable_copy_move<false, true, false, true, _Tag> | |
{ | |
constexpr _Enable_copy_move() noexcept = default; | |
constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; | |
constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; | |
_Enable_copy_move& | |
operator=(_Enable_copy_move const&) noexcept = default; | |
_Enable_copy_move& | |
operator=(_Enable_copy_move&&) noexcept = default; | |
}; | |
template<typename _Tag> | |
struct _Enable_copy_move<true, false, false, true, _Tag> | |
{ | |
constexpr _Enable_copy_move() noexcept = default; | |
constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; | |
constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; | |
_Enable_copy_move& | |
operator=(_Enable_copy_move const&) noexcept = delete; | |
_Enable_copy_move& | |
operator=(_Enable_copy_move&&) noexcept = default; | |
}; | |
template<typename _Tag> | |
struct _Enable_copy_move<false, false, false, true, _Tag> | |
{ | |
constexpr _Enable_copy_move() noexcept = default; | |
constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; | |
constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; | |
_Enable_copy_move& | |
operator=(_Enable_copy_move const&) noexcept = delete; | |
_Enable_copy_move& | |
operator=(_Enable_copy_move&&) noexcept = default; | |
}; | |
template<typename _Tag> | |
struct _Enable_copy_move<true, true, true, false, _Tag> | |
{ | |
constexpr _Enable_copy_move() noexcept = default; | |
constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; | |
constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; | |
_Enable_copy_move& | |
operator=(_Enable_copy_move const&) noexcept = default; | |
_Enable_copy_move& | |
operator=(_Enable_copy_move&&) noexcept = delete; | |
}; | |
template<typename _Tag> | |
struct _Enable_copy_move<false, true, true, false, _Tag> | |
{ | |
constexpr _Enable_copy_move() noexcept = default; | |
constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; | |
constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; | |
_Enable_copy_move& | |
operator=(_Enable_copy_move const&) noexcept = default; | |
_Enable_copy_move& | |
operator=(_Enable_copy_move&&) noexcept = delete; | |
}; | |
template<typename _Tag> | |
struct _Enable_copy_move<true, false, true, false, _Tag> | |
{ | |
constexpr _Enable_copy_move() noexcept = default; | |
constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; | |
constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; | |
_Enable_copy_move& | |
operator=(_Enable_copy_move const&) noexcept = delete; | |
_Enable_copy_move& | |
operator=(_Enable_copy_move&&) noexcept = delete; | |
}; | |
template<typename _Tag> | |
struct _Enable_copy_move<false, false, true, false, _Tag> | |
{ | |
constexpr _Enable_copy_move() noexcept = default; | |
constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; | |
constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; | |
_Enable_copy_move& | |
operator=(_Enable_copy_move const&) noexcept = delete; | |
_Enable_copy_move& | |
operator=(_Enable_copy_move&&) noexcept = delete; | |
}; | |
template<typename _Tag> | |
struct _Enable_copy_move<true, true, false, false, _Tag> | |
{ | |
constexpr _Enable_copy_move() noexcept = default; | |
constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; | |
constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; | |
_Enable_copy_move& | |
operator=(_Enable_copy_move const&) noexcept = default; | |
_Enable_copy_move& | |
operator=(_Enable_copy_move&&) noexcept = delete; | |
}; | |
template<typename _Tag> | |
struct _Enable_copy_move<false, true, false, false, _Tag> | |
{ | |
constexpr _Enable_copy_move() noexcept = default; | |
constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; | |
constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; | |
_Enable_copy_move& | |
operator=(_Enable_copy_move const&) noexcept = default; | |
_Enable_copy_move& | |
operator=(_Enable_copy_move&&) noexcept = delete; | |
}; | |
template<typename _Tag> | |
struct _Enable_copy_move<true, false, false, false, _Tag> | |
{ | |
constexpr _Enable_copy_move() noexcept = default; | |
constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; | |
constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; | |
_Enable_copy_move& | |
operator=(_Enable_copy_move const&) noexcept = delete; | |
_Enable_copy_move& | |
operator=(_Enable_copy_move&&) noexcept = delete; | |
}; | |
template<typename _Tag> | |
struct _Enable_copy_move<false, false, false, false, _Tag> | |
{ | |
constexpr _Enable_copy_move() noexcept = default; | |
constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; | |
constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; | |
_Enable_copy_move& | |
operator=(_Enable_copy_move const&) noexcept = delete; | |
_Enable_copy_move& | |
operator=(_Enable_copy_move&&) noexcept = delete; | |
}; | |
} | |
# 42 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/variant" 2 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/exception_defines.h" 1 3 | |
# 43 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/variant" 2 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/functional_hash.h" 1 3 | |
# 33 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/functional_hash.h" 3 | |
# 34 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/functional_hash.h" 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/hash_bytes.h" 1 3 | |
# 33 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/hash_bytes.h" 3 | |
# 34 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/hash_bytes.h" 3 | |
namespace std | |
{ | |
size_t | |
_Hash_bytes(const void* __ptr, size_t __len, size_t __seed); | |
size_t | |
_Fnv_hash_bytes(const void* __ptr, size_t __len, size_t __seed); | |
} | |
# 37 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/functional_hash.h" 2 3 | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
# 50 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/functional_hash.h" 3 | |
template<typename _Result, typename _Arg> | |
struct __hash_base | |
{ | |
typedef _Result result_type [[__deprecated__]]; | |
typedef _Arg argument_type [[__deprecated__]]; | |
}; | |
template<typename _Tp> | |
struct hash; | |
template<typename _Tp, typename = void> | |
struct __poison_hash | |
{ | |
static constexpr bool __enable_hash_call = false; | |
private: | |
__poison_hash(__poison_hash&&); | |
~__poison_hash(); | |
}; | |
template<typename _Tp> | |
struct __poison_hash<_Tp, __void_t<decltype(hash<_Tp>()(declval<_Tp>()))>> | |
{ | |
static constexpr bool __enable_hash_call = true; | |
}; | |
template<typename _Tp, bool = is_enum<_Tp>::value> | |
struct __hash_enum | |
{ | |
private: | |
__hash_enum(__hash_enum&&); | |
~__hash_enum(); | |
}; | |
template<typename _Tp> | |
struct __hash_enum<_Tp, true> : public __hash_base<size_t, _Tp> | |
{ | |
size_t | |
operator()(_Tp __val) const noexcept | |
{ | |
using __type = typename underlying_type<_Tp>::type; | |
return hash<__type>{}(static_cast<__type>(__val)); | |
} | |
}; | |
template<typename _Tp> | |
struct hash : __hash_enum<_Tp> | |
{ }; | |
template<typename _Tp> | |
struct hash<_Tp*> : public __hash_base<size_t, _Tp*> | |
{ | |
size_t | |
operator()(_Tp* __p) const noexcept | |
{ return reinterpret_cast<size_t>(__p); } | |
}; | |
# 125 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/functional_hash.h" 3 | |
template<> struct hash<bool> : public __hash_base<size_t, bool> { size_t operator()(bool __val) const noexcept { return static_cast<size_t>(__val); } }; | |
template<> struct hash<char> : public __hash_base<size_t, char> { size_t operator()(char __val) const noexcept { return static_cast<size_t>(__val); } }; | |
template<> struct hash<signed char> : public __hash_base<size_t, signed char> { size_t operator()(signed char __val) const noexcept { return static_cast<size_t>(__val); } }; | |
template<> struct hash<unsigned char> : public __hash_base<size_t, unsigned char> { size_t operator()(unsigned char __val) const noexcept { return static_cast<size_t>(__val); } }; | |
template<> struct hash<wchar_t> : public __hash_base<size_t, wchar_t> { size_t operator()(wchar_t __val) const noexcept { return static_cast<size_t>(__val); } }; | |
template<> struct hash<char16_t> : public __hash_base<size_t, char16_t> { size_t operator()(char16_t __val) const noexcept { return static_cast<size_t>(__val); } }; | |
template<> struct hash<char32_t> : public __hash_base<size_t, char32_t> { size_t operator()(char32_t __val) const noexcept { return static_cast<size_t>(__val); } }; | |
template<> struct hash<short> : public __hash_base<size_t, short> { size_t operator()(short __val) const noexcept { return static_cast<size_t>(__val); } }; | |
template<> struct hash<int> : public __hash_base<size_t, int> { size_t operator()(int __val) const noexcept { return static_cast<size_t>(__val); } }; | |
template<> struct hash<long> : public __hash_base<size_t, long> { size_t operator()(long __val) const noexcept { return static_cast<size_t>(__val); } }; | |
template<> struct hash<long long> : public __hash_base<size_t, long long> { size_t operator()(long long __val) const noexcept { return static_cast<size_t>(__val); } }; | |
template<> struct hash<unsigned short> : public __hash_base<size_t, unsigned short> { size_t operator()(unsigned short __val) const noexcept { return static_cast<size_t>(__val); } }; | |
template<> struct hash<unsigned int> : public __hash_base<size_t, unsigned int> { size_t operator()(unsigned int __val) const noexcept { return static_cast<size_t>(__val); } }; | |
template<> struct hash<unsigned long> : public __hash_base<size_t, unsigned long> { size_t operator()(unsigned long __val) const noexcept { return static_cast<size_t>(__val); } }; | |
template<> struct hash<unsigned long long> : public __hash_base<size_t, unsigned long long> { size_t operator()(unsigned long long __val) const noexcept { return static_cast<size_t>(__val); } }; | |
# 201 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/functional_hash.h" 3 | |
struct _Hash_impl | |
{ | |
static size_t | |
hash(const void* __ptr, size_t __clength, | |
size_t __seed = static_cast<size_t>(0xc70f6907UL)) | |
{ return _Hash_bytes(__ptr, __clength, __seed); } | |
template<typename _Tp> | |
static size_t | |
hash(const _Tp& __val) | |
{ return hash(&__val, sizeof(__val)); } | |
template<typename _Tp> | |
static size_t | |
__hash_combine(const _Tp& __val, size_t __hash) | |
{ return hash(&__val, sizeof(__val), __hash); } | |
}; | |
struct _Fnv_hash_impl | |
{ | |
static size_t | |
hash(const void* __ptr, size_t __clength, | |
size_t __seed = static_cast<size_t>(2166136261UL)) | |
{ return _Fnv_hash_bytes(__ptr, __clength, __seed); } | |
template<typename _Tp> | |
static size_t | |
hash(const _Tp& __val) | |
{ return hash(&__val, sizeof(__val)); } | |
template<typename _Tp> | |
static size_t | |
__hash_combine(const _Tp& __val, size_t __hash) | |
{ return hash(&__val, sizeof(__val), __hash); } | |
}; | |
template<> | |
struct hash<float> : public __hash_base<size_t, float> | |
{ | |
size_t | |
operator()(float __val) const noexcept | |
{ | |
return __val != 0.0f ? std::_Hash_impl::hash(__val) : 0; | |
} | |
}; | |
template<> | |
struct hash<double> : public __hash_base<size_t, double> | |
{ | |
size_t | |
operator()(double __val) const noexcept | |
{ | |
return __val != 0.0 ? std::_Hash_impl::hash(__val) : 0; | |
} | |
}; | |
template<> | |
struct hash<long double> | |
: public __hash_base<size_t, long double> | |
{ | |
__attribute__ ((__pure__)) size_t | |
operator()(long double __val) const noexcept; | |
}; | |
template<> | |
struct hash<nullptr_t> : public __hash_base<size_t, nullptr_t> | |
{ | |
size_t | |
operator()(nullptr_t) const noexcept | |
{ return 0; } | |
}; | |
# 294 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/functional_hash.h" 3 | |
template<typename _Hash> | |
struct __is_fast_hash : public std::true_type | |
{ }; | |
template<> | |
struct __is_fast_hash<hash<long double>> : public std::false_type | |
{ }; | |
} | |
# 44 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/variant" 2 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/invoke.h" 1 3 | |
# 33 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/invoke.h" 3 | |
# 34 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/invoke.h" 3 | |
# 42 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/invoke.h" 3 | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
# 53 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/invoke.h" 3 | |
template<typename _Tp, typename _Up = typename __inv_unwrap<_Tp>::type> | |
constexpr _Up&& | |
__invfwd(typename remove_reference<_Tp>::type& __t) noexcept | |
{ return static_cast<_Up&&>(__t); } | |
template<typename _Res, typename _Fn, typename... _Args> | |
constexpr _Res | |
__invoke_impl(__invoke_other, _Fn&& __f, _Args&&... __args) | |
{ return std::forward<_Fn>(__f)(std::forward<_Args>(__args)...); } | |
template<typename _Res, typename _MemFun, typename _Tp, typename... _Args> | |
constexpr _Res | |
__invoke_impl(__invoke_memfun_ref, _MemFun&& __f, _Tp&& __t, | |
_Args&&... __args) | |
{ return (__invfwd<_Tp>(__t).*__f)(std::forward<_Args>(__args)...); } | |
template<typename _Res, typename _MemFun, typename _Tp, typename... _Args> | |
constexpr _Res | |
__invoke_impl(__invoke_memfun_deref, _MemFun&& __f, _Tp&& __t, | |
_Args&&... __args) | |
{ | |
return ((*std::forward<_Tp>(__t)).*__f)(std::forward<_Args>(__args)...); | |
} | |
template<typename _Res, typename _MemPtr, typename _Tp> | |
constexpr _Res | |
__invoke_impl(__invoke_memobj_ref, _MemPtr&& __f, _Tp&& __t) | |
{ return __invfwd<_Tp>(__t).*__f; } | |
template<typename _Res, typename _MemPtr, typename _Tp> | |
constexpr _Res | |
__invoke_impl(__invoke_memobj_deref, _MemPtr&& __f, _Tp&& __t) | |
{ return (*std::forward<_Tp>(__t)).*__f; } | |
template<typename _Callable, typename... _Args> | |
constexpr typename __invoke_result<_Callable, _Args...>::type | |
__invoke(_Callable&& __fn, _Args&&... __args) | |
noexcept(__is_nothrow_invocable<_Callable, _Args...>::value) | |
{ | |
using __result = __invoke_result<_Callable, _Args...>; | |
using __type = typename __result::type; | |
using __tag = typename __result::__invoke_type; | |
return std::__invoke_impl<__type>(__tag{}, std::forward<_Callable>(__fn), | |
std::forward<_Args>(__args)...); | |
} | |
template<typename _Res, typename _Callable, typename... _Args> | |
constexpr enable_if_t<is_invocable_r_v<_Res, _Callable, _Args...>, _Res> | |
__invoke_r(_Callable&& __fn, _Args&&... __args) | |
noexcept(is_nothrow_invocable_r_v<_Res, _Callable, _Args...>) | |
{ | |
using __result = __invoke_result<_Callable, _Args...>; | |
using __type = typename __result::type; | |
using __tag = typename __result::__invoke_type; | |
if constexpr (is_void_v<_Res>) | |
std::__invoke_impl<__type>(__tag{}, std::forward<_Callable>(__fn), | |
std::forward<_Args>(__args)...); | |
else | |
return std::__invoke_impl<__type>(__tag{}, | |
std::forward<_Callable>(__fn), | |
std::forward<_Args>(__args)...); | |
} | |
# 155 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/invoke.h" 3 | |
} | |
# 45 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/variant" 2 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/parse_numbers.h" 1 3 | |
# 33 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/parse_numbers.h" 3 | |
# 34 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/parse_numbers.h" 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/ext/numeric_traits.h" 1 3 | |
# 32 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/ext/numeric_traits.h" 3 | |
# 33 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/ext/numeric_traits.h" 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/cpp_type_traits.h" 1 3 | |
# 35 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/cpp_type_traits.h" 3 | |
# 36 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/cpp_type_traits.h" 3 | |
# 67 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/cpp_type_traits.h" 3 | |
extern "C++" { | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
struct __true_type { }; | |
struct __false_type { }; | |
template<bool> | |
struct __truth_type | |
{ typedef __false_type __type; }; | |
template<> | |
struct __truth_type<true> | |
{ typedef __true_type __type; }; | |
template<class _Sp, class _Tp> | |
struct __traitor | |
{ | |
enum { __value = bool(_Sp::__value) || bool(_Tp::__value) }; | |
typedef typename __truth_type<__value>::__type __type; | |
}; | |
template<typename, typename> | |
struct __are_same | |
{ | |
enum { __value = 0 }; | |
typedef __false_type __type; | |
}; | |
template<typename _Tp> | |
struct __are_same<_Tp, _Tp> | |
{ | |
enum { __value = 1 }; | |
typedef __true_type __type; | |
}; | |
template<typename _Tp> | |
struct __is_void | |
{ | |
enum { __value = 0 }; | |
typedef __false_type __type; | |
}; | |
template<> | |
struct __is_void<void> | |
{ | |
enum { __value = 1 }; | |
typedef __true_type __type; | |
}; | |
template<typename _Tp> | |
struct __is_integer | |
{ | |
enum { __value = 0 }; | |
typedef __false_type __type; | |
}; | |
template<> | |
struct __is_integer<bool> | |
{ | |
enum { __value = 1 }; | |
typedef __true_type __type; | |
}; | |
template<> | |
struct __is_integer<char> | |
{ | |
enum { __value = 1 }; | |
typedef __true_type __type; | |
}; | |
template<> | |
struct __is_integer<signed char> | |
{ | |
enum { __value = 1 }; | |
typedef __true_type __type; | |
}; | |
template<> | |
struct __is_integer<unsigned char> | |
{ | |
enum { __value = 1 }; | |
typedef __true_type __type; | |
}; | |
template<> | |
struct __is_integer<wchar_t> | |
{ | |
enum { __value = 1 }; | |
typedef __true_type __type; | |
}; | |
# 184 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/cpp_type_traits.h" 3 | |
template<> | |
struct __is_integer<char16_t> | |
{ | |
enum { __value = 1 }; | |
typedef __true_type __type; | |
}; | |
template<> | |
struct __is_integer<char32_t> | |
{ | |
enum { __value = 1 }; | |
typedef __true_type __type; | |
}; | |
template<> | |
struct __is_integer<short> | |
{ | |
enum { __value = 1 }; | |
typedef __true_type __type; | |
}; | |
template<> | |
struct __is_integer<unsigned short> | |
{ | |
enum { __value = 1 }; | |
typedef __true_type __type; | |
}; | |
template<> | |
struct __is_integer<int> | |
{ | |
enum { __value = 1 }; | |
typedef __true_type __type; | |
}; | |
template<> | |
struct __is_integer<unsigned int> | |
{ | |
enum { __value = 1 }; | |
typedef __true_type __type; | |
}; | |
template<> | |
struct __is_integer<long> | |
{ | |
enum { __value = 1 }; | |
typedef __true_type __type; | |
}; | |
template<> | |
struct __is_integer<unsigned long> | |
{ | |
enum { __value = 1 }; | |
typedef __true_type __type; | |
}; | |
template<> | |
struct __is_integer<long long> | |
{ | |
enum { __value = 1 }; | |
typedef __true_type __type; | |
}; | |
template<> | |
struct __is_integer<unsigned long long> | |
{ | |
enum { __value = 1 }; | |
typedef __true_type __type; | |
}; | |
# 289 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/cpp_type_traits.h" 3 | |
template<typename _Tp> | |
struct __is_floating | |
{ | |
enum { __value = 0 }; | |
typedef __false_type __type; | |
}; | |
template<> | |
struct __is_floating<float> | |
{ | |
enum { __value = 1 }; | |
typedef __true_type __type; | |
}; | |
template<> | |
struct __is_floating<double> | |
{ | |
enum { __value = 1 }; | |
typedef __true_type __type; | |
}; | |
template<> | |
struct __is_floating<long double> | |
{ | |
enum { __value = 1 }; | |
typedef __true_type __type; | |
}; | |
# 366 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/cpp_type_traits.h" 3 | |
template<typename _Tp> | |
struct __is_pointer | |
{ | |
enum { __value = 0 }; | |
typedef __false_type __type; | |
}; | |
template<typename _Tp> | |
struct __is_pointer<_Tp*> | |
{ | |
enum { __value = 1 }; | |
typedef __true_type __type; | |
}; | |
template<typename _Tp> | |
struct __is_arithmetic | |
: public __traitor<__is_integer<_Tp>, __is_floating<_Tp> > | |
{ }; | |
template<typename _Tp> | |
struct __is_scalar | |
: public __traitor<__is_arithmetic<_Tp>, __is_pointer<_Tp> > | |
{ }; | |
template<typename _Tp> | |
struct __is_char | |
{ | |
enum { __value = 0 }; | |
typedef __false_type __type; | |
}; | |
template<> | |
struct __is_char<char> | |
{ | |
enum { __value = 1 }; | |
typedef __true_type __type; | |
}; | |
template<> | |
struct __is_char<wchar_t> | |
{ | |
enum { __value = 1 }; | |
typedef __true_type __type; | |
}; | |
template<typename _Tp> | |
struct __is_byte | |
{ | |
enum { __value = 0 }; | |
typedef __false_type __type; | |
}; | |
template<> | |
struct __is_byte<char> | |
{ | |
enum { __value = 1 }; | |
typedef __true_type __type; | |
}; | |
template<> | |
struct __is_byte<signed char> | |
{ | |
enum { __value = 1 }; | |
typedef __true_type __type; | |
}; | |
template<> | |
struct __is_byte<unsigned char> | |
{ | |
enum { __value = 1 }; | |
typedef __true_type __type; | |
}; | |
enum class byte : unsigned char; | |
template<> | |
struct __is_byte<byte> | |
{ | |
enum { __value = 1 }; | |
typedef __true_type __type; | |
}; | |
# 470 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/cpp_type_traits.h" 3 | |
template<typename> struct iterator_traits; | |
template<typename _Tp> | |
struct __is_nonvolatile_trivially_copyable | |
{ | |
enum { __value = __is_trivially_copyable(_Tp) }; | |
}; | |
template<typename _Tp> | |
struct __is_nonvolatile_trivially_copyable<volatile _Tp> | |
{ | |
enum { __value = 0 }; | |
}; | |
template<typename _OutputIter, typename _InputIter> | |
struct __memcpyable | |
{ | |
enum { __value = 0 }; | |
}; | |
template<typename _Tp> | |
struct __memcpyable<_Tp*, _Tp*> | |
: __is_nonvolatile_trivially_copyable<_Tp> | |
{ }; | |
template<typename _Tp> | |
struct __memcpyable<_Tp*, const _Tp*> | |
: __is_nonvolatile_trivially_copyable<_Tp> | |
{ }; | |
template<typename _Iter1, typename _Iter2> | |
struct __memcmpable | |
{ | |
enum { __value = 0 }; | |
}; | |
template<typename _Tp> | |
struct __memcmpable<_Tp*, _Tp*> | |
: __is_nonvolatile_trivially_copyable<_Tp> | |
{ }; | |
template<typename _Tp> | |
struct __memcmpable<const _Tp*, _Tp*> | |
: __is_nonvolatile_trivially_copyable<_Tp> | |
{ }; | |
template<typename _Tp> | |
struct __memcmpable<_Tp*, const _Tp*> | |
: __is_nonvolatile_trivially_copyable<_Tp> | |
{ }; | |
template<typename _Tp, bool _TreatAsBytes = | |
__is_byte<_Tp>::__value | |
> | |
struct __is_memcmp_ordered | |
{ | |
static const bool __value = _Tp(-1) > _Tp(1); | |
}; | |
template<typename _Tp> | |
struct __is_memcmp_ordered<_Tp, false> | |
{ | |
static const bool __value = false; | |
}; | |
template<typename _Tp, typename _Up, bool = sizeof(_Tp) == sizeof(_Up)> | |
struct __is_memcmp_ordered_with | |
{ | |
static const bool __value = __is_memcmp_ordered<_Tp>::__value | |
&& __is_memcmp_ordered<_Up>::__value; | |
}; | |
template<typename _Tp, typename _Up> | |
struct __is_memcmp_ordered_with<_Tp, _Up, false> | |
{ | |
static const bool __value = false; | |
}; | |
# 579 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/cpp_type_traits.h" 3 | |
template<> | |
struct __is_memcmp_ordered_with<std::byte, std::byte, true> | |
{ static constexpr bool __value = true; }; | |
template<typename _Tp, bool _SameSize> | |
struct __is_memcmp_ordered_with<_Tp, std::byte, _SameSize> | |
{ static constexpr bool __value = false; }; | |
template<typename _Up, bool _SameSize> | |
struct __is_memcmp_ordered_with<std::byte, _Up, _SameSize> | |
{ static constexpr bool __value = false; }; | |
template<typename _Tp> | |
struct __is_move_iterator | |
{ | |
enum { __value = 0 }; | |
typedef __false_type __type; | |
}; | |
template<typename _Iterator> | |
inline _Iterator | |
__miter_base(_Iterator __it) | |
{ return __it; } | |
} | |
} | |
# 35 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/ext/numeric_traits.h" 2 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/ext/type_traits.h" 1 3 | |
# 32 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/ext/type_traits.h" 3 | |
# 33 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/ext/type_traits.h" 3 | |
extern "C++" { | |
namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) | |
{ | |
template<bool, typename> | |
struct __enable_if | |
{ }; | |
template<typename _Tp> | |
struct __enable_if<true, _Tp> | |
{ typedef _Tp __type; }; | |
template<bool _Cond, typename _Iftrue, typename _Iffalse> | |
struct __conditional_type | |
{ typedef _Iftrue __type; }; | |
template<typename _Iftrue, typename _Iffalse> | |
struct __conditional_type<false, _Iftrue, _Iffalse> | |
{ typedef _Iffalse __type; }; | |
template<typename _Tp> | |
struct __add_unsigned | |
{ | |
private: | |
typedef __enable_if<std::__is_integer<_Tp>::__value, _Tp> __if_type; | |
public: | |
typedef typename __if_type::__type __type; | |
}; | |
template<> | |
struct __add_unsigned<char> | |
{ typedef unsigned char __type; }; | |
template<> | |
struct __add_unsigned<signed char> | |
{ typedef unsigned char __type; }; | |
template<> | |
struct __add_unsigned<short> | |
{ typedef unsigned short __type; }; | |
template<> | |
struct __add_unsigned<int> | |
{ typedef unsigned int __type; }; | |
template<> | |
struct __add_unsigned<long> | |
{ typedef unsigned long __type; }; | |
template<> | |
struct __add_unsigned<long long> | |
{ typedef unsigned long long __type; }; | |
template<> | |
struct __add_unsigned<bool>; | |
template<> | |
struct __add_unsigned<wchar_t>; | |
template<typename _Tp> | |
struct __remove_unsigned | |
{ | |
private: | |
typedef __enable_if<std::__is_integer<_Tp>::__value, _Tp> __if_type; | |
public: | |
typedef typename __if_type::__type __type; | |
}; | |
template<> | |
struct __remove_unsigned<char> | |
{ typedef signed char __type; }; | |
template<> | |
struct __remove_unsigned<unsigned char> | |
{ typedef signed char __type; }; | |
template<> | |
struct __remove_unsigned<unsigned short> | |
{ typedef short __type; }; | |
template<> | |
struct __remove_unsigned<unsigned int> | |
{ typedef int __type; }; | |
template<> | |
struct __remove_unsigned<unsigned long> | |
{ typedef long __type; }; | |
template<> | |
struct __remove_unsigned<unsigned long long> | |
{ typedef long long __type; }; | |
template<> | |
struct __remove_unsigned<bool>; | |
template<> | |
struct __remove_unsigned<wchar_t>; | |
template<typename _Type> | |
constexpr | |
inline bool | |
__is_null_pointer(_Type* __ptr) | |
{ return __ptr == 0; } | |
template<typename _Type> | |
constexpr | |
inline bool | |
__is_null_pointer(_Type) | |
{ return false; } | |
constexpr bool | |
__is_null_pointer(std::nullptr_t) | |
{ return true; } | |
template<typename _Tp, bool = std::__is_integer<_Tp>::__value> | |
struct __promote | |
{ typedef double __type; }; | |
template<typename _Tp> | |
struct __promote<_Tp, false> | |
{ }; | |
template<> | |
struct __promote<long double> | |
{ typedef long double __type; }; | |
template<> | |
struct __promote<double> | |
{ typedef double __type; }; | |
template<> | |
struct __promote<float> | |
{ typedef float __type; }; | |
# 225 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/ext/type_traits.h" 3 | |
template<typename... _Tp> | |
using __promoted_t = decltype((typename __promote<_Tp>::__type(0) + ...)); | |
template<typename _Tp, typename _Up> | |
using __promote_2 = __promote<__promoted_t<_Tp, _Up>>; | |
template<typename _Tp, typename _Up, typename _Vp> | |
using __promote_3 = __promote<__promoted_t<_Tp, _Up, _Vp>>; | |
template<typename _Tp, typename _Up, typename _Vp, typename _Wp> | |
using __promote_4 = __promote<__promoted_t<_Tp, _Up, _Vp, _Wp>>; | |
# 269 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/ext/type_traits.h" 3 | |
} | |
} | |
# 36 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/ext/numeric_traits.h" 2 3 | |
namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) | |
{ | |
# 50 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/ext/numeric_traits.h" 3 | |
template<typename _Tp> | |
struct __is_integer_nonstrict | |
: public std::__is_integer<_Tp> | |
{ | |
using std::__is_integer<_Tp>::__value; | |
enum { __width = __value ? sizeof(_Tp) * 8 : 0 }; | |
}; | |
template<typename _Value> | |
struct __numeric_traits_integer | |
{ | |
static_assert(__is_integer_nonstrict<_Value>::__value, | |
"invalid specialization"); | |
static const bool __is_signed = (_Value)(-1) < 0; | |
static const int __digits | |
= __is_integer_nonstrict<_Value>::__width - __is_signed; | |
static const _Value __max = __is_signed | |
? (((((_Value)1 << (__digits - 1)) - 1) << 1) + 1) | |
: ~(_Value)0; | |
static const _Value __min = __is_signed ? -__max - 1 : (_Value)0; | |
}; | |
template<typename _Value> | |
const _Value __numeric_traits_integer<_Value>::__min; | |
template<typename _Value> | |
const _Value __numeric_traits_integer<_Value>::__max; | |
template<typename _Value> | |
const bool __numeric_traits_integer<_Value>::__is_signed; | |
template<typename _Value> | |
const int __numeric_traits_integer<_Value>::__digits; | |
# 130 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/ext/numeric_traits.h" 3 | |
__extension__ template<> struct __is_integer_nonstrict<__int128> { enum { __value = 1 }; typedef std::__true_type __type; enum { __width = 128 }; }; __extension__ template<> struct __is_integer_nonstrict<unsigned __int128> { enum { __value = 1 }; typedef std::__true_type __type; enum { __width = 128 }; }; | |
template<typename _Tp> | |
using __int_traits = __numeric_traits_integer<_Tp>; | |
# 157 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/ext/numeric_traits.h" 3 | |
template<typename _Value> | |
struct __numeric_traits_floating | |
{ | |
static const int __max_digits10 = (2 + (std::__are_same<_Value, float>::__value ? 24 : std::__are_same<_Value, double>::__value ? 53 : 64) * 643L / 2136); | |
static const bool __is_signed = true; | |
static const int __digits10 = (std::__are_same<_Value, float>::__value ? 6 : std::__are_same<_Value, double>::__value ? 15 : 18); | |
static const int __max_exponent10 = (std::__are_same<_Value, float>::__value ? 38 : std::__are_same<_Value, double>::__value ? 308 : 4932); | |
}; | |
template<typename _Value> | |
const int __numeric_traits_floating<_Value>::__max_digits10; | |
template<typename _Value> | |
const bool __numeric_traits_floating<_Value>::__is_signed; | |
template<typename _Value> | |
const int __numeric_traits_floating<_Value>::__digits10; | |
template<typename _Value> | |
const int __numeric_traits_floating<_Value>::__max_exponent10; | |
template<typename _Value> | |
struct __numeric_traits | |
: public __numeric_traits_integer<_Value> | |
{ }; | |
template<> | |
struct __numeric_traits<float> | |
: public __numeric_traits_floating<float> | |
{ }; | |
template<> | |
struct __numeric_traits<double> | |
: public __numeric_traits_floating<double> | |
{ }; | |
template<> | |
struct __numeric_traits<long double> | |
: public __numeric_traits_floating<long double> | |
{ }; | |
# 238 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/ext/numeric_traits.h" 3 | |
} | |
# 41 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/parse_numbers.h" 2 3 | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
namespace __parse_int | |
{ | |
template<unsigned _Base, char _Dig> | |
struct _Digit; | |
template<unsigned _Base> | |
struct _Digit<_Base, '0'> : integral_constant<unsigned, 0> | |
{ | |
using __valid = true_type; | |
}; | |
template<unsigned _Base> | |
struct _Digit<_Base, '1'> : integral_constant<unsigned, 1> | |
{ | |
using __valid = true_type; | |
}; | |
template<unsigned _Base, unsigned _Val> | |
struct _Digit_impl : integral_constant<unsigned, _Val> | |
{ | |
static_assert(_Base > _Val, "invalid digit"); | |
using __valid = true_type; | |
}; | |
template<unsigned _Base> | |
struct _Digit<_Base, '2'> : _Digit_impl<_Base, 2> | |
{ }; | |
template<unsigned _Base> | |
struct _Digit<_Base, '3'> : _Digit_impl<_Base, 3> | |
{ }; | |
template<unsigned _Base> | |
struct _Digit<_Base, '4'> : _Digit_impl<_Base, 4> | |
{ }; | |
template<unsigned _Base> | |
struct _Digit<_Base, '5'> : _Digit_impl<_Base, 5> | |
{ }; | |
template<unsigned _Base> | |
struct _Digit<_Base, '6'> : _Digit_impl<_Base, 6> | |
{ }; | |
template<unsigned _Base> | |
struct _Digit<_Base, '7'> : _Digit_impl<_Base, 7> | |
{ }; | |
template<unsigned _Base> | |
struct _Digit<_Base, '8'> : _Digit_impl<_Base, 8> | |
{ }; | |
template<unsigned _Base> | |
struct _Digit<_Base, '9'> : _Digit_impl<_Base, 9> | |
{ }; | |
template<unsigned _Base> | |
struct _Digit<_Base, 'a'> : _Digit_impl<_Base, 0xa> | |
{ }; | |
template<unsigned _Base> | |
struct _Digit<_Base, 'A'> : _Digit_impl<_Base, 0xa> | |
{ }; | |
template<unsigned _Base> | |
struct _Digit<_Base, 'b'> : _Digit_impl<_Base, 0xb> | |
{ }; | |
template<unsigned _Base> | |
struct _Digit<_Base, 'B'> : _Digit_impl<_Base, 0xb> | |
{ }; | |
template<unsigned _Base> | |
struct _Digit<_Base, 'c'> : _Digit_impl<_Base, 0xc> | |
{ }; | |
template<unsigned _Base> | |
struct _Digit<_Base, 'C'> : _Digit_impl<_Base, 0xc> | |
{ }; | |
template<unsigned _Base> | |
struct _Digit<_Base, 'd'> : _Digit_impl<_Base, 0xd> | |
{ }; | |
template<unsigned _Base> | |
struct _Digit<_Base, 'D'> : _Digit_impl<_Base, 0xd> | |
{ }; | |
template<unsigned _Base> | |
struct _Digit<_Base, 'e'> : _Digit_impl<_Base, 0xe> | |
{ }; | |
template<unsigned _Base> | |
struct _Digit<_Base, 'E'> : _Digit_impl<_Base, 0xe> | |
{ }; | |
template<unsigned _Base> | |
struct _Digit<_Base, 'f'> : _Digit_impl<_Base, 0xf> | |
{ }; | |
template<unsigned _Base> | |
struct _Digit<_Base, 'F'> : _Digit_impl<_Base, 0xf> | |
{ }; | |
template<unsigned _Base> | |
struct _Digit<_Base, '\''> : integral_constant<unsigned, 0> | |
{ | |
using __valid = false_type; | |
}; | |
template<unsigned long long _Val> | |
using __ull_constant = integral_constant<unsigned long long, _Val>; | |
template<unsigned _Base, char _Dig, char... _Digs> | |
struct _Power_help | |
{ | |
using __next = typename _Power_help<_Base, _Digs...>::type; | |
using __valid_digit = typename _Digit<_Base, _Dig>::__valid; | |
using type | |
= __ull_constant<__next::value * (__valid_digit{} ? _Base : 1ULL)>; | |
}; | |
template<unsigned _Base, char _Dig> | |
struct _Power_help<_Base, _Dig> | |
{ | |
using __valid_digit = typename _Digit<_Base, _Dig>::__valid; | |
using type = __ull_constant<__valid_digit::value>; | |
}; | |
template<unsigned _Base, char... _Digs> | |
struct _Power : _Power_help<_Base, _Digs...>::type | |
{ }; | |
template<unsigned _Base> | |
struct _Power<_Base> : __ull_constant<0> | |
{ }; | |
template<unsigned _Base, unsigned long long _Pow, char _Dig, char... _Digs> | |
struct _Number_help | |
{ | |
using __digit = _Digit<_Base, _Dig>; | |
using __valid_digit = typename __digit::__valid; | |
using __next = _Number_help<_Base, | |
__valid_digit::value ? _Pow / _Base : _Pow, | |
_Digs...>; | |
using type = __ull_constant<_Pow * __digit::value + __next::type::value>; | |
static_assert((type::value / _Pow) == __digit::value, | |
"integer literal does not fit in unsigned long long"); | |
}; | |
template<unsigned _Base, unsigned long long _Pow, char _Dig, char..._Digs> | |
struct _Number_help<_Base, _Pow, '\'', _Dig, _Digs...> | |
: _Number_help<_Base, _Pow, _Dig, _Digs...> | |
{ }; | |
template<unsigned _Base, char _Dig> | |
struct _Number_help<_Base, 1ULL, _Dig> | |
{ | |
using type = __ull_constant<_Digit<_Base, _Dig>::value>; | |
}; | |
template<unsigned _Base, char... _Digs> | |
struct _Number | |
: _Number_help<_Base, _Power<_Base, _Digs...>::value, _Digs...>::type | |
{ }; | |
template<unsigned _Base> | |
struct _Number<_Base> | |
: __ull_constant<0> | |
{ }; | |
template<char... _Digs> | |
struct _Parse_int; | |
template<char... _Digs> | |
struct _Parse_int<'0', 'b', _Digs...> | |
: _Number<2U, _Digs...>::type | |
{ }; | |
template<char... _Digs> | |
struct _Parse_int<'0', 'B', _Digs...> | |
: _Number<2U, _Digs...>::type | |
{ }; | |
template<char... _Digs> | |
struct _Parse_int<'0', 'x', _Digs...> | |
: _Number<16U, _Digs...>::type | |
{ }; | |
template<char... _Digs> | |
struct _Parse_int<'0', 'X', _Digs...> | |
: _Number<16U, _Digs...>::type | |
{ }; | |
template<char... _Digs> | |
struct _Parse_int<'0', _Digs...> | |
: _Number<8U, _Digs...>::type | |
{ }; | |
template<char... _Digs> | |
struct _Parse_int | |
: _Number<10U, _Digs...>::type | |
{ }; | |
} | |
namespace __select_int | |
{ | |
template<unsigned long long _Val, typename... _Ints> | |
struct _Select_int_base; | |
template<unsigned long long _Val, typename _IntType, typename... _Ints> | |
struct _Select_int_base<_Val, _IntType, _Ints...> | |
: __conditional_t<(_Val <= __gnu_cxx::__int_traits<_IntType>::__max), | |
integral_constant<_IntType, (_IntType)_Val>, | |
_Select_int_base<_Val, _Ints...>> | |
{ }; | |
template<unsigned long long _Val> | |
struct _Select_int_base<_Val> | |
{ }; | |
template<char... _Digs> | |
using _Select_int = typename _Select_int_base< | |
__parse_int::_Parse_int<_Digs...>::value, | |
unsigned char, | |
unsigned short, | |
unsigned int, | |
unsigned long, | |
unsigned long long | |
>::type; | |
} | |
} | |
# 46 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/variant" 2 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator_base_funcs.h" 1 3 | |
# 62 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator_base_funcs.h" 3 | |
# 63 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator_base_funcs.h" 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/concept_check.h" 1 3 | |
# 33 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/concept_check.h" 3 | |
# 34 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/concept_check.h" 3 | |
# 65 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator_base_funcs.h" 2 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/debug/assertions.h" 1 3 | |
# 66 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator_base_funcs.h" 2 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator_base_types.h" 1 3 | |
# 62 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator_base_types.h" 3 | |
# 63 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator_base_types.h" 3 | |
# 74 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator_base_types.h" 3 | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
# 93 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator_base_types.h" 3 | |
struct input_iterator_tag { }; | |
struct output_iterator_tag { }; | |
struct forward_iterator_tag : public input_iterator_tag { }; | |
struct bidirectional_iterator_tag : public forward_iterator_tag { }; | |
struct random_access_iterator_tag : public bidirectional_iterator_tag { }; | |
# 125 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator_base_types.h" 3 | |
template<typename _Category, typename _Tp, typename _Distance = ptrdiff_t, | |
typename _Pointer = _Tp*, typename _Reference = _Tp&> | |
struct [[__deprecated__]] iterator | |
{ | |
typedef _Category iterator_category; | |
typedef _Tp value_type; | |
typedef _Distance difference_type; | |
typedef _Pointer pointer; | |
typedef _Reference reference; | |
}; | |
# 149 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator_base_types.h" 3 | |
template<typename _Iterator> | |
struct iterator_traits; | |
template<typename _Iterator, typename = __void_t<>> | |
struct __iterator_traits { }; | |
template<typename _Iterator> | |
struct __iterator_traits<_Iterator, | |
__void_t<typename _Iterator::iterator_category, | |
typename _Iterator::value_type, | |
typename _Iterator::difference_type, | |
typename _Iterator::pointer, | |
typename _Iterator::reference>> | |
{ | |
typedef typename _Iterator::iterator_category iterator_category; | |
typedef typename _Iterator::value_type value_type; | |
typedef typename _Iterator::difference_type difference_type; | |
typedef typename _Iterator::pointer pointer; | |
typedef typename _Iterator::reference reference; | |
}; | |
template<typename _Iterator> | |
struct iterator_traits | |
: public __iterator_traits<_Iterator> { }; | |
# 209 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator_base_types.h" 3 | |
template<typename _Tp> | |
struct iterator_traits<_Tp*> | |
{ | |
typedef random_access_iterator_tag iterator_category; | |
typedef _Tp value_type; | |
typedef ptrdiff_t difference_type; | |
typedef _Tp* pointer; | |
typedef _Tp& reference; | |
}; | |
template<typename _Tp> | |
struct iterator_traits<const _Tp*> | |
{ | |
typedef random_access_iterator_tag iterator_category; | |
typedef _Tp value_type; | |
typedef ptrdiff_t difference_type; | |
typedef const _Tp* pointer; | |
typedef const _Tp& reference; | |
}; | |
template<typename _Iter> | |
__attribute__((__always_inline__)) | |
inline constexpr | |
typename iterator_traits<_Iter>::iterator_category | |
__iterator_category(const _Iter&) | |
{ return typename iterator_traits<_Iter>::iterator_category(); } | |
template<typename _Iter> | |
using __iter_category_t | |
= typename iterator_traits<_Iter>::iterator_category; | |
template<typename _InIter> | |
using _RequireInputIter = | |
__enable_if_t<is_convertible<__iter_category_t<_InIter>, | |
input_iterator_tag>::value>; | |
template<typename _It, | |
typename _Cat = __iter_category_t<_It>> | |
struct __is_random_access_iter | |
: is_base_of<random_access_iterator_tag, _Cat> | |
{ | |
typedef is_base_of<random_access_iterator_tag, _Cat> _Base; | |
enum { __value = _Base::value }; | |
}; | |
} | |
# 67 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator_base_funcs.h" 2 3 | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
template <typename> struct _List_iterator; | |
template <typename> struct _List_const_iterator; | |
template<typename _InputIterator> | |
inline constexpr | |
typename iterator_traits<_InputIterator>::difference_type | |
__distance(_InputIterator __first, _InputIterator __last, | |
input_iterator_tag) | |
{ | |
typename iterator_traits<_InputIterator>::difference_type __n = 0; | |
while (__first != __last) | |
{ | |
++__first; | |
++__n; | |
} | |
return __n; | |
} | |
template<typename _RandomAccessIterator> | |
__attribute__((__always_inline__)) | |
inline constexpr | |
typename iterator_traits<_RandomAccessIterator>::difference_type | |
__distance(_RandomAccessIterator __first, _RandomAccessIterator __last, | |
random_access_iterator_tag) | |
{ | |
return __last - __first; | |
} | |
template<typename _Tp> | |
ptrdiff_t | |
__distance(std::_List_iterator<_Tp>, | |
std::_List_iterator<_Tp>, | |
input_iterator_tag); | |
template<typename _Tp> | |
ptrdiff_t | |
__distance(std::_List_const_iterator<_Tp>, | |
std::_List_const_iterator<_Tp>, | |
input_iterator_tag); | |
template<typename _OutputIterator> | |
void | |
__distance(_OutputIterator, _OutputIterator, output_iterator_tag) = delete; | |
# 144 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator_base_funcs.h" 3 | |
template<typename _InputIterator> | |
[[__nodiscard__]] __attribute__((__always_inline__)) | |
inline constexpr | |
typename iterator_traits<_InputIterator>::difference_type | |
distance(_InputIterator __first, _InputIterator __last) | |
{ | |
return std::__distance(__first, __last, | |
std::__iterator_category(__first)); | |
} | |
template<typename _InputIterator, typename _Distance> | |
inline constexpr void | |
__advance(_InputIterator& __i, _Distance __n, input_iterator_tag) | |
{ | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__n >= 0), false)) std::__glibcxx_assert_fail(); } while (false); | |
while (__n--) | |
++__i; | |
} | |
template<typename _BidirectionalIterator, typename _Distance> | |
inline constexpr void | |
__advance(_BidirectionalIterator& __i, _Distance __n, | |
bidirectional_iterator_tag) | |
{ | |
if (__n > 0) | |
while (__n--) | |
++__i; | |
else | |
while (__n++) | |
--__i; | |
} | |
template<typename _RandomAccessIterator, typename _Distance> | |
inline constexpr void | |
__advance(_RandomAccessIterator& __i, _Distance __n, | |
random_access_iterator_tag) | |
{ | |
if (__builtin_constant_p(__n) && __n == 1) | |
++__i; | |
else if (__builtin_constant_p(__n) && __n == -1) | |
--__i; | |
else | |
__i += __n; | |
} | |
template<typename _OutputIterator, typename _Distance> | |
void | |
__advance(_OutputIterator&, _Distance, output_iterator_tag) = delete; | |
# 217 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator_base_funcs.h" 3 | |
template<typename _InputIterator, typename _Distance> | |
__attribute__((__always_inline__)) | |
inline constexpr void | |
advance(_InputIterator& __i, _Distance __n) | |
{ | |
typename iterator_traits<_InputIterator>::difference_type __d = __n; | |
std::__advance(__i, __d, std::__iterator_category(__i)); | |
} | |
template<typename _InputIterator> | |
[[__nodiscard__]] [[__gnu__::__always_inline__]] | |
inline constexpr _InputIterator | |
next(_InputIterator __x, typename | |
iterator_traits<_InputIterator>::difference_type __n = 1) | |
{ | |
std::advance(__x, __n); | |
return __x; | |
} | |
template<typename _BidirectionalIterator> | |
[[__nodiscard__]] [[__gnu__::__always_inline__]] | |
inline constexpr _BidirectionalIterator | |
prev(_BidirectionalIterator __x, typename | |
iterator_traits<_BidirectionalIterator>::difference_type __n = 1) | |
{ | |
std::advance(__x, -__n); | |
return __x; | |
} | |
} | |
# 47 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/variant" 2 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_construct.h" 1 3 | |
# 59 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_construct.h" 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/new" 1 3 | |
# 38 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/new" 3 | |
# 39 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/new" 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/exception.h" 1 3 | |
# 34 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/exception.h" 3 | |
# 35 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/exception.h" 3 | |
extern "C++" { | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
# 59 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/exception.h" 3 | |
class exception | |
{ | |
public: | |
exception() noexcept { } | |
virtual ~exception() noexcept; | |
exception(const exception&) = default; | |
exception& operator=(const exception&) = default; | |
exception(exception&&) = default; | |
exception& operator=(exception&&) = default; | |
virtual const char* | |
what() const noexcept; | |
}; | |
} | |
} | |
# 42 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/new" 2 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 1 3 | |
# 47 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 3 | |
# 48 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 3 | |
# 47 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/new" 2 3 | |
#pragma GCC visibility push(default) | |
extern "C++" { | |
namespace std | |
{ | |
class bad_alloc : public exception | |
{ | |
public: | |
bad_alloc() throw() { } | |
bad_alloc(const bad_alloc&) = default; | |
bad_alloc& operator=(const bad_alloc&) = default; | |
virtual ~bad_alloc() throw(); | |
virtual const char* what() const throw(); | |
}; | |
class bad_array_new_length : public bad_alloc | |
{ | |
public: | |
bad_array_new_length() throw() { } | |
virtual ~bad_array_new_length() throw(); | |
virtual const char* what() const throw(); | |
}; | |
enum class align_val_t: size_t {}; | |
struct nothrow_t | |
{ | |
explicit nothrow_t() = default; | |
}; | |
extern const nothrow_t nothrow; | |
typedef void (*new_handler)(); | |
new_handler set_new_handler(new_handler) throw(); | |
new_handler get_new_handler() noexcept; | |
} | |
# 131 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/new" 3 | |
[[__nodiscard__]] void* operator new(std::size_t) | |
__attribute__((__externally_visible__)); | |
[[__nodiscard__]] void* operator new[](std::size_t) | |
__attribute__((__externally_visible__)); | |
void operator delete(void*) noexcept | |
__attribute__((__externally_visible__)); | |
void operator delete[](void*) noexcept | |
__attribute__((__externally_visible__)); | |
void operator delete(void*, std::size_t) noexcept | |
__attribute__((__externally_visible__)); | |
void operator delete[](void*, std::size_t) noexcept | |
__attribute__((__externally_visible__)); | |
[[__nodiscard__]] void* operator new(std::size_t, const std::nothrow_t&) noexcept | |
__attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); | |
[[__nodiscard__]] void* operator new[](std::size_t, const std::nothrow_t&) noexcept | |
__attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); | |
void operator delete(void*, const std::nothrow_t&) noexcept | |
__attribute__((__externally_visible__)); | |
void operator delete[](void*, const std::nothrow_t&) noexcept | |
__attribute__((__externally_visible__)); | |
[[__nodiscard__]] void* operator new(std::size_t, std::align_val_t) | |
__attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); | |
[[__nodiscard__]] void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&) | |
noexcept __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); | |
void operator delete(void*, std::align_val_t) | |
noexcept __attribute__((__externally_visible__)); | |
void operator delete(void*, std::align_val_t, const std::nothrow_t&) | |
noexcept __attribute__((__externally_visible__)); | |
[[__nodiscard__]] void* operator new[](std::size_t, std::align_val_t) | |
__attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); | |
[[__nodiscard__]] void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&) | |
noexcept __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); | |
void operator delete[](void*, std::align_val_t) | |
noexcept __attribute__((__externally_visible__)); | |
void operator delete[](void*, std::align_val_t, const std::nothrow_t&) | |
noexcept __attribute__((__externally_visible__)); | |
void operator delete(void*, std::size_t, std::align_val_t) | |
noexcept __attribute__((__externally_visible__)); | |
void operator delete[](void*, std::size_t, std::align_val_t) | |
noexcept __attribute__((__externally_visible__)); | |
[[__nodiscard__]] inline void* operator new(std::size_t, void* __p) noexcept | |
{ return __p; } | |
[[__nodiscard__]] inline void* operator new[](std::size_t, void* __p) noexcept | |
{ return __p; } | |
inline void operator delete (void*, void*) noexcept { } | |
inline void operator delete[](void*, void*) noexcept { } | |
} | |
namespace std | |
{ | |
template<typename _Tp> | |
[[nodiscard]] constexpr _Tp* | |
launder(_Tp* __p) noexcept | |
{ return __builtin_launder(__p); } | |
template<typename _Ret, typename... _Args , bool _NE> | |
void launder(_Ret (*)(_Args...) noexcept (_NE)) = delete; | |
template<typename _Ret, typename... _Args , bool _NE> | |
void launder(_Ret (*)(_Args......) noexcept (_NE)) = delete; | |
void launder(void*) = delete; | |
void launder(const void*) = delete; | |
void launder(volatile void*) = delete; | |
void launder(const volatile void*) = delete; | |
inline constexpr size_t hardware_destructive_interference_size = 64; | |
inline constexpr size_t hardware_constructive_interference_size = 64; | |
} | |
# 236 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/new" 3 | |
#pragma GCC visibility pop | |
# 60 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_construct.h" 2 3 | |
# 73 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_construct.h" 3 | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
template <typename _Tp> | |
inline void | |
destroy_at(_Tp* __location) | |
{ | |
if constexpr (201703L > 201703L && is_array_v<_Tp>) | |
{ | |
for (auto& __x : *__location) | |
std::destroy_at(std::__addressof(__x)); | |
} | |
else | |
__location->~_Tp(); | |
} | |
# 106 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_construct.h" 3 | |
template<typename _Tp, typename... _Args> | |
inline void | |
_Construct(_Tp* __p, _Args&&... __args) | |
{ | |
# 119 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_construct.h" 3 | |
::new((void*)__p) _Tp(std::forward<_Args>(__args)...); | |
} | |
# 132 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_construct.h" 3 | |
template<typename _T1> | |
inline void | |
_Construct_novalue(_T1* __p) | |
{ ::new((void*)__p) _T1; } | |
template<typename _ForwardIterator> | |
void | |
_Destroy(_ForwardIterator __first, _ForwardIterator __last); | |
template<typename _Tp> | |
constexpr inline void | |
_Destroy(_Tp* __pointer) | |
{ | |
__pointer->~_Tp(); | |
} | |
template<bool> | |
struct _Destroy_aux | |
{ | |
template<typename _ForwardIterator> | |
static void | |
__destroy(_ForwardIterator __first, _ForwardIterator __last) | |
{ | |
for (; __first != __last; ++__first) | |
std::_Destroy(std::__addressof(*__first)); | |
} | |
}; | |
template<> | |
struct _Destroy_aux<true> | |
{ | |
template<typename _ForwardIterator> | |
static void | |
__destroy(_ForwardIterator, _ForwardIterator) { } | |
}; | |
template<typename _ForwardIterator> | |
inline void | |
_Destroy(_ForwardIterator __first, _ForwardIterator __last) | |
{ | |
typedef typename iterator_traits<_ForwardIterator>::value_type | |
_Value_type; | |
static_assert(is_destructible<_Value_type>::value, | |
"value type is destructible"); | |
std::_Destroy_aux<__has_trivial_destructor(_Value_type)>:: | |
__destroy(__first, __last); | |
} | |
template<bool> | |
struct _Destroy_n_aux | |
{ | |
template<typename _ForwardIterator, typename _Size> | |
static _ForwardIterator | |
__destroy_n(_ForwardIterator __first, _Size __count) | |
{ | |
for (; __count > 0; (void)++__first, --__count) | |
std::_Destroy(std::__addressof(*__first)); | |
return __first; | |
} | |
}; | |
template<> | |
struct _Destroy_n_aux<true> | |
{ | |
template<typename _ForwardIterator, typename _Size> | |
static _ForwardIterator | |
__destroy_n(_ForwardIterator __first, _Size __count) | |
{ | |
std::advance(__first, __count); | |
return __first; | |
} | |
}; | |
template<typename _ForwardIterator, typename _Size> | |
inline _ForwardIterator | |
_Destroy_n(_ForwardIterator __first, _Size __count) | |
{ | |
typedef typename iterator_traits<_ForwardIterator>::value_type | |
_Value_type; | |
static_assert(is_destructible<_Value_type>::value, | |
"value type is destructible"); | |
return std::_Destroy_n_aux<__has_trivial_destructor(_Value_type)>:: | |
__destroy_n(__first, __count); | |
} | |
template <typename _ForwardIterator> | |
inline void | |
destroy(_ForwardIterator __first, _ForwardIterator __last) | |
{ | |
std::_Destroy(__first, __last); | |
} | |
template <typename _ForwardIterator, typename _Size> | |
inline _ForwardIterator | |
destroy_n(_ForwardIterator __first, _Size __count) | |
{ | |
return std::_Destroy_n(__first, __count); | |
} | |
} | |
# 48 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/variant" 2 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/ext/aligned_buffer.h" 1 3 | |
# 32 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/ext/aligned_buffer.h" 3 | |
# 33 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/ext/aligned_buffer.h" 3 | |
namespace __gnu_cxx | |
{ | |
template<typename _Tp> | |
struct __aligned_membuf | |
{ | |
struct _Tp2 { _Tp _M_t; }; | |
alignas(__alignof__(_Tp2::_M_t)) unsigned char _M_storage[sizeof(_Tp)]; | |
__aligned_membuf() = default; | |
__aligned_membuf(std::nullptr_t) { } | |
void* | |
_M_addr() noexcept | |
{ return static_cast<void*>(&_M_storage); } | |
const void* | |
_M_addr() const noexcept | |
{ return static_cast<const void*>(&_M_storage); } | |
_Tp* | |
_M_ptr() noexcept | |
{ return static_cast<_Tp*>(_M_addr()); } | |
const _Tp* | |
_M_ptr() const noexcept | |
{ return static_cast<const _Tp*>(_M_addr()); } | |
}; | |
#pragma GCC diagnostic push | |
#pragma GCC diagnostic ignored "-Wdeprecated-declarations" | |
template<typename _Tp> | |
struct __aligned_buffer | |
: std::aligned_storage<sizeof(_Tp), __alignof__(_Tp)> | |
{ | |
typename | |
std::aligned_storage<sizeof(_Tp), __alignof__(_Tp)>::type _M_storage; | |
__aligned_buffer() = default; | |
__aligned_buffer(std::nullptr_t) { } | |
void* | |
_M_addr() noexcept | |
{ | |
return static_cast<void*>(&_M_storage); | |
} | |
const void* | |
_M_addr() const noexcept | |
{ | |
return static_cast<const void*>(&_M_storage); | |
} | |
_Tp* | |
_M_ptr() noexcept | |
{ return static_cast<_Tp*>(_M_addr()); } | |
const _Tp* | |
_M_ptr() const noexcept | |
{ return static_cast<const _Tp*>(_M_addr()); } | |
}; | |
#pragma GCC diagnostic pop | |
} | |
# 56 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/variant" 2 3 | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
template<typename... _Types> class tuple; | |
template<typename... _Types> class variant; | |
template <typename> struct hash; | |
template<typename _Variant> | |
struct variant_size; | |
template<typename _Variant> | |
struct variant_size<const _Variant> : variant_size<_Variant> {}; | |
template<typename _Variant> | |
struct variant_size<volatile _Variant> : variant_size<_Variant> {}; | |
template<typename _Variant> | |
struct variant_size<const volatile _Variant> : variant_size<_Variant> {}; | |
template<typename... _Types> | |
struct variant_size<variant<_Types...>> | |
: std::integral_constant<size_t, sizeof...(_Types)> {}; | |
template<typename _Variant> | |
inline constexpr size_t variant_size_v = variant_size<_Variant>::value; | |
template<typename... _Types> | |
inline constexpr size_t | |
variant_size_v<variant<_Types...>> = sizeof...(_Types); | |
template<typename... _Types> | |
inline constexpr size_t | |
variant_size_v<const variant<_Types...>> = sizeof...(_Types); | |
template<size_t _Np, typename _Variant> | |
struct variant_alternative; | |
template<size_t _Np, typename... _Types> | |
struct variant_alternative<_Np, variant<_Types...>> | |
{ | |
static_assert(_Np < sizeof...(_Types)); | |
using type = typename _Nth_type<_Np, _Types...>::type; | |
}; | |
template<size_t _Np, typename _Variant> | |
using variant_alternative_t = | |
typename variant_alternative<_Np, _Variant>::type; | |
template<size_t _Np, typename _Variant> | |
struct variant_alternative<_Np, const _Variant> | |
{ using type = const variant_alternative_t<_Np, _Variant>; }; | |
template<size_t _Np, typename _Variant> | |
struct variant_alternative<_Np, volatile _Variant> | |
{ using type = volatile variant_alternative_t<_Np, _Variant>; }; | |
template<size_t _Np, typename _Variant> | |
struct variant_alternative<_Np, const volatile _Variant> | |
{ using type = const volatile variant_alternative_t<_Np, _Variant>; }; | |
inline constexpr size_t variant_npos = -1; | |
template<size_t _Np, typename... _Types> | |
constexpr variant_alternative_t<_Np, variant<_Types...>>& | |
get(variant<_Types...>&); | |
template<size_t _Np, typename... _Types> | |
constexpr variant_alternative_t<_Np, variant<_Types...>>&& | |
get(variant<_Types...>&&); | |
template<size_t _Np, typename... _Types> | |
constexpr variant_alternative_t<_Np, variant<_Types...>> const& | |
get(const variant<_Types...>&); | |
template<size_t _Np, typename... _Types> | |
constexpr variant_alternative_t<_Np, variant<_Types...>> const&& | |
get(const variant<_Types...>&&); | |
template<typename _Result_type, typename _Visitor, typename... _Variants> | |
constexpr decltype(auto) | |
__do_visit(_Visitor&& __visitor, _Variants&&... __variants); | |
template <typename... _Types, typename _Tp> | |
decltype(auto) | |
__variant_cast(_Tp&& __rhs) | |
{ | |
if constexpr (is_lvalue_reference_v<_Tp>) | |
{ | |
if constexpr (is_const_v<remove_reference_t<_Tp>>) | |
return static_cast<const variant<_Types...>&>(__rhs); | |
else | |
return static_cast<variant<_Types...>&>(__rhs); | |
} | |
else | |
return static_cast<variant<_Types...>&&>(__rhs); | |
} | |
namespace __detail | |
{ | |
namespace __variant | |
{ | |
struct __variant_cookie {}; | |
struct __variant_idx_cookie { using type = __variant_idx_cookie; }; | |
template<typename _Tp> struct __deduce_visit_result { using type = _Tp; }; | |
template<typename _Visitor, typename... _Variants> | |
constexpr void | |
__raw_visit(_Visitor&& __visitor, _Variants&&... __variants) | |
{ | |
std::__do_visit<__variant_cookie>(std::forward<_Visitor>(__visitor), | |
std::forward<_Variants>(__variants)...); | |
} | |
template<typename _Visitor, typename... _Variants> | |
constexpr void | |
__raw_idx_visit(_Visitor&& __visitor, _Variants&&... __variants) | |
{ | |
std::__do_visit<__variant_idx_cookie>(std::forward<_Visitor>(__visitor), | |
std::forward<_Variants>(__variants)...); | |
} | |
template<typename... _Types> | |
constexpr std::variant<_Types...>& | |
__as(std::variant<_Types...>& __v) noexcept | |
{ return __v; } | |
template<typename... _Types> | |
constexpr const std::variant<_Types...>& | |
__as(const std::variant<_Types...>& __v) noexcept | |
{ return __v; } | |
template<typename... _Types> | |
constexpr std::variant<_Types...>&& | |
__as(std::variant<_Types...>&& __v) noexcept | |
{ return std::move(__v); } | |
template<typename... _Types> | |
constexpr const std::variant<_Types...>&& | |
__as(const std::variant<_Types...>&& __v) noexcept | |
{ return std::move(__v); } | |
template<typename _Type, bool = std::is_trivially_destructible_v<_Type>> | |
struct _Uninitialized; | |
template<typename _Type> | |
struct _Uninitialized<_Type, true> | |
{ | |
template<typename... _Args> | |
constexpr | |
_Uninitialized(in_place_index_t<0>, _Args&&... __args) | |
: _M_storage(std::forward<_Args>(__args)...) | |
{ } | |
constexpr const _Type& _M_get() const & noexcept | |
{ return _M_storage; } | |
constexpr _Type& _M_get() & noexcept | |
{ return _M_storage; } | |
constexpr const _Type&& _M_get() const && noexcept | |
{ return std::move(_M_storage); } | |
constexpr _Type&& _M_get() && noexcept | |
{ return std::move(_M_storage); } | |
_Type _M_storage; | |
}; | |
template<typename _Type> | |
struct _Uninitialized<_Type, false> | |
{ | |
# 279 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/variant" 3 | |
template<typename... _Args> | |
constexpr | |
_Uninitialized(in_place_index_t<0>, _Args&&... __args) | |
{ | |
::new ((void*)std::addressof(_M_storage)) | |
_Type(std::forward<_Args>(__args)...); | |
} | |
const _Type& _M_get() const & noexcept | |
{ return *_M_storage._M_ptr(); } | |
_Type& _M_get() & noexcept | |
{ return *_M_storage._M_ptr(); } | |
const _Type&& _M_get() const && noexcept | |
{ return std::move(*_M_storage._M_ptr()); } | |
_Type&& _M_get() && noexcept | |
{ return std::move(*_M_storage._M_ptr()); } | |
__gnu_cxx::__aligned_membuf<_Type> _M_storage; | |
}; | |
template<size_t _Np, typename _Union> | |
constexpr decltype(auto) | |
__get_n(_Union&& __u) noexcept | |
{ | |
if constexpr (_Np == 0) | |
return std::forward<_Union>(__u)._M_first._M_get(); | |
else if constexpr (_Np == 1) | |
return std::forward<_Union>(__u)._M_rest._M_first._M_get(); | |
else if constexpr (_Np == 2) | |
return std::forward<_Union>(__u)._M_rest._M_rest._M_first._M_get(); | |
else | |
return __variant::__get_n<_Np - 3>( | |
std::forward<_Union>(__u)._M_rest._M_rest._M_rest); | |
} | |
template<size_t _Np, typename _Variant> | |
constexpr decltype(auto) | |
__get(_Variant&& __v) noexcept | |
{ return __variant::__get_n<_Np>(std::forward<_Variant>(__v)._M_u); } | |
template<size_t _Np, typename _Union> | |
constexpr decltype(auto) | |
__construct_n(_Union& __u) noexcept | |
{ | |
if constexpr (_Np == 0) | |
return &__u._M_first; | |
else if constexpr (_Np == 1) | |
{ | |
std::_Construct(&__u._M_rest); | |
return &__u._M_rest._M_first; | |
} | |
else if constexpr (_Np == 2) | |
{ | |
std::_Construct(&__u._M_rest); | |
std::_Construct(&__u._M_rest._M_rest); | |
return &__u._M_rest._M_rest._M_first; | |
} | |
else | |
{ | |
std::_Construct(&__u._M_rest); | |
std::_Construct(&__u._M_rest._M_rest); | |
std::_Construct(&__u._M_rest._M_rest._M_rest); | |
return __variant::__construct_n<_Np - 3>(__u._M_rest._M_rest._M_rest); | |
} | |
} | |
template<typename... _Types> | |
struct _Traits | |
{ | |
static constexpr bool _S_default_ctor = | |
is_default_constructible_v<typename _Nth_type<0, _Types...>::type>; | |
static constexpr bool _S_copy_ctor = | |
(is_copy_constructible_v<_Types> && ...); | |
static constexpr bool _S_move_ctor = | |
(is_move_constructible_v<_Types> && ...); | |
static constexpr bool _S_copy_assign = | |
_S_copy_ctor | |
&& (is_copy_assignable_v<_Types> && ...); | |
static constexpr bool _S_move_assign = | |
_S_move_ctor | |
&& (is_move_assignable_v<_Types> && ...); | |
static constexpr bool _S_trivial_dtor = | |
(is_trivially_destructible_v<_Types> && ...); | |
static constexpr bool _S_trivial_copy_ctor = | |
(is_trivially_copy_constructible_v<_Types> && ...); | |
static constexpr bool _S_trivial_move_ctor = | |
(is_trivially_move_constructible_v<_Types> && ...); | |
static constexpr bool _S_trivial_copy_assign = | |
_S_trivial_dtor && _S_trivial_copy_ctor | |
&& (is_trivially_copy_assignable_v<_Types> && ...); | |
static constexpr bool _S_trivial_move_assign = | |
_S_trivial_dtor && _S_trivial_move_ctor | |
&& (is_trivially_move_assignable_v<_Types> && ...); | |
static constexpr bool _S_nothrow_default_ctor = | |
is_nothrow_default_constructible_v< | |
typename _Nth_type<0, _Types...>::type>; | |
static constexpr bool _S_nothrow_copy_ctor = false; | |
static constexpr bool _S_nothrow_move_ctor = | |
(is_nothrow_move_constructible_v<_Types> && ...); | |
static constexpr bool _S_nothrow_copy_assign = false; | |
static constexpr bool _S_nothrow_move_assign = | |
_S_nothrow_move_ctor | |
&& (is_nothrow_move_assignable_v<_Types> && ...); | |
}; | |
template<bool __trivially_destructible, typename... _Types> | |
union _Variadic_union | |
{ | |
_Variadic_union() = default; | |
template<size_t _Np, typename... _Args> | |
_Variadic_union(in_place_index_t<_Np>, _Args&&...) = delete; | |
}; | |
template<bool __trivially_destructible, typename _First, typename... _Rest> | |
union _Variadic_union<__trivially_destructible, _First, _Rest...> | |
{ | |
constexpr _Variadic_union() : _M_rest() { } | |
template<typename... _Args> | |
constexpr | |
_Variadic_union(in_place_index_t<0>, _Args&&... __args) | |
: _M_first(in_place_index<0>, std::forward<_Args>(__args)...) | |
{ } | |
template<size_t _Np, typename... _Args> | |
constexpr | |
_Variadic_union(in_place_index_t<_Np>, _Args&&... __args) | |
: _M_rest(in_place_index<_Np-1>, std::forward<_Args>(__args)...) | |
{ } | |
# 434 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/variant" 3 | |
_Uninitialized<_First> _M_first; | |
_Variadic_union<__trivially_destructible, _Rest...> _M_rest; | |
}; | |
template<typename _Tp> | |
struct _Never_valueless_alt | |
: __and_<bool_constant<sizeof(_Tp) <= 256>, is_trivially_copyable<_Tp>> | |
{ }; | |
# 458 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/variant" 3 | |
template <typename... _Types> | |
constexpr bool __never_valueless() | |
{ | |
return _Traits<_Types...>::_S_move_assign | |
&& (_Never_valueless_alt<_Types>::value && ...); | |
} | |
template<bool __trivially_destructible, typename... _Types> | |
struct _Variant_storage; | |
template <typename... _Types> | |
using __select_index = | |
typename __select_int::_Select_int_base<sizeof...(_Types), | |
unsigned char, | |
unsigned short>::type::value_type; | |
template<typename... _Types> | |
struct _Variant_storage<false, _Types...> | |
{ | |
constexpr | |
_Variant_storage() | |
: _M_index(static_cast<__index_type>(variant_npos)) | |
{ } | |
template<size_t _Np, typename... _Args> | |
constexpr | |
_Variant_storage(in_place_index_t<_Np>, _Args&&... __args) | |
: _M_u(in_place_index<_Np>, std::forward<_Args>(__args)...), | |
_M_index{_Np} | |
{ } | |
constexpr void | |
_M_reset() | |
{ | |
if (!_M_valid()) [[unlikely]] | |
return; | |
std::__do_visit<void>([](auto&& __this_mem) mutable | |
{ | |
std::_Destroy(std::__addressof(__this_mem)); | |
}, __variant_cast<_Types...>(*this)); | |
_M_index = static_cast<__index_type>(variant_npos); | |
} | |
~_Variant_storage() | |
{ _M_reset(); } | |
constexpr bool | |
_M_valid() const noexcept | |
{ | |
if constexpr (__variant::__never_valueless<_Types...>()) | |
return true; | |
return this->_M_index != __index_type(variant_npos); | |
} | |
_Variadic_union<false, _Types...> _M_u; | |
using __index_type = __select_index<_Types...>; | |
__index_type _M_index; | |
}; | |
template<typename... _Types> | |
struct _Variant_storage<true, _Types...> | |
{ | |
constexpr | |
_Variant_storage() | |
: _M_index(static_cast<__index_type>(variant_npos)) | |
{ } | |
template<size_t _Np, typename... _Args> | |
constexpr | |
_Variant_storage(in_place_index_t<_Np>, _Args&&... __args) | |
: _M_u(in_place_index<_Np>, std::forward<_Args>(__args)...), | |
_M_index{_Np} | |
{ } | |
constexpr void | |
_M_reset() noexcept | |
{ _M_index = static_cast<__index_type>(variant_npos); } | |
constexpr bool | |
_M_valid() const noexcept | |
{ | |
if constexpr (__variant::__never_valueless<_Types...>()) | |
return true; | |
return this->_M_index != static_cast<__index_type>(variant_npos); | |
} | |
_Variadic_union<true, _Types...> _M_u; | |
using __index_type = __select_index<_Types...>; | |
__index_type _M_index; | |
}; | |
template<size_t _Np, bool _Triv, typename... _Types, typename... _Args> | |
inline void | |
__emplace(_Variant_storage<_Triv, _Types...>& __v, _Args&&... __args) | |
{ | |
__v._M_reset(); | |
auto* __addr = __variant::__construct_n<_Np>(__v._M_u); | |
std::_Construct(__addr, in_place_index<0>, | |
std::forward<_Args>(__args)...); | |
__v._M_index = _Np; | |
} | |
template<typename... _Types> | |
using _Variant_storage_alias = | |
_Variant_storage<_Traits<_Types...>::_S_trivial_dtor, _Types...>; | |
template<bool, typename... _Types> | |
struct _Copy_ctor_base : _Variant_storage_alias<_Types...> | |
{ | |
using _Base = _Variant_storage_alias<_Types...>; | |
using _Base::_Base; | |
_Copy_ctor_base(const _Copy_ctor_base& __rhs) | |
noexcept(_Traits<_Types...>::_S_nothrow_copy_ctor) | |
{ | |
__variant::__raw_idx_visit( | |
[this](auto&& __rhs_mem, auto __rhs_index) mutable | |
{ | |
constexpr size_t __j = __rhs_index; | |
if constexpr (__j != variant_npos) | |
std::_Construct(std::__addressof(this->_M_u), | |
in_place_index<__j>, __rhs_mem); | |
}, __variant_cast<_Types...>(__rhs)); | |
this->_M_index = __rhs._M_index; | |
} | |
_Copy_ctor_base(_Copy_ctor_base&&) = default; | |
_Copy_ctor_base& operator=(const _Copy_ctor_base&) = default; | |
_Copy_ctor_base& operator=(_Copy_ctor_base&&) = default; | |
}; | |
template<typename... _Types> | |
struct _Copy_ctor_base<true, _Types...> : _Variant_storage_alias<_Types...> | |
{ | |
using _Base = _Variant_storage_alias<_Types...>; | |
using _Base::_Base; | |
}; | |
template<typename... _Types> | |
using _Copy_ctor_alias = | |
_Copy_ctor_base<_Traits<_Types...>::_S_trivial_copy_ctor, _Types...>; | |
template<bool, typename... _Types> | |
struct _Move_ctor_base : _Copy_ctor_alias<_Types...> | |
{ | |
using _Base = _Copy_ctor_alias<_Types...>; | |
using _Base::_Base; | |
_Move_ctor_base(_Move_ctor_base&& __rhs) | |
noexcept(_Traits<_Types...>::_S_nothrow_move_ctor) | |
{ | |
__variant::__raw_idx_visit( | |
[this](auto&& __rhs_mem, auto __rhs_index) mutable | |
{ | |
constexpr size_t __j = __rhs_index; | |
if constexpr (__j != variant_npos) | |
std::_Construct(std::__addressof(this->_M_u), | |
in_place_index<__j>, | |
std::forward<decltype(__rhs_mem)>(__rhs_mem)); | |
}, __variant_cast<_Types...>(std::move(__rhs))); | |
this->_M_index = __rhs._M_index; | |
} | |
_Move_ctor_base(const _Move_ctor_base&) = default; | |
_Move_ctor_base& operator=(const _Move_ctor_base&) = default; | |
_Move_ctor_base& operator=(_Move_ctor_base&&) = default; | |
}; | |
template<typename... _Types> | |
struct _Move_ctor_base<true, _Types...> : _Copy_ctor_alias<_Types...> | |
{ | |
using _Base = _Copy_ctor_alias<_Types...>; | |
using _Base::_Base; | |
}; | |
template<typename... _Types> | |
using _Move_ctor_alias = | |
_Move_ctor_base<_Traits<_Types...>::_S_trivial_move_ctor, _Types...>; | |
template<bool, typename... _Types> | |
struct _Copy_assign_base : _Move_ctor_alias<_Types...> | |
{ | |
using _Base = _Move_ctor_alias<_Types...>; | |
using _Base::_Base; | |
_Copy_assign_base& | |
operator=(const _Copy_assign_base& __rhs) | |
noexcept(_Traits<_Types...>::_S_nothrow_copy_assign) | |
{ | |
__variant::__raw_idx_visit( | |
[this](auto&& __rhs_mem, auto __rhs_index) mutable | |
{ | |
constexpr size_t __j = __rhs_index; | |
if constexpr (__j == variant_npos) | |
this->_M_reset(); | |
else if (this->_M_index == __j) | |
__variant::__get<__j>(*this) = __rhs_mem; | |
else | |
{ | |
using _Tj = typename _Nth_type<__j, _Types...>::type; | |
if constexpr (is_nothrow_copy_constructible_v<_Tj> | |
|| !is_nothrow_move_constructible_v<_Tj>) | |
__variant::__emplace<__j>(*this, __rhs_mem); | |
else | |
{ | |
using _Variant = variant<_Types...>; | |
_Variant& __self = __variant_cast<_Types...>(*this); | |
__self = _Variant(in_place_index<__j>, __rhs_mem); | |
} | |
} | |
}, __variant_cast<_Types...>(__rhs)); | |
return *this; | |
} | |
_Copy_assign_base(const _Copy_assign_base&) = default; | |
_Copy_assign_base(_Copy_assign_base&&) = default; | |
_Copy_assign_base& operator=(_Copy_assign_base&&) = default; | |
}; | |
template<typename... _Types> | |
struct _Copy_assign_base<true, _Types...> : _Move_ctor_alias<_Types...> | |
{ | |
using _Base = _Move_ctor_alias<_Types...>; | |
using _Base::_Base; | |
}; | |
template<typename... _Types> | |
using _Copy_assign_alias = | |
_Copy_assign_base<_Traits<_Types...>::_S_trivial_copy_assign, _Types...>; | |
template<bool, typename... _Types> | |
struct _Move_assign_base : _Copy_assign_alias<_Types...> | |
{ | |
using _Base = _Copy_assign_alias<_Types...>; | |
using _Base::_Base; | |
_Move_assign_base& | |
operator=(_Move_assign_base&& __rhs) | |
noexcept(_Traits<_Types...>::_S_nothrow_move_assign) | |
{ | |
__variant::__raw_idx_visit( | |
[this](auto&& __rhs_mem, auto __rhs_index) mutable | |
{ | |
constexpr size_t __j = __rhs_index; | |
if constexpr (__j != variant_npos) | |
{ | |
if (this->_M_index == __j) | |
__variant::__get<__j>(*this) = std::move(__rhs_mem); | |
else | |
{ | |
using _Tj = typename _Nth_type<__j, _Types...>::type; | |
if constexpr (is_nothrow_move_constructible_v<_Tj>) | |
__variant::__emplace<__j>(*this, std::move(__rhs_mem)); | |
else | |
{ | |
using _Variant = variant<_Types...>; | |
_Variant& __self = __variant_cast<_Types...>(*this); | |
__self.template emplace<__j>(std::move(__rhs_mem)); | |
} | |
} | |
} | |
else | |
this->_M_reset(); | |
}, __variant_cast<_Types...>(__rhs)); | |
return *this; | |
} | |
_Move_assign_base(const _Move_assign_base&) = default; | |
_Move_assign_base(_Move_assign_base&&) = default; | |
_Move_assign_base& operator=(const _Move_assign_base&) = default; | |
}; | |
template<typename... _Types> | |
struct _Move_assign_base<true, _Types...> : _Copy_assign_alias<_Types...> | |
{ | |
using _Base = _Copy_assign_alias<_Types...>; | |
using _Base::_Base; | |
}; | |
template<typename... _Types> | |
using _Move_assign_alias = | |
_Move_assign_base<_Traits<_Types...>::_S_trivial_move_assign, _Types...>; | |
template<typename... _Types> | |
struct _Variant_base : _Move_assign_alias<_Types...> | |
{ | |
using _Base = _Move_assign_alias<_Types...>; | |
constexpr | |
_Variant_base() noexcept(_Traits<_Types...>::_S_nothrow_default_ctor) | |
: _Variant_base(in_place_index<0>) { } | |
template<size_t _Np, typename... _Args> | |
constexpr explicit | |
_Variant_base(in_place_index_t<_Np> __i, _Args&&... __args) | |
: _Base(__i, std::forward<_Args>(__args)...) | |
{ } | |
_Variant_base(const _Variant_base&) = default; | |
_Variant_base(_Variant_base&&) = default; | |
_Variant_base& operator=(const _Variant_base&) = default; | |
_Variant_base& operator=(_Variant_base&&) = default; | |
}; | |
template<typename _Tp, typename... _Types> | |
inline constexpr bool __exactly_once | |
= std::__find_uniq_type_in_pack<_Tp, _Types...>() < sizeof...(_Types); | |
template<typename _Ti> struct _Arr { _Ti _M_x[1]; }; | |
template<size_t _Ind, typename _Tp, typename _Ti, typename = void> | |
struct _Build_FUN | |
{ | |
void _S_fun() = delete; | |
}; | |
template<size_t _Ind, typename _Tp, typename _Ti> | |
struct _Build_FUN<_Ind, _Tp, _Ti, | |
void_t<decltype(_Arr<_Ti>{{std::declval<_Tp>()}})>> | |
{ | |
static integral_constant<size_t, _Ind> _S_fun(_Ti); | |
}; | |
template<typename _Tp, typename _Variant, | |
typename = make_index_sequence<variant_size_v<_Variant>>> | |
struct _Build_FUNs; | |
template<typename _Tp, typename... _Ti, size_t... _Ind> | |
struct _Build_FUNs<_Tp, variant<_Ti...>, index_sequence<_Ind...>> | |
: _Build_FUN<_Ind, _Tp, _Ti>... | |
{ | |
using _Build_FUN<_Ind, _Tp, _Ti>::_S_fun...; | |
}; | |
template<typename _Tp, typename _Variant> | |
using _FUN_type | |
= decltype(_Build_FUNs<_Tp, _Variant>::_S_fun(std::declval<_Tp>())); | |
template<typename _Tp, typename _Variant, typename = void> | |
inline constexpr size_t | |
__accepted_index = variant_npos; | |
template<typename _Tp, typename _Variant> | |
inline constexpr size_t | |
__accepted_index<_Tp, _Variant, void_t<_FUN_type<_Tp, _Variant>>> | |
= _FUN_type<_Tp, _Variant>::value; | |
template<typename _Maybe_variant_cookie, typename _Variant, | |
typename = __remove_cvref_t<_Variant>> | |
inline constexpr bool | |
__extra_visit_slot_needed = false; | |
template<typename _Var, typename... _Types> | |
inline constexpr bool | |
__extra_visit_slot_needed<__variant_cookie, _Var, variant<_Types...>> | |
= !__variant::__never_valueless<_Types...>(); | |
template<typename _Var, typename... _Types> | |
inline constexpr bool | |
__extra_visit_slot_needed<__variant_idx_cookie, _Var, variant<_Types...>> | |
= !__variant::__never_valueless<_Types...>(); | |
template<typename _Tp, size_t... _Dimensions> | |
struct _Multi_array; | |
template<typename _Tp> | |
struct _Multi_array<_Tp> | |
{ | |
template<typename> | |
struct __untag_result | |
: false_type | |
{ using element_type = _Tp; }; | |
#pragma GCC diagnostic push | |
#pragma GCC diagnostic ignored "-Wignored-qualifiers" | |
template <typename... _Args> | |
struct __untag_result<const void(*)(_Args...)> | |
: false_type | |
{ using element_type = void(*)(_Args...); }; | |
#pragma GCC diagnostic pop | |
template <typename... _Args> | |
struct __untag_result<__variant_cookie(*)(_Args...)> | |
: false_type | |
{ using element_type = void(*)(_Args...); }; | |
template <typename... _Args> | |
struct __untag_result<__variant_idx_cookie(*)(_Args...)> | |
: false_type | |
{ using element_type = void(*)(_Args...); }; | |
template <typename _Res, typename... _Args> | |
struct __untag_result<__deduce_visit_result<_Res>(*)(_Args...)> | |
: true_type | |
{ using element_type = _Res(*)(_Args...); }; | |
using __result_is_deduced = __untag_result<_Tp>; | |
constexpr const typename __untag_result<_Tp>::element_type& | |
_M_access() const | |
{ return _M_data; } | |
typename __untag_result<_Tp>::element_type _M_data; | |
}; | |
template<typename _Ret, | |
typename _Visitor, | |
typename... _Variants, | |
size_t __first, size_t... __rest> | |
struct _Multi_array<_Ret(*)(_Visitor, _Variants...), __first, __rest...> | |
{ | |
static constexpr size_t __index = | |
sizeof...(_Variants) - sizeof...(__rest) - 1; | |
using _Variant = typename _Nth_type<__index, _Variants...>::type; | |
static constexpr int __do_cookie = | |
__extra_visit_slot_needed<_Ret, _Variant> ? 1 : 0; | |
using _Tp = _Ret(*)(_Visitor, _Variants...); | |
template<typename... _Args> | |
constexpr decltype(auto) | |
_M_access(size_t __first_index, _Args... __rest_indices) const | |
{ | |
return _M_arr[__first_index + __do_cookie] | |
._M_access(__rest_indices...); | |
} | |
_Multi_array<_Tp, __rest...> _M_arr[__first + __do_cookie]; | |
}; | |
# 949 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/variant" 3 | |
template<typename _Array_type, typename _Index_seq> | |
struct __gen_vtable_impl; | |
# 959 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/variant" 3 | |
template<typename _Result_type, typename _Visitor, size_t... __dimensions, | |
typename... _Variants, size_t... __indices> | |
struct __gen_vtable_impl< | |
_Multi_array<_Result_type (*)(_Visitor, _Variants...), __dimensions...>, | |
std::index_sequence<__indices...>> | |
{ | |
using _Next = | |
remove_reference_t<typename _Nth_type<sizeof...(__indices), | |
_Variants...>::type>; | |
using _Array_type = | |
_Multi_array<_Result_type (*)(_Visitor, _Variants...), | |
__dimensions...>; | |
static constexpr _Array_type | |
_S_apply() | |
{ | |
_Array_type __vtable{}; | |
_S_apply_all_alts( | |
__vtable, make_index_sequence<variant_size_v<_Next>>()); | |
return __vtable; | |
} | |
template<size_t... __var_indices> | |
static constexpr void | |
_S_apply_all_alts(_Array_type& __vtable, | |
std::index_sequence<__var_indices...>) | |
{ | |
if constexpr (__extra_visit_slot_needed<_Result_type, _Next>) | |
(_S_apply_single_alt<true, __var_indices>( | |
__vtable._M_arr[__var_indices + 1], | |
&(__vtable._M_arr[0])), ...); | |
else | |
(_S_apply_single_alt<false, __var_indices>( | |
__vtable._M_arr[__var_indices]), ...); | |
} | |
template<bool __do_cookie, size_t __index, typename _Tp> | |
static constexpr void | |
_S_apply_single_alt(_Tp& __element, _Tp* __cookie_element = nullptr) | |
{ | |
if constexpr (__do_cookie) | |
{ | |
__element = __gen_vtable_impl< | |
_Tp, | |
std::index_sequence<__indices..., __index>>::_S_apply(); | |
*__cookie_element = __gen_vtable_impl< | |
_Tp, | |
std::index_sequence<__indices..., variant_npos>>::_S_apply(); | |
} | |
else | |
{ | |
auto __tmp_element = __gen_vtable_impl< | |
remove_reference_t<decltype(__element)>, | |
std::index_sequence<__indices..., __index>>::_S_apply(); | |
static_assert(is_same_v<_Tp, decltype(__tmp_element)>, | |
"std::visit requires the visitor to have the same " | |
"return type for all alternatives of a variant"); | |
__element = __tmp_element; | |
} | |
} | |
}; | |
template<typename _Result_type, typename _Visitor, typename... _Variants, | |
size_t... __indices> | |
struct __gen_vtable_impl< | |
_Multi_array<_Result_type (*)(_Visitor, _Variants...)>, | |
std::index_sequence<__indices...>> | |
{ | |
using _Array_type = | |
_Multi_array<_Result_type (*)(_Visitor, _Variants...)>; | |
template<size_t __index, typename _Variant> | |
static constexpr decltype(auto) | |
__element_by_index_or_cookie(_Variant&& __var) noexcept | |
{ | |
if constexpr (__index != variant_npos) | |
return __variant::__get<__index>(std::forward<_Variant>(__var)); | |
else | |
return __variant_cookie{}; | |
} | |
static constexpr decltype(auto) | |
__visit_invoke(_Visitor&& __visitor, _Variants... __vars) | |
{ | |
if constexpr (is_same_v<_Result_type, __variant_idx_cookie>) | |
std::__invoke(std::forward<_Visitor>(__visitor), | |
__element_by_index_or_cookie<__indices>( | |
std::forward<_Variants>(__vars))..., | |
integral_constant<size_t, __indices>()...); | |
else if constexpr (is_same_v<_Result_type, __variant_cookie>) | |
std::__invoke(std::forward<_Visitor>(__visitor), | |
__element_by_index_or_cookie<__indices>( | |
std::forward<_Variants>(__vars))...); | |
else if constexpr (_Array_type::__result_is_deduced::value) | |
return std::__invoke(std::forward<_Visitor>(__visitor), | |
__element_by_index_or_cookie<__indices>( | |
std::forward<_Variants>(__vars))...); | |
else | |
return std::__invoke_r<_Result_type>( | |
std::forward<_Visitor>(__visitor), | |
__variant::__get<__indices>(std::forward<_Variants>(__vars))...); | |
} | |
static constexpr auto | |
_S_apply() | |
{ | |
if constexpr (_Array_type::__result_is_deduced::value) | |
{ | |
constexpr bool __visit_ret_type_mismatch = | |
!is_same_v<typename _Result_type::type, | |
decltype(__visit_invoke(std::declval<_Visitor>(), | |
std::declval<_Variants>()...))>; | |
if constexpr (__visit_ret_type_mismatch) | |
{ | |
struct __cannot_match {}; | |
return __cannot_match{}; | |
} | |
else | |
return _Array_type{&__visit_invoke}; | |
} | |
else | |
return _Array_type{&__visit_invoke}; | |
} | |
}; | |
template<typename _Result_type, typename _Visitor, typename... _Variants> | |
struct __gen_vtable | |
{ | |
using _Array_type = | |
_Multi_array<_Result_type (*)(_Visitor, _Variants...), | |
variant_size_v<remove_reference_t<_Variants>>...>; | |
static constexpr _Array_type _S_vtable | |
= __gen_vtable_impl<_Array_type, std::index_sequence<>>::_S_apply(); | |
}; | |
template<size_t _Np, typename _Tp> | |
struct _Base_dedup : public _Tp { }; | |
template<typename _Variant, typename __indices> | |
struct _Variant_hash_base; | |
template<typename... _Types, size_t... __indices> | |
struct _Variant_hash_base<variant<_Types...>, | |
std::index_sequence<__indices...>> | |
: _Base_dedup<__indices, __poison_hash<remove_const_t<_Types>>>... { }; | |
template<size_t _Np, typename _Variant, | |
typename _AsV = decltype(__variant::__as(std::declval<_Variant>())), | |
typename _Tp = variant_alternative_t<_Np, remove_reference_t<_AsV>>> | |
using __get_t | |
= __conditional_t<is_lvalue_reference_v<_Variant>, _Tp&, _Tp&&>; | |
template<typename _Visitor, typename... _Variants> | |
using __visit_result_t | |
= invoke_result_t<_Visitor, __get_t<0, _Variants>...>; | |
template<typename _Tp, typename... _Types> | |
constexpr inline bool __same_types = (is_same_v<_Tp, _Types> && ...); | |
template <typename _Visitor, typename _Variant, size_t... _Idxs> | |
constexpr bool __check_visitor_results(std::index_sequence<_Idxs...>) | |
{ | |
return __same_types< | |
invoke_result_t<_Visitor, __get_t<_Idxs, _Variant>>... | |
>; | |
} | |
} | |
} | |
template<typename _Tp, typename... _Types> | |
constexpr bool | |
holds_alternative(const variant<_Types...>& __v) noexcept | |
{ | |
static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, | |
"T must occur exactly once in alternatives"); | |
return __v.index() == std::__find_uniq_type_in_pack<_Tp, _Types...>(); | |
} | |
template<typename _Tp, typename... _Types> | |
constexpr _Tp& | |
get(variant<_Types...>& __v) | |
{ | |
static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, | |
"T must occur exactly once in alternatives"); | |
constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); | |
return std::get<__n>(__v); | |
} | |
template<typename _Tp, typename... _Types> | |
constexpr _Tp&& | |
get(variant<_Types...>&& __v) | |
{ | |
static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, | |
"T must occur exactly once in alternatives"); | |
constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); | |
return std::get<__n>(std::move(__v)); | |
} | |
template<typename _Tp, typename... _Types> | |
constexpr const _Tp& | |
get(const variant<_Types...>& __v) | |
{ | |
static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, | |
"T must occur exactly once in alternatives"); | |
constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); | |
return std::get<__n>(__v); | |
} | |
template<typename _Tp, typename... _Types> | |
constexpr const _Tp&& | |
get(const variant<_Types...>&& __v) | |
{ | |
static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, | |
"T must occur exactly once in alternatives"); | |
constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); | |
return std::get<__n>(std::move(__v)); | |
} | |
template<size_t _Np, typename... _Types> | |
constexpr add_pointer_t<variant_alternative_t<_Np, variant<_Types...>>> | |
get_if(variant<_Types...>* __ptr) noexcept | |
{ | |
using _Alternative_type = variant_alternative_t<_Np, variant<_Types...>>; | |
static_assert(_Np < sizeof...(_Types), | |
"The index must be in [0, number of alternatives)"); | |
static_assert(!is_void_v<_Alternative_type>, "_Tp must not be void"); | |
if (__ptr && __ptr->index() == _Np) | |
return std::addressof(__detail::__variant::__get<_Np>(*__ptr)); | |
return nullptr; | |
} | |
template<size_t _Np, typename... _Types> | |
constexpr | |
add_pointer_t<const variant_alternative_t<_Np, variant<_Types...>>> | |
get_if(const variant<_Types...>* __ptr) noexcept | |
{ | |
using _Alternative_type = variant_alternative_t<_Np, variant<_Types...>>; | |
static_assert(_Np < sizeof...(_Types), | |
"The index must be in [0, number of alternatives)"); | |
static_assert(!is_void_v<_Alternative_type>, "_Tp must not be void"); | |
if (__ptr && __ptr->index() == _Np) | |
return std::addressof(__detail::__variant::__get<_Np>(*__ptr)); | |
return nullptr; | |
} | |
template<typename _Tp, typename... _Types> | |
constexpr add_pointer_t<_Tp> | |
get_if(variant<_Types...>* __ptr) noexcept | |
{ | |
static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, | |
"T must occur exactly once in alternatives"); | |
static_assert(!is_void_v<_Tp>, "_Tp must not be void"); | |
constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); | |
return std::get_if<__n>(__ptr); | |
} | |
template<typename _Tp, typename... _Types> | |
constexpr add_pointer_t<const _Tp> | |
get_if(const variant<_Types...>* __ptr) noexcept | |
{ | |
static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, | |
"T must occur exactly once in alternatives"); | |
static_assert(!is_void_v<_Tp>, "_Tp must not be void"); | |
constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); | |
return std::get_if<__n>(__ptr); | |
} | |
struct monostate { }; | |
# 1264 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/variant" 3 | |
template<typename... _Types> constexpr bool operator <(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem < __rhs_mem; } else __ret = (__lhs.index() + 1) < (__rhs_index + 1); } else __ret = (__lhs.index() + 1) < (__rhs_index + 1); }, __rhs); return __ret; } | |
template<typename... _Types> constexpr bool operator <=(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem <= __rhs_mem; } else __ret = (__lhs.index() + 1) <= (__rhs_index + 1); } else __ret = (__lhs.index() + 1) <= (__rhs_index + 1); }, __rhs); return __ret; } | |
template<typename... _Types> constexpr bool operator ==(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem == __rhs_mem; } else __ret = (__lhs.index() + 1) == (__rhs_index + 1); } else __ret = (__lhs.index() + 1) == (__rhs_index + 1); }, __rhs); return __ret; } | |
template<typename... _Types> constexpr bool operator !=(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem != __rhs_mem; } else __ret = (__lhs.index() + 1) != (__rhs_index + 1); } else __ret = (__lhs.index() + 1) != (__rhs_index + 1); }, __rhs); return __ret; } | |
template<typename... _Types> constexpr bool operator >=(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem >= __rhs_mem; } else __ret = (__lhs.index() + 1) >= (__rhs_index + 1); } else __ret = (__lhs.index() + 1) >= (__rhs_index + 1); }, __rhs); return __ret; } | |
template<typename... _Types> constexpr bool operator >(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem > __rhs_mem; } else __ret = (__lhs.index() + 1) > (__rhs_index + 1); } else __ret = (__lhs.index() + 1) > (__rhs_index + 1); }, __rhs); return __ret; } | |
constexpr bool operator==(monostate, monostate) noexcept { return true; } | |
# 1305 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/variant" 3 | |
constexpr bool operator!=(monostate, monostate) noexcept { return false; } | |
constexpr bool operator<(monostate, monostate) noexcept { return false; } | |
constexpr bool operator>(monostate, monostate) noexcept { return false; } | |
constexpr bool operator<=(monostate, monostate) noexcept { return true; } | |
constexpr bool operator>=(monostate, monostate) noexcept { return true; } | |
template<typename _Visitor, typename... _Variants> | |
constexpr __detail::__variant::__visit_result_t<_Visitor, _Variants...> | |
visit(_Visitor&&, _Variants&&...); | |
template<typename... _Types> | |
inline enable_if_t<(is_move_constructible_v<_Types> && ...) | |
&& (is_swappable_v<_Types> && ...)> | |
swap(variant<_Types...>& __lhs, variant<_Types...>& __rhs) | |
noexcept(noexcept(__lhs.swap(__rhs))) | |
{ __lhs.swap(__rhs); } | |
template<typename... _Types> | |
enable_if_t<!((is_move_constructible_v<_Types> && ...) | |
&& (is_swappable_v<_Types> && ...))> | |
swap(variant<_Types...>&, variant<_Types...>&) = delete; | |
class bad_variant_access : public exception | |
{ | |
public: | |
bad_variant_access() noexcept { } | |
const char* what() const noexcept override | |
{ return _M_reason; } | |
private: | |
bad_variant_access(const char* __reason) noexcept : _M_reason(__reason) { } | |
const char* _M_reason = "bad variant access"; | |
friend void __throw_bad_variant_access(const char* __what); | |
}; | |
inline void | |
__throw_bad_variant_access(const char* __what) | |
{ (__builtin_abort()); } | |
inline void | |
__throw_bad_variant_access(bool __valueless) | |
{ | |
if (__valueless) [[__unlikely__]] | |
__throw_bad_variant_access("std::get: variant is valueless"); | |
else | |
__throw_bad_variant_access("std::get: wrong index for variant"); | |
} | |
template<typename... _Types> | |
class variant | |
: private __detail::__variant::_Variant_base<_Types...>, | |
private _Enable_copy_move< | |
__detail::__variant::_Traits<_Types...>::_S_copy_ctor, | |
__detail::__variant::_Traits<_Types...>::_S_copy_assign, | |
__detail::__variant::_Traits<_Types...>::_S_move_ctor, | |
__detail::__variant::_Traits<_Types...>::_S_move_assign, | |
variant<_Types...>> | |
{ | |
private: | |
template <typename... _UTypes, typename _Tp> | |
friend decltype(auto) | |
__variant_cast(_Tp&&); | |
static_assert(sizeof...(_Types) > 0, | |
"variant must have at least one alternative"); | |
static_assert(!(std::is_reference_v<_Types> || ...), | |
"variant must have no reference alternative"); | |
static_assert(!(std::is_void_v<_Types> || ...), | |
"variant must have no void alternative"); | |
using _Base = __detail::__variant::_Variant_base<_Types...>; | |
template<typename _Tp> | |
static constexpr bool __not_self | |
= !is_same_v<__remove_cvref_t<_Tp>, variant>; | |
template<typename _Tp> | |
static constexpr bool | |
__exactly_once = __detail::__variant::__exactly_once<_Tp, _Types...>; | |
template<typename _Tp> | |
static constexpr size_t __accepted_index | |
= __detail::__variant::__accepted_index<_Tp, variant>; | |
template<size_t _Np, typename = enable_if_t<(_Np < sizeof...(_Types))>> | |
using __to_type = typename _Nth_type<_Np, _Types...>::type; | |
template<typename _Tp, typename = enable_if_t<__not_self<_Tp>>> | |
using __accepted_type = __to_type<__accepted_index<_Tp>>; | |
template<typename _Tp> | |
static constexpr size_t __index_of | |
= std::__find_uniq_type_in_pack<_Tp, _Types...>(); | |
using _Traits = __detail::__variant::_Traits<_Types...>; | |
template<typename _Tp> | |
struct __is_in_place_tag : false_type { }; | |
template<typename _Tp> | |
struct __is_in_place_tag<in_place_type_t<_Tp>> : true_type { }; | |
template<size_t _Np> | |
struct __is_in_place_tag<in_place_index_t<_Np>> : true_type { }; | |
template<typename _Tp> | |
static constexpr bool __not_in_place_tag | |
= !__is_in_place_type_v<__remove_cvref_t<_Tp>> | |
&& !__is_in_place_index_v<__remove_cvref_t<_Tp>>; | |
public: | |
template<typename _Tp0 = __to_type<0>, | |
typename = enable_if_t<is_default_constructible_v<_Tp0>>> | |
constexpr | |
variant() noexcept(is_nothrow_default_constructible_v<__to_type<0>>) | |
{ } | |
variant(const variant& __rhs) = default; | |
variant(variant&&) = default; | |
variant& operator=(const variant&) = default; | |
variant& operator=(variant&&) = default; | |
~variant() = default; | |
template<typename _Tp, | |
typename = enable_if_t<sizeof...(_Types) != 0>, | |
typename = enable_if_t<__not_in_place_tag<_Tp>>, | |
typename _Tj = __accepted_type<_Tp&&>, | |
typename = enable_if_t<__exactly_once<_Tj> | |
&& is_constructible_v<_Tj, _Tp>>> | |
constexpr | |
variant(_Tp&& __t) | |
noexcept(is_nothrow_constructible_v<_Tj, _Tp>) | |
: variant(in_place_index<__accepted_index<_Tp>>, | |
std::forward<_Tp>(__t)) | |
{ } | |
template<typename _Tp, typename... _Args, | |
typename = enable_if_t<__exactly_once<_Tp> | |
&& is_constructible_v<_Tp, _Args...>>> | |
constexpr explicit | |
variant(in_place_type_t<_Tp>, _Args&&... __args) | |
: variant(in_place_index<__index_of<_Tp>>, | |
std::forward<_Args>(__args)...) | |
{ } | |
template<typename _Tp, typename _Up, typename... _Args, | |
typename = enable_if_t<__exactly_once<_Tp> | |
&& is_constructible_v<_Tp, | |
initializer_list<_Up>&, _Args...>>> | |
constexpr explicit | |
variant(in_place_type_t<_Tp>, initializer_list<_Up> __il, | |
_Args&&... __args) | |
: variant(in_place_index<__index_of<_Tp>>, __il, | |
std::forward<_Args>(__args)...) | |
{ } | |
template<size_t _Np, typename... _Args, | |
typename _Tp = __to_type<_Np>, | |
typename = enable_if_t<is_constructible_v<_Tp, _Args...>>> | |
constexpr explicit | |
variant(in_place_index_t<_Np>, _Args&&... __args) | |
: _Base(in_place_index<_Np>, std::forward<_Args>(__args)...) | |
{ } | |
template<size_t _Np, typename _Up, typename... _Args, | |
typename _Tp = __to_type<_Np>, | |
typename = enable_if_t<is_constructible_v<_Tp, | |
initializer_list<_Up>&, | |
_Args...>>> | |
constexpr explicit | |
variant(in_place_index_t<_Np>, initializer_list<_Up> __il, | |
_Args&&... __args) | |
: _Base(in_place_index<_Np>, __il, std::forward<_Args>(__args)...) | |
{ } | |
template<typename _Tp> | |
enable_if_t<__exactly_once<__accepted_type<_Tp&&>> | |
&& is_constructible_v<__accepted_type<_Tp&&>, _Tp> | |
&& is_assignable_v<__accepted_type<_Tp&&>&, _Tp>, | |
variant&> | |
operator=(_Tp&& __rhs) | |
noexcept(is_nothrow_assignable_v<__accepted_type<_Tp&&>&, _Tp> | |
&& is_nothrow_constructible_v<__accepted_type<_Tp&&>, _Tp>) | |
{ | |
constexpr auto __index = __accepted_index<_Tp>; | |
if (index() == __index) | |
std::get<__index>(*this) = std::forward<_Tp>(__rhs); | |
else | |
{ | |
using _Tj = __accepted_type<_Tp&&>; | |
if constexpr (is_nothrow_constructible_v<_Tj, _Tp> | |
|| !is_nothrow_move_constructible_v<_Tj>) | |
this->emplace<__index>(std::forward<_Tp>(__rhs)); | |
else | |
this->emplace<__index>(_Tj(std::forward<_Tp>(__rhs))); | |
} | |
return *this; | |
} | |
template<typename _Tp, typename... _Args> | |
enable_if_t<is_constructible_v<_Tp, _Args...> && __exactly_once<_Tp>, | |
_Tp&> | |
emplace(_Args&&... __args) | |
{ | |
constexpr size_t __index = __index_of<_Tp>; | |
return this->emplace<__index>(std::forward<_Args>(__args)...); | |
} | |
template<typename _Tp, typename _Up, typename... _Args> | |
enable_if_t<is_constructible_v<_Tp, initializer_list<_Up>&, _Args...> | |
&& __exactly_once<_Tp>, | |
_Tp&> | |
emplace(initializer_list<_Up> __il, _Args&&... __args) | |
{ | |
constexpr size_t __index = __index_of<_Tp>; | |
return this->emplace<__index>(__il, std::forward<_Args>(__args)...); | |
} | |
template<size_t _Np, typename... _Args> | |
enable_if_t<is_constructible_v<__to_type<_Np>, _Args...>, | |
__to_type<_Np>&> | |
emplace(_Args&&... __args) | |
{ | |
namespace __variant = std::__detail::__variant; | |
using type = typename _Nth_type<_Np, _Types...>::type; | |
if constexpr (is_nothrow_constructible_v<type, _Args...>) | |
{ | |
__variant::__emplace<_Np>(*this, std::forward<_Args>(__args)...); | |
} | |
else if constexpr (is_scalar_v<type>) | |
{ | |
const type __tmp(std::forward<_Args>(__args)...); | |
__variant::__emplace<_Np>(*this, __tmp); | |
} | |
else if constexpr (__variant::_Never_valueless_alt<type>() | |
&& _Traits::_S_move_assign) | |
{ | |
variant __tmp(in_place_index<_Np>, | |
std::forward<_Args>(__args)...); | |
*this = std::move(__tmp); | |
} | |
else | |
{ | |
__variant::__emplace<_Np>(*this, std::forward<_Args>(__args)...); | |
} | |
return std::get<_Np>(*this); | |
} | |
template<size_t _Np, typename _Up, typename... _Args> | |
enable_if_t<is_constructible_v<__to_type<_Np>, | |
initializer_list<_Up>&, _Args...>, | |
__to_type<_Np>&> | |
emplace(initializer_list<_Up> __il, _Args&&... __args) | |
{ | |
namespace __variant = std::__detail::__variant; | |
using type = typename _Nth_type<_Np, _Types...>::type; | |
if constexpr (is_nothrow_constructible_v<type, | |
initializer_list<_Up>&, | |
_Args...>) | |
{ | |
__variant::__emplace<_Np>(*this, __il, | |
std::forward<_Args>(__args)...); | |
} | |
else if constexpr (__variant::_Never_valueless_alt<type>() | |
&& _Traits::_S_move_assign) | |
{ | |
variant __tmp(in_place_index<_Np>, __il, | |
std::forward<_Args>(__args)...); | |
*this = std::move(__tmp); | |
} | |
else | |
{ | |
__variant::__emplace<_Np>(*this, __il, | |
std::forward<_Args>(__args)...); | |
} | |
return std::get<_Np>(*this); | |
} | |
template<size_t _Np, typename... _Args> | |
enable_if_t<!(_Np < sizeof...(_Types))> emplace(_Args&&...) = delete; | |
template<typename _Tp, typename... _Args> | |
enable_if_t<!__exactly_once<_Tp>> emplace(_Args&&...) = delete; | |
constexpr bool valueless_by_exception() const noexcept | |
{ return !this->_M_valid(); } | |
constexpr size_t index() const noexcept | |
{ | |
using __index_type = typename _Base::__index_type; | |
if constexpr (__detail::__variant::__never_valueless<_Types...>()) | |
return this->_M_index; | |
else if constexpr (sizeof...(_Types) <= __index_type(-1) / 2) | |
return make_signed_t<__index_type>(this->_M_index); | |
else | |
return size_t(__index_type(this->_M_index + 1)) - 1; | |
} | |
void | |
swap(variant& __rhs) | |
noexcept((__is_nothrow_swappable<_Types>::value && ...) | |
&& is_nothrow_move_constructible_v<variant>) | |
{ | |
static_assert((is_move_constructible_v<_Types> && ...)); | |
if (__rhs.valueless_by_exception()) [[__unlikely__]] | |
{ | |
if (!this->valueless_by_exception()) [[__likely__]] | |
__rhs.swap(*this); | |
return; | |
} | |
namespace __variant = __detail::__variant; | |
__variant::__raw_idx_visit( | |
[this, &__rhs](auto&& __rhs_mem, auto __rhs_index) mutable | |
{ | |
constexpr size_t __j = __rhs_index; | |
if constexpr (__j != variant_npos) | |
{ | |
if (this->index() == __j) | |
{ | |
using std::swap; | |
swap(std::get<__j>(*this), __rhs_mem); | |
} | |
else | |
{ | |
auto __tmp(std::move(__rhs_mem)); | |
if constexpr (_Traits::_S_trivial_move_assign) | |
__rhs = std::move(*this); | |
else | |
__variant::__raw_idx_visit( | |
[&__rhs](auto&& __this_mem, auto __this_index) mutable | |
{ | |
constexpr size_t __k = __this_index; | |
if constexpr (__k != variant_npos) | |
__variant::__emplace<__k>(__rhs, | |
std::move(__this_mem)); | |
}, *this); | |
__variant::__emplace<__j>(*this, std::move(__tmp)); | |
} | |
} | |
}, __rhs); | |
} | |
private: | |
template<size_t _Np, typename _Vp> | |
friend constexpr decltype(auto) | |
__detail::__variant::__get(_Vp&& __v) noexcept; | |
template<typename... _Tp> friend constexpr bool operator <(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); | |
template<typename... _Tp> friend constexpr bool operator <=(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); | |
template<typename... _Tp> friend constexpr bool operator ==(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); | |
template<typename... _Tp> friend constexpr bool operator !=(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); | |
template<typename... _Tp> friend constexpr bool operator >=(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); | |
template<typename... _Tp> friend constexpr bool operator >(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); | |
}; | |
template<size_t _Np, typename... _Types> | |
constexpr variant_alternative_t<_Np, variant<_Types...>>& | |
get(variant<_Types...>& __v) | |
{ | |
static_assert(_Np < sizeof...(_Types), | |
"The index must be in [0, number of alternatives)"); | |
if (__v.index() != _Np) | |
__throw_bad_variant_access(__v.valueless_by_exception()); | |
return __detail::__variant::__get<_Np>(__v); | |
} | |
template<size_t _Np, typename... _Types> | |
constexpr variant_alternative_t<_Np, variant<_Types...>>&& | |
get(variant<_Types...>&& __v) | |
{ | |
static_assert(_Np < sizeof...(_Types), | |
"The index must be in [0, number of alternatives)"); | |
if (__v.index() != _Np) | |
__throw_bad_variant_access(__v.valueless_by_exception()); | |
return __detail::__variant::__get<_Np>(std::move(__v)); | |
} | |
template<size_t _Np, typename... _Types> | |
constexpr const variant_alternative_t<_Np, variant<_Types...>>& | |
get(const variant<_Types...>& __v) | |
{ | |
static_assert(_Np < sizeof...(_Types), | |
"The index must be in [0, number of alternatives)"); | |
if (__v.index() != _Np) | |
__throw_bad_variant_access(__v.valueless_by_exception()); | |
return __detail::__variant::__get<_Np>(__v); | |
} | |
template<size_t _Np, typename... _Types> | |
constexpr const variant_alternative_t<_Np, variant<_Types...>>&& | |
get(const variant<_Types...>&& __v) | |
{ | |
static_assert(_Np < sizeof...(_Types), | |
"The index must be in [0, number of alternatives)"); | |
if (__v.index() != _Np) | |
__throw_bad_variant_access(__v.valueless_by_exception()); | |
return __detail::__variant::__get<_Np>(std::move(__v)); | |
} | |
template<typename _Result_type, typename _Visitor, typename... _Variants> | |
constexpr decltype(auto) | |
__do_visit(_Visitor&& __visitor, _Variants&&... __variants) | |
{ | |
if constexpr (sizeof...(_Variants) == 0) | |
{ | |
if constexpr (is_void_v<_Result_type>) | |
return (void) std::forward<_Visitor>(__visitor)(); | |
else | |
return std::forward<_Visitor>(__visitor)(); | |
} | |
else | |
{ | |
constexpr size_t __max = 11; | |
using _V0 = typename _Nth_type<0, _Variants...>::type; | |
constexpr auto __n = variant_size_v<remove_reference_t<_V0>>; | |
if constexpr (sizeof...(_Variants) > 1 || __n > __max) | |
{ | |
constexpr auto& __vtable = __detail::__variant::__gen_vtable< | |
_Result_type, _Visitor&&, _Variants&&...>::_S_vtable; | |
auto __func_ptr = __vtable._M_access(__variants.index()...); | |
return (*__func_ptr)(std::forward<_Visitor>(__visitor), | |
std::forward<_Variants>(__variants)...); | |
} | |
else | |
{ | |
_V0& __v0 | |
= [](_V0& __v, ...) -> _V0& { return __v; }(__variants...); | |
using __detail::__variant::_Multi_array; | |
using __detail::__variant::__gen_vtable_impl; | |
using _Ma = _Multi_array<_Result_type (*)(_Visitor&&, _V0&&)>; | |
# 1814 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/variant" 3 | |
switch (__v0.index()) | |
{ | |
case 0: { if constexpr (0 < __n) { return __gen_vtable_impl<_Ma, index_sequence<0>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } | |
case 1: { if constexpr (1 < __n) { return __gen_vtable_impl<_Ma, index_sequence<1>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } | |
case 2: { if constexpr (2 < __n) { return __gen_vtable_impl<_Ma, index_sequence<2>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } | |
case 3: { if constexpr (3 < __n) { return __gen_vtable_impl<_Ma, index_sequence<3>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } | |
case 4: { if constexpr (4 < __n) { return __gen_vtable_impl<_Ma, index_sequence<4>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } | |
case 5: { if constexpr (5 < __n) { return __gen_vtable_impl<_Ma, index_sequence<5>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } | |
case 6: { if constexpr (6 < __n) { return __gen_vtable_impl<_Ma, index_sequence<6>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } | |
case 7: { if constexpr (7 < __n) { return __gen_vtable_impl<_Ma, index_sequence<7>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } | |
case 8: { if constexpr (8 < __n) { return __gen_vtable_impl<_Ma, index_sequence<8>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } | |
case 9: { if constexpr (9 < __n) { return __gen_vtable_impl<_Ma, index_sequence<9>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } | |
case 10: { if constexpr (10 < __n) { return __gen_vtable_impl<_Ma, index_sequence<10>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } | |
case variant_npos: | |
using __detail::__variant::__variant_idx_cookie; | |
using __detail::__variant::__variant_cookie; | |
if constexpr (is_same_v<_Result_type, __variant_idx_cookie> | |
|| is_same_v<_Result_type, __variant_cookie>) | |
{ | |
using _Npos = index_sequence<variant_npos>; | |
return __gen_vtable_impl<_Ma, _Npos>:: | |
__visit_invoke(std::forward<_Visitor>(__visitor), | |
std::forward<_V0>(__v0)); | |
} | |
else | |
__builtin_unreachable(); | |
default: | |
__builtin_unreachable(); | |
} | |
} | |
} | |
} | |
template<typename _Visitor, typename... _Variants> | |
constexpr __detail::__variant::__visit_result_t<_Visitor, _Variants...> | |
visit(_Visitor&& __visitor, _Variants&&... __variants) | |
{ | |
namespace __variant = std::__detail::__variant; | |
if ((__variant::__as(__variants).valueless_by_exception() || ...)) | |
__throw_bad_variant_access("std::visit: variant is valueless"); | |
using _Result_type | |
= __detail::__variant::__visit_result_t<_Visitor, _Variants...>; | |
using _Tag = __detail::__variant::__deduce_visit_result<_Result_type>; | |
if constexpr (sizeof...(_Variants) == 1) | |
{ | |
using _Vp = decltype(__variant::__as(std::declval<_Variants>()...)); | |
constexpr bool __visit_rettypes_match = __detail::__variant:: | |
__check_visitor_results<_Visitor, _Vp>( | |
make_index_sequence<variant_size_v<remove_reference_t<_Vp>>>()); | |
if constexpr (!__visit_rettypes_match) | |
{ | |
static_assert(__visit_rettypes_match, | |
"std::visit requires the visitor to have the same " | |
"return type for all alternatives of a variant"); | |
return; | |
} | |
else | |
return std::__do_visit<_Tag>( | |
std::forward<_Visitor>(__visitor), | |
static_cast<_Vp>(__variants)...); | |
} | |
else | |
return std::__do_visit<_Tag>( | |
std::forward<_Visitor>(__visitor), | |
__variant::__as(std::forward<_Variants>(__variants))...); | |
} | |
# 1905 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/variant" 3 | |
template<bool, typename... _Types> | |
struct __variant_hash_call_base_impl | |
{ | |
size_t | |
operator()(const variant<_Types...>& __t) const | |
noexcept((is_nothrow_invocable_v<hash<decay_t<_Types>>, _Types> && ...)) | |
{ | |
size_t __ret; | |
__detail::__variant::__raw_visit( | |
[&__t, &__ret](auto&& __t_mem) mutable | |
{ | |
using _Type = __remove_cvref_t<decltype(__t_mem)>; | |
if constexpr (!is_same_v<_Type, | |
__detail::__variant::__variant_cookie>) | |
__ret = std::hash<size_t>{}(__t.index()) | |
+ std::hash<_Type>{}(__t_mem); | |
else | |
__ret = std::hash<size_t>{}(__t.index()); | |
}, __t); | |
return __ret; | |
} | |
}; | |
template<typename... _Types> | |
struct __variant_hash_call_base_impl<false, _Types...> {}; | |
template<typename... _Types> | |
using __variant_hash_call_base = | |
__variant_hash_call_base_impl<(__poison_hash<remove_const_t<_Types>>:: | |
__enable_hash_call &&...), _Types...>; | |
template<typename... _Types> | |
struct hash<variant<_Types...>> | |
: private __detail::__variant::_Variant_hash_base< | |
variant<_Types...>, std::index_sequence_for<_Types...>>, | |
public __variant_hash_call_base<_Types...> | |
{ | |
using result_type [[__deprecated__]] = size_t; | |
using argument_type [[__deprecated__]] = variant<_Types...>; | |
}; | |
template<> | |
struct hash<monostate> | |
{ | |
using result_type [[__deprecated__]] = size_t; | |
using argument_type [[__deprecated__]] = monostate; | |
size_t | |
operator()(const monostate&) const noexcept | |
{ | |
constexpr size_t __magic_monostate_hash = -7777; | |
return __magic_monostate_hash; | |
} | |
}; | |
template<typename... _Types> | |
struct __is_fast_hash<hash<variant<_Types...>>> | |
: bool_constant<(__is_fast_hash<_Types>::value && ...)> | |
{ }; | |
} | |
# 12 "/usr/include/qt6/QtCore/qtypeinfo.h" 2 3 4 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/optional" 1 3 4 | |
# 33 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/optional" 3 4 | |
# 34 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/optional" 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 1 3 | |
# 47 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 3 | |
# 48 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 3 | |
# 38 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/optional" 2 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/exception" 1 3 | |
# 33 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/exception" 3 | |
# 34 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/exception" 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 1 3 | |
# 47 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 3 | |
# 48 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 3 | |
# 40 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/exception" 2 3 | |
extern "C++" { | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
# 54 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/exception" 3 | |
class bad_exception : public exception | |
{ | |
public: | |
bad_exception() noexcept { } | |
virtual ~bad_exception() noexcept; | |
virtual const char* | |
what() const noexcept; | |
}; | |
typedef void (*terminate_handler) (); | |
terminate_handler set_terminate(terminate_handler) noexcept; | |
terminate_handler get_terminate() noexcept; | |
void terminate() noexcept __attribute__ ((__noreturn__,__cold__)); | |
typedef void (*__attribute__ ((__deprecated__)) unexpected_handler) (); | |
__attribute__ ((__deprecated__)) | |
unexpected_handler set_unexpected(unexpected_handler) noexcept; | |
__attribute__ ((__deprecated__)) | |
unexpected_handler get_unexpected() noexcept; | |
__attribute__ ((__deprecated__)) | |
void unexpected() __attribute__ ((__noreturn__,__cold__)); | |
# 124 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/exception" 3 | |
__attribute__ ((__deprecated__ ("use '" "std::uncaught_exceptions()" "' instead"))) | |
bool uncaught_exception() noexcept __attribute__ ((__pure__)); | |
int uncaught_exceptions() noexcept __attribute__ ((__pure__)); | |
} | |
namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) | |
{ | |
# 158 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/exception" 3 | |
void __verbose_terminate_handler(); | |
} | |
} | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/exception_ptr.h" 1 3 | |
# 36 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/exception_ptr.h" 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/cxxabi_init_exception.h" 1 3 | |
# 34 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/cxxabi_init_exception.h" 3 | |
# 35 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/cxxabi_init_exception.h" 3 | |
#pragma GCC visibility push(default) | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/stddef.h" 1 3 4 | |
# 39 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/cxxabi_init_exception.h" 2 3 | |
# 50 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/cxxabi_init_exception.h" 3 | |
namespace std | |
{ | |
class type_info; | |
} | |
namespace __cxxabiv1 | |
{ | |
struct __cxa_refcounted_exception; | |
extern "C" | |
{ | |
void* | |
__cxa_allocate_exception(size_t) noexcept; | |
void | |
__cxa_free_exception(void*) noexcept; | |
__cxa_refcounted_exception* | |
__cxa_init_primary_exception(void *__object, std::type_info *__tinfo, | |
void ( *__dest) (void *)) | |
noexcept; | |
} | |
} | |
#pragma GCC visibility pop | |
# 37 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/exception_ptr.h" 2 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/typeinfo" 1 3 | |
# 32 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/typeinfo" 3 | |
# 33 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/typeinfo" 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 1 3 | |
# 47 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 3 | |
# 48 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 3 | |
# 41 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/typeinfo" 2 3 | |
#pragma GCC visibility push(default) | |
extern "C++" { | |
namespace __cxxabiv1 | |
{ | |
class __class_type_info; | |
} | |
# 83 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/typeinfo" 3 | |
namespace std | |
{ | |
class type_info | |
{ | |
public: | |
virtual ~type_info(); | |
const char* name() const noexcept | |
{ return __name[0] == '*' ? __name + 1 : __name; } | |
bool before(const type_info& __arg) const noexcept; | |
bool operator==(const type_info& __arg) const noexcept; | |
bool operator!=(const type_info& __arg) const noexcept | |
{ return !operator==(__arg); } | |
size_t hash_code() const noexcept | |
{ | |
return _Hash_bytes(name(), __builtin_strlen(name()), | |
static_cast<size_t>(0xc70f6907UL)); | |
} | |
virtual bool __is_pointer_p() const; | |
virtual bool __is_function_p() const; | |
virtual bool __do_catch(const type_info *__thr_type, void **__thr_obj, | |
unsigned __outer) const; | |
virtual bool __do_upcast(const __cxxabiv1::__class_type_info *__target, | |
void **__obj_ptr) const; | |
protected: | |
const char *__name; | |
explicit type_info(const char *__n): __name(__n) { } | |
private: | |
type_info& operator=(const type_info&) = delete; | |
type_info(const type_info&) = delete; | |
# 166 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/typeinfo" 3 | |
}; | |
inline bool | |
type_info::before(const type_info& __arg) const noexcept | |
{ | |
if (__name[0] != '*' || __arg.__name[0] != '*') | |
return __builtin_strcmp (__name, __arg.__name) < 0; | |
# 186 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/typeinfo" 3 | |
return __name < __arg.__name; | |
} | |
inline bool | |
type_info::operator==(const type_info& __arg) const noexcept | |
{ | |
if (std::__is_constant_evaluated()) | |
return this == &__arg; | |
if (__name == __arg.__name) | |
return true; | |
return __name[0] != '*' && __builtin_strcmp (__name, __arg.name()) == 0; | |
} | |
# 219 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/typeinfo" 3 | |
class bad_cast : public exception | |
{ | |
public: | |
bad_cast() noexcept { } | |
virtual ~bad_cast() noexcept; | |
virtual const char* what() const noexcept; | |
}; | |
class bad_typeid : public exception | |
{ | |
public: | |
bad_typeid () noexcept { } | |
virtual ~bad_typeid() noexcept; | |
virtual const char* what() const noexcept; | |
}; | |
} | |
} | |
#pragma GCC visibility pop | |
# 38 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/exception_ptr.h" 2 3 | |
# 50 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/exception_ptr.h" 3 | |
extern "C++" { | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
class type_info; | |
namespace __exception_ptr | |
{ | |
class exception_ptr; | |
} | |
using __exception_ptr::exception_ptr; | |
# 75 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/exception_ptr.h" 3 | |
exception_ptr current_exception() noexcept; | |
template<typename _Ex> | |
exception_ptr make_exception_ptr(_Ex) noexcept; | |
void rethrow_exception(exception_ptr) __attribute__ ((__noreturn__)); | |
namespace __exception_ptr | |
{ | |
using std::rethrow_exception; | |
# 97 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/exception_ptr.h" 3 | |
class exception_ptr | |
{ | |
void* _M_exception_object; | |
explicit exception_ptr(void* __e) noexcept; | |
void _M_addref() noexcept; | |
void _M_release() noexcept; | |
void *_M_get() const noexcept __attribute__ ((__pure__)); | |
friend exception_ptr std::current_exception() noexcept; | |
friend void std::rethrow_exception(exception_ptr); | |
template<typename _Ex> | |
friend exception_ptr std::make_exception_ptr(_Ex) noexcept; | |
public: | |
exception_ptr() noexcept; | |
exception_ptr(const exception_ptr&) noexcept; | |
exception_ptr(nullptr_t) noexcept | |
: _M_exception_object(nullptr) | |
{ } | |
exception_ptr(exception_ptr&& __o) noexcept | |
: _M_exception_object(__o._M_exception_object) | |
{ __o._M_exception_object = nullptr; } | |
# 135 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/exception_ptr.h" 3 | |
exception_ptr& | |
operator=(const exception_ptr&) noexcept; | |
exception_ptr& | |
operator=(exception_ptr&& __o) noexcept | |
{ | |
exception_ptr(static_cast<exception_ptr&&>(__o)).swap(*this); | |
return *this; | |
} | |
~exception_ptr() noexcept; | |
void | |
swap(exception_ptr&) noexcept; | |
# 162 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/exception_ptr.h" 3 | |
explicit operator bool() const noexcept | |
{ return _M_exception_object; } | |
friend bool | |
operator==(const exception_ptr& __x, const exception_ptr& __y) | |
noexcept | |
{ return __x._M_exception_object == __y._M_exception_object; } | |
friend bool | |
operator!=(const exception_ptr& __x, const exception_ptr& __y) | |
noexcept | |
{ return __x._M_exception_object != __y._M_exception_object; } | |
const class std::type_info* | |
__cxa_exception_type() const noexcept | |
__attribute__ ((__pure__)); | |
}; | |
inline | |
exception_ptr::exception_ptr() noexcept | |
: _M_exception_object(0) | |
{ } | |
inline | |
exception_ptr::exception_ptr(const exception_ptr& __other) | |
noexcept | |
: _M_exception_object(__other._M_exception_object) | |
{ | |
if (_M_exception_object) | |
_M_addref(); | |
} | |
inline | |
exception_ptr::~exception_ptr() noexcept | |
{ | |
if (_M_exception_object) | |
_M_release(); | |
} | |
inline exception_ptr& | |
exception_ptr::operator=(const exception_ptr& __other) noexcept | |
{ | |
exception_ptr(__other).swap(*this); | |
return *this; | |
} | |
inline void | |
exception_ptr::swap(exception_ptr &__other) noexcept | |
{ | |
void *__tmp = _M_exception_object; | |
_M_exception_object = __other._M_exception_object; | |
__other._M_exception_object = __tmp; | |
} | |
inline void | |
swap(exception_ptr& __lhs, exception_ptr& __rhs) | |
{ __lhs.swap(__rhs); } | |
template<typename _Ex> | |
inline void | |
__dest_thunk(void* __x) | |
{ static_cast<_Ex*>(__x)->~_Ex(); } | |
} | |
using __exception_ptr::swap; | |
template<typename _Ex> | |
exception_ptr | |
make_exception_ptr(_Ex __ex) noexcept | |
{ | |
using _Ex2 = typename decay<_Ex>::type; | |
void* __e = __cxxabiv1::__cxa_allocate_exception(sizeof(_Ex)); | |
(void) __cxxabiv1::__cxa_init_primary_exception( | |
__e, const_cast<std::type_info*>(&typeid(_Ex)), | |
__exception_ptr::__dest_thunk<_Ex2>); | |
if (true) | |
{ | |
::new (__e) _Ex2(__ex); | |
return exception_ptr(__e); | |
} | |
if (false) | |
{ | |
__cxxabiv1::__cxa_free_exception(__e); | |
return current_exception(); | |
} | |
# 277 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/exception_ptr.h" 3 | |
} | |
# 291 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/exception_ptr.h" 3 | |
} | |
} | |
# 167 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/exception" 2 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/nested_exception.h" 1 3 | |
# 40 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/nested_exception.h" 3 | |
extern "C++" { | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
# 59 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/nested_exception.h" 3 | |
class nested_exception | |
{ | |
exception_ptr _M_ptr; | |
public: | |
nested_exception() noexcept : _M_ptr(current_exception()) { } | |
nested_exception(const nested_exception&) noexcept = default; | |
nested_exception& operator=(const nested_exception&) noexcept = default; | |
virtual ~nested_exception() noexcept; | |
[[noreturn]] | |
void | |
rethrow_nested() const | |
{ | |
if (_M_ptr) | |
rethrow_exception(_M_ptr); | |
std::terminate(); | |
} | |
exception_ptr | |
nested_ptr() const noexcept | |
{ return _M_ptr; } | |
}; | |
template<typename _Except> | |
struct _Nested_exception : public _Except, public nested_exception | |
{ | |
explicit _Nested_exception(const _Except& __ex) | |
: _Except(__ex) | |
{ } | |
explicit _Nested_exception(_Except&& __ex) | |
: _Except(static_cast<_Except&&>(__ex)) | |
{ } | |
}; | |
# 145 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/nested_exception.h" 3 | |
template<typename _Tp> | |
[[noreturn]] | |
inline void | |
throw_with_nested(_Tp&& __t) | |
{ | |
using _Up = typename decay<_Tp>::type; | |
using _CopyConstructible | |
= __and_<is_copy_constructible<_Up>, is_move_constructible<_Up>>; | |
static_assert(_CopyConstructible::value, | |
"throw_with_nested argument must be CopyConstructible"); | |
if constexpr (is_class_v<_Up>) | |
if constexpr (!is_final_v<_Up>) | |
if constexpr (!is_base_of_v<nested_exception, _Up>) | |
throw _Nested_exception<_Up>{std::forward<_Tp>(__t)}; | |
throw std::forward<_Tp>(__t); | |
} | |
# 203 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/nested_exception.h" 3 | |
template<typename _Ex> | |
inline void | |
rethrow_if_nested(const _Ex& __ex) | |
{ | |
const _Ex* __ptr = __builtin_addressof(__ex); | |
# 223 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/nested_exception.h" 3 | |
if constexpr (!is_polymorphic_v<_Ex>) | |
return; | |
else if constexpr (is_base_of_v<nested_exception, _Ex> | |
&& !is_convertible_v<_Ex*, nested_exception*>) | |
return; | |
else if (auto __ne_ptr = dynamic_cast<const nested_exception*>(__ptr)) | |
__ne_ptr->rethrow_nested(); | |
} | |
} | |
} | |
# 168 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/exception" 2 3 | |
# 43 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/optional" 2 3 | |
# 58 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/optional" 3 | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
template<typename _Tp> | |
class optional; | |
struct nullopt_t | |
{ | |
enum class _Construct { _Token }; | |
explicit constexpr nullopt_t(_Construct) noexcept { } | |
}; | |
inline constexpr nullopt_t nullopt { nullopt_t::_Construct::_Token }; | |
template<typename _Fn> struct _Optional_func { _Fn& _M_f; }; | |
class bad_optional_access : public exception | |
{ | |
public: | |
bad_optional_access() = default; | |
virtual ~bad_optional_access() = default; | |
const char* what() const noexcept override | |
{ return "bad optional access"; } | |
}; | |
[[__noreturn__]] inline void | |
__throw_bad_optional_access() | |
{ (__builtin_abort()); } | |
template <typename _Tp> | |
struct _Optional_payload_base | |
{ | |
using _Stored_type = remove_const_t<_Tp>; | |
_Optional_payload_base() = default; | |
~_Optional_payload_base() = default; | |
template<typename... _Args> | |
constexpr | |
_Optional_payload_base(in_place_t __tag, _Args&&... __args) | |
: _M_payload(__tag, std::forward<_Args>(__args)...), | |
_M_engaged(true) | |
{ } | |
template<typename _Up, typename... _Args> | |
constexpr | |
_Optional_payload_base(std::initializer_list<_Up> __il, | |
_Args&&... __args) | |
: _M_payload(__il, std::forward<_Args>(__args)...), | |
_M_engaged(true) | |
{ } | |
constexpr | |
_Optional_payload_base(bool , | |
const _Optional_payload_base& __other) | |
{ | |
if (__other._M_engaged) | |
this->_M_construct(__other._M_get()); | |
} | |
constexpr | |
_Optional_payload_base(bool , | |
_Optional_payload_base&& __other) | |
{ | |
if (__other._M_engaged) | |
this->_M_construct(std::move(__other._M_get())); | |
} | |
_Optional_payload_base(const _Optional_payload_base&) = default; | |
_Optional_payload_base(_Optional_payload_base&&) = default; | |
_Optional_payload_base& | |
operator=(const _Optional_payload_base&) = default; | |
_Optional_payload_base& | |
operator=(_Optional_payload_base&&) = default; | |
constexpr void | |
_M_copy_assign(const _Optional_payload_base& __other) | |
{ | |
if (this->_M_engaged && __other._M_engaged) | |
this->_M_get() = __other._M_get(); | |
else | |
{ | |
if (__other._M_engaged) | |
this->_M_construct(__other._M_get()); | |
else | |
this->_M_reset(); | |
} | |
} | |
constexpr void | |
_M_move_assign(_Optional_payload_base&& __other) | |
noexcept(__and_v<is_nothrow_move_constructible<_Tp>, | |
is_nothrow_move_assignable<_Tp>>) | |
{ | |
if (this->_M_engaged && __other._M_engaged) | |
this->_M_get() = std::move(__other._M_get()); | |
else | |
{ | |
if (__other._M_engaged) | |
this->_M_construct(std::move(__other._M_get())); | |
else | |
this->_M_reset(); | |
} | |
} | |
struct _Empty_byte { }; | |
template<typename _Up, bool = is_trivially_destructible_v<_Up>> | |
union _Storage | |
{ | |
constexpr _Storage() noexcept : _M_empty() { } | |
template<typename... _Args> | |
constexpr | |
_Storage(in_place_t, _Args&&... __args) | |
: _M_value(std::forward<_Args>(__args)...) | |
{ } | |
template<typename _Vp, typename... _Args> | |
constexpr | |
_Storage(std::initializer_list<_Vp> __il, _Args&&... __args) | |
: _M_value(__il, std::forward<_Args>(__args)...) | |
{ } | |
# 228 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/optional" 3 | |
_Empty_byte _M_empty; | |
_Up _M_value; | |
}; | |
template<typename _Up> | |
union _Storage<_Up, false> | |
{ | |
constexpr _Storage() noexcept : _M_empty() { } | |
template<typename... _Args> | |
constexpr | |
_Storage(in_place_t, _Args&&... __args) | |
: _M_value(std::forward<_Args>(__args)...) | |
{ } | |
template<typename _Vp, typename... _Args> | |
constexpr | |
_Storage(std::initializer_list<_Vp> __il, _Args&&... __args) | |
: _M_value(__il, std::forward<_Args>(__args)...) | |
{ } | |
# 259 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/optional" 3 | |
~_Storage() { } | |
_Empty_byte _M_empty; | |
_Up _M_value; | |
}; | |
_Storage<_Stored_type> _M_payload; | |
bool _M_engaged = false; | |
template<typename... _Args> | |
constexpr void | |
_M_construct(_Args&&... __args) | |
noexcept(is_nothrow_constructible_v<_Stored_type, _Args...>) | |
{ | |
std::_Construct(std::__addressof(this->_M_payload._M_value), | |
std::forward<_Args>(__args)...); | |
this->_M_engaged = true; | |
} | |
constexpr void | |
_M_destroy() noexcept | |
{ | |
_M_engaged = false; | |
_M_payload._M_value.~_Stored_type(); | |
} | |
# 301 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/optional" 3 | |
constexpr _Tp& | |
_M_get() noexcept | |
{ return this->_M_payload._M_value; } | |
constexpr const _Tp& | |
_M_get() const noexcept | |
{ return this->_M_payload._M_value; } | |
constexpr void | |
_M_reset() noexcept | |
{ | |
if (this->_M_engaged) | |
_M_destroy(); | |
else | |
this->_M_engaged = false; | |
} | |
}; | |
template <typename _Tp, | |
bool = | |
is_trivially_destructible_v<_Tp>, | |
bool = | |
is_trivially_copy_assignable_v<_Tp> | |
&& is_trivially_copy_constructible_v<_Tp>, | |
bool = | |
is_trivially_move_assignable_v<_Tp> | |
&& is_trivially_move_constructible_v<_Tp>> | |
struct _Optional_payload; | |
template <typename _Tp> | |
struct _Optional_payload<_Tp, true, true, true> | |
: _Optional_payload_base<_Tp> | |
{ | |
using _Optional_payload_base<_Tp>::_Optional_payload_base; | |
_Optional_payload() = default; | |
}; | |
template <typename _Tp> | |
struct _Optional_payload<_Tp, true, false, true> | |
: _Optional_payload_base<_Tp> | |
{ | |
using _Optional_payload_base<_Tp>::_Optional_payload_base; | |
_Optional_payload() = default; | |
~_Optional_payload() = default; | |
_Optional_payload(const _Optional_payload&) = default; | |
_Optional_payload(_Optional_payload&&) = default; | |
_Optional_payload& operator=(_Optional_payload&&) = default; | |
constexpr | |
_Optional_payload& | |
operator=(const _Optional_payload& __other) | |
{ | |
this->_M_copy_assign(__other); | |
return *this; | |
} | |
}; | |
template <typename _Tp> | |
struct _Optional_payload<_Tp, true, true, false> | |
: _Optional_payload_base<_Tp> | |
{ | |
using _Optional_payload_base<_Tp>::_Optional_payload_base; | |
_Optional_payload() = default; | |
~_Optional_payload() = default; | |
_Optional_payload(const _Optional_payload&) = default; | |
_Optional_payload(_Optional_payload&&) = default; | |
_Optional_payload& operator=(const _Optional_payload&) = default; | |
constexpr | |
_Optional_payload& | |
operator=(_Optional_payload&& __other) | |
noexcept(__and_v<is_nothrow_move_constructible<_Tp>, | |
is_nothrow_move_assignable<_Tp>>) | |
{ | |
this->_M_move_assign(std::move(__other)); | |
return *this; | |
} | |
}; | |
template <typename _Tp> | |
struct _Optional_payload<_Tp, true, false, false> | |
: _Optional_payload_base<_Tp> | |
{ | |
using _Optional_payload_base<_Tp>::_Optional_payload_base; | |
_Optional_payload() = default; | |
~_Optional_payload() = default; | |
_Optional_payload(const _Optional_payload&) = default; | |
_Optional_payload(_Optional_payload&&) = default; | |
constexpr | |
_Optional_payload& | |
operator=(const _Optional_payload& __other) | |
{ | |
this->_M_copy_assign(__other); | |
return *this; | |
} | |
constexpr | |
_Optional_payload& | |
operator=(_Optional_payload&& __other) | |
noexcept(__and_v<is_nothrow_move_constructible<_Tp>, | |
is_nothrow_move_assignable<_Tp>>) | |
{ | |
this->_M_move_assign(std::move(__other)); | |
return *this; | |
} | |
}; | |
template <typename _Tp, bool _Copy, bool _Move> | |
struct _Optional_payload<_Tp, false, _Copy, _Move> | |
: _Optional_payload<_Tp, true, false, false> | |
{ | |
using _Optional_payload<_Tp, true, false, false>::_Optional_payload; | |
_Optional_payload() = default; | |
_Optional_payload(const _Optional_payload&) = default; | |
_Optional_payload(_Optional_payload&&) = default; | |
_Optional_payload& operator=(const _Optional_payload&) = default; | |
_Optional_payload& operator=(_Optional_payload&&) = default; | |
~_Optional_payload() { this->_M_reset(); } | |
}; | |
template<typename _Tp, typename _Dp> | |
class _Optional_base_impl | |
{ | |
protected: | |
using _Stored_type = remove_const_t<_Tp>; | |
template<typename... _Args> | |
constexpr void | |
_M_construct(_Args&&... __args) | |
noexcept(is_nothrow_constructible_v<_Stored_type, _Args...>) | |
{ | |
static_cast<_Dp*>(this)->_M_payload._M_construct( | |
std::forward<_Args>(__args)...); | |
} | |
constexpr void | |
_M_destruct() noexcept | |
{ static_cast<_Dp*>(this)->_M_payload._M_destroy(); } | |
constexpr void | |
_M_reset() noexcept | |
{ static_cast<_Dp*>(this)->_M_payload._M_reset(); } | |
constexpr bool _M_is_engaged() const noexcept | |
{ return static_cast<const _Dp*>(this)->_M_payload._M_engaged; } | |
constexpr _Tp& | |
_M_get() noexcept | |
{ | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(this->_M_is_engaged()), false)) std::__glibcxx_assert_fail(); } while (false); | |
return static_cast<_Dp*>(this)->_M_payload._M_get(); | |
} | |
constexpr const _Tp& | |
_M_get() const noexcept | |
{ | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(this->_M_is_engaged()), false)) std::__glibcxx_assert_fail(); } while (false); | |
return static_cast<const _Dp*>(this)->_M_payload._M_get(); | |
} | |
}; | |
# 505 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/optional" 3 | |
template<typename _Tp, | |
bool = is_trivially_copy_constructible_v<_Tp>, | |
bool = is_trivially_move_constructible_v<_Tp>> | |
struct _Optional_base | |
: _Optional_base_impl<_Tp, _Optional_base<_Tp>> | |
{ | |
constexpr _Optional_base() = default; | |
template<typename... _Args, | |
enable_if_t<is_constructible_v<_Tp, _Args...>, bool> = false> | |
constexpr explicit | |
_Optional_base(in_place_t, _Args&&... __args) | |
: _M_payload(in_place, std::forward<_Args>(__args)...) | |
{ } | |
template<typename _Up, typename... _Args, | |
enable_if_t<is_constructible_v<_Tp, | |
initializer_list<_Up>&, | |
_Args...>, bool> = false> | |
constexpr explicit | |
_Optional_base(in_place_t, | |
initializer_list<_Up> __il, | |
_Args&&... __args) | |
: _M_payload(in_place, __il, std::forward<_Args>(__args)...) | |
{ } | |
constexpr | |
_Optional_base(const _Optional_base& __other) | |
: _M_payload(__other._M_payload._M_engaged, __other._M_payload) | |
{ } | |
constexpr | |
_Optional_base(_Optional_base&& __other) | |
noexcept(is_nothrow_move_constructible_v<_Tp>) | |
: _M_payload(__other._M_payload._M_engaged, | |
std::move(__other._M_payload)) | |
{ } | |
_Optional_base& operator=(const _Optional_base&) = default; | |
_Optional_base& operator=(_Optional_base&&) = default; | |
_Optional_payload<_Tp> _M_payload; | |
}; | |
template<typename _Tp> | |
struct _Optional_base<_Tp, false, true> | |
: _Optional_base_impl<_Tp, _Optional_base<_Tp>> | |
{ | |
constexpr _Optional_base() = default; | |
template<typename... _Args, | |
enable_if_t<is_constructible_v<_Tp, _Args...>, bool> = false> | |
constexpr explicit | |
_Optional_base(in_place_t, _Args&&... __args) | |
: _M_payload(in_place, std::forward<_Args>(__args)...) | |
{ } | |
template<typename _Up, typename... _Args, | |
enable_if_t<is_constructible_v<_Tp, | |
initializer_list<_Up>&, | |
_Args...>, bool> = false> | |
constexpr explicit | |
_Optional_base(in_place_t, | |
initializer_list<_Up> __il, | |
_Args... __args) | |
: _M_payload(in_place, __il, std::forward<_Args>(__args)...) | |
{ } | |
constexpr _Optional_base(const _Optional_base& __other) | |
: _M_payload(__other._M_payload._M_engaged, __other._M_payload) | |
{ } | |
constexpr _Optional_base(_Optional_base&& __other) = default; | |
_Optional_base& operator=(const _Optional_base&) = default; | |
_Optional_base& operator=(_Optional_base&&) = default; | |
_Optional_payload<_Tp> _M_payload; | |
}; | |
template<typename _Tp> | |
struct _Optional_base<_Tp, true, false> | |
: _Optional_base_impl<_Tp, _Optional_base<_Tp>> | |
{ | |
constexpr _Optional_base() = default; | |
template<typename... _Args, | |
enable_if_t<is_constructible_v<_Tp, _Args...>, bool> = false> | |
constexpr explicit | |
_Optional_base(in_place_t, _Args&&... __args) | |
: _M_payload(in_place, std::forward<_Args>(__args)...) | |
{ } | |
template<typename _Up, typename... _Args, | |
enable_if_t<is_constructible_v<_Tp, | |
initializer_list<_Up>&, | |
_Args...>, bool> = false> | |
constexpr explicit | |
_Optional_base(in_place_t, | |
initializer_list<_Up> __il, | |
_Args&&... __args) | |
: _M_payload(in_place, __il, std::forward<_Args>(__args)...) | |
{ } | |
constexpr _Optional_base(const _Optional_base& __other) = default; | |
constexpr | |
_Optional_base(_Optional_base&& __other) | |
noexcept(is_nothrow_move_constructible_v<_Tp>) | |
: _M_payload(__other._M_payload._M_engaged, | |
std::move(__other._M_payload)) | |
{ } | |
_Optional_base& operator=(const _Optional_base&) = default; | |
_Optional_base& operator=(_Optional_base&&) = default; | |
_Optional_payload<_Tp> _M_payload; | |
}; | |
template<typename _Tp> | |
struct _Optional_base<_Tp, true, true> | |
: _Optional_base_impl<_Tp, _Optional_base<_Tp>> | |
{ | |
constexpr _Optional_base() = default; | |
template<typename... _Args, | |
enable_if_t<is_constructible_v<_Tp, _Args...>, bool> = false> | |
constexpr explicit | |
_Optional_base(in_place_t, _Args&&... __args) | |
: _M_payload(in_place, std::forward<_Args>(__args)...) | |
{ } | |
template<typename _Up, typename... _Args, | |
enable_if_t<is_constructible_v<_Tp, | |
initializer_list<_Up>&, | |
_Args...>, bool> = false> | |
constexpr explicit | |
_Optional_base(in_place_t, | |
initializer_list<_Up> __il, | |
_Args&&... __args) | |
: _M_payload(in_place, __il, std::forward<_Args>(__args)...) | |
{ } | |
constexpr _Optional_base(const _Optional_base& __other) = default; | |
constexpr _Optional_base(_Optional_base&& __other) = default; | |
_Optional_base& operator=(const _Optional_base&) = default; | |
_Optional_base& operator=(_Optional_base&&) = default; | |
_Optional_payload<_Tp> _M_payload; | |
}; | |
template<typename _Tp> | |
class optional; | |
template<typename _Tp> | |
inline constexpr bool __is_optional_v = false; | |
template<typename _Tp> | |
inline constexpr bool __is_optional_v<optional<_Tp>> = true; | |
template<typename _Tp, typename _Up> | |
using __converts_from_optional = | |
__or_<is_constructible<_Tp, const optional<_Up>&>, | |
is_constructible<_Tp, optional<_Up>&>, | |
is_constructible<_Tp, const optional<_Up>&&>, | |
is_constructible<_Tp, optional<_Up>&&>, | |
is_convertible<const optional<_Up>&, _Tp>, | |
is_convertible<optional<_Up>&, _Tp>, | |
is_convertible<const optional<_Up>&&, _Tp>, | |
is_convertible<optional<_Up>&&, _Tp>>; | |
template<typename _Tp, typename _Up> | |
using __assigns_from_optional = | |
__or_<is_assignable<_Tp&, const optional<_Up>&>, | |
is_assignable<_Tp&, optional<_Up>&>, | |
is_assignable<_Tp&, const optional<_Up>&&>, | |
is_assignable<_Tp&, optional<_Up>&&>>; | |
template<typename _Tp> | |
class optional | |
: private _Optional_base<_Tp>, | |
private _Enable_copy_move< | |
is_copy_constructible_v<_Tp>, | |
__and_v<is_copy_constructible<_Tp>, is_copy_assignable<_Tp>>, | |
is_move_constructible_v<_Tp>, | |
__and_v<is_move_constructible<_Tp>, is_move_assignable<_Tp>>, | |
optional<_Tp>> | |
{ | |
static_assert(!is_same_v<remove_cv_t<_Tp>, nullopt_t>); | |
static_assert(!is_same_v<remove_cv_t<_Tp>, in_place_t>); | |
static_assert(is_object_v<_Tp> && !is_array_v<_Tp>); | |
private: | |
using _Base = _Optional_base<_Tp>; | |
template<typename _Up> | |
using __not_self = __not_<is_same<optional, __remove_cvref_t<_Up>>>; | |
template<typename _Up> | |
using __not_tag = __not_<is_same<in_place_t, __remove_cvref_t<_Up>>>; | |
template<typename... _Cond> | |
using _Requires = enable_if_t<__and_v<_Cond...>, bool>; | |
public: | |
using value_type = _Tp; | |
constexpr optional() noexcept { } | |
constexpr optional(nullopt_t) noexcept { } | |
template<typename _Up = _Tp, | |
_Requires<__not_self<_Up>, __not_tag<_Up>, | |
is_constructible<_Tp, _Up>, | |
is_convertible<_Up, _Tp>> = true> | |
constexpr | |
optional(_Up&& __t) | |
noexcept(is_nothrow_constructible_v<_Tp, _Up>) | |
: _Base(std::in_place, std::forward<_Up>(__t)) { } | |
template<typename _Up = _Tp, | |
_Requires<__not_self<_Up>, __not_tag<_Up>, | |
is_constructible<_Tp, _Up>, | |
__not_<is_convertible<_Up, _Tp>>> = false> | |
explicit constexpr | |
optional(_Up&& __t) | |
noexcept(is_nothrow_constructible_v<_Tp, _Up>) | |
: _Base(std::in_place, std::forward<_Up>(__t)) { } | |
template<typename _Up, | |
_Requires<__not_<is_same<_Tp, _Up>>, | |
is_constructible<_Tp, const _Up&>, | |
is_convertible<const _Up&, _Tp>, | |
__not_<__converts_from_optional<_Tp, _Up>>> = true> | |
constexpr | |
optional(const optional<_Up>& __t) | |
noexcept(is_nothrow_constructible_v<_Tp, const _Up&>) | |
{ | |
if (__t) | |
emplace(*__t); | |
} | |
template<typename _Up, | |
_Requires<__not_<is_same<_Tp, _Up>>, | |
is_constructible<_Tp, const _Up&>, | |
__not_<is_convertible<const _Up&, _Tp>>, | |
__not_<__converts_from_optional<_Tp, _Up>>> = false> | |
explicit constexpr | |
optional(const optional<_Up>& __t) | |
noexcept(is_nothrow_constructible_v<_Tp, const _Up&>) | |
{ | |
if (__t) | |
emplace(*__t); | |
} | |
template<typename _Up, | |
_Requires<__not_<is_same<_Tp, _Up>>, | |
is_constructible<_Tp, _Up>, | |
is_convertible<_Up, _Tp>, | |
__not_<__converts_from_optional<_Tp, _Up>>> = true> | |
constexpr | |
optional(optional<_Up>&& __t) | |
noexcept(is_nothrow_constructible_v<_Tp, _Up>) | |
{ | |
if (__t) | |
emplace(std::move(*__t)); | |
} | |
template<typename _Up, | |
_Requires<__not_<is_same<_Tp, _Up>>, | |
is_constructible<_Tp, _Up>, | |
__not_<is_convertible<_Up, _Tp>>, | |
__not_<__converts_from_optional<_Tp, _Up>>> = false> | |
explicit constexpr | |
optional(optional<_Up>&& __t) | |
noexcept(is_nothrow_constructible_v<_Tp, _Up>) | |
{ | |
if (__t) | |
emplace(std::move(*__t)); | |
} | |
template<typename... _Args, | |
_Requires<is_constructible<_Tp, _Args...>> = false> | |
explicit constexpr | |
optional(in_place_t, _Args&&... __args) | |
noexcept(is_nothrow_constructible_v<_Tp, _Args...>) | |
: _Base(std::in_place, std::forward<_Args>(__args)...) { } | |
template<typename _Up, typename... _Args, | |
_Requires<is_constructible<_Tp, | |
initializer_list<_Up>&, | |
_Args...>> = false> | |
explicit constexpr | |
optional(in_place_t, initializer_list<_Up> __il, _Args&&... __args) | |
noexcept(is_nothrow_constructible_v<_Tp, initializer_list<_Up>&, | |
_Args...>) | |
: _Base(std::in_place, __il, std::forward<_Args>(__args)...) { } | |
optional& | |
operator=(nullopt_t) noexcept | |
{ | |
this->_M_reset(); | |
return *this; | |
} | |
template<typename _Up = _Tp> | |
enable_if_t<__and_v<__not_self<_Up>, | |
__not_<__and_<is_scalar<_Tp>, | |
is_same<_Tp, decay_t<_Up>>>>, | |
is_constructible<_Tp, _Up>, | |
is_assignable<_Tp&, _Up>>, | |
optional&> | |
operator=(_Up&& __u) | |
noexcept(__and_v<is_nothrow_constructible<_Tp, _Up>, | |
is_nothrow_assignable<_Tp&, _Up>>) | |
{ | |
if (this->_M_is_engaged()) | |
this->_M_get() = std::forward<_Up>(__u); | |
else | |
this->_M_construct(std::forward<_Up>(__u)); | |
return *this; | |
} | |
template<typename _Up> | |
enable_if_t<__and_v<__not_<is_same<_Tp, _Up>>, | |
is_constructible<_Tp, const _Up&>, | |
is_assignable<_Tp&, const _Up&>, | |
__not_<__converts_from_optional<_Tp, _Up>>, | |
__not_<__assigns_from_optional<_Tp, _Up>>>, | |
optional&> | |
operator=(const optional<_Up>& __u) | |
noexcept(__and_v<is_nothrow_constructible<_Tp, const _Up&>, | |
is_nothrow_assignable<_Tp&, const _Up&>>) | |
{ | |
if (__u) | |
{ | |
if (this->_M_is_engaged()) | |
this->_M_get() = *__u; | |
else | |
this->_M_construct(*__u); | |
} | |
else | |
{ | |
this->_M_reset(); | |
} | |
return *this; | |
} | |
template<typename _Up> | |
enable_if_t<__and_v<__not_<is_same<_Tp, _Up>>, | |
is_constructible<_Tp, _Up>, | |
is_assignable<_Tp&, _Up>, | |
__not_<__converts_from_optional<_Tp, _Up>>, | |
__not_<__assigns_from_optional<_Tp, _Up>>>, | |
optional&> | |
operator=(optional<_Up>&& __u) | |
noexcept(__and_v<is_nothrow_constructible<_Tp, _Up>, | |
is_nothrow_assignable<_Tp&, _Up>>) | |
{ | |
if (__u) | |
{ | |
if (this->_M_is_engaged()) | |
this->_M_get() = std::move(*__u); | |
else | |
this->_M_construct(std::move(*__u)); | |
} | |
else | |
{ | |
this->_M_reset(); | |
} | |
return *this; | |
} | |
template<typename... _Args> | |
enable_if_t<is_constructible_v<_Tp, _Args...>, _Tp&> | |
emplace(_Args&&... __args) | |
noexcept(is_nothrow_constructible_v<_Tp, _Args...>) | |
{ | |
this->_M_reset(); | |
this->_M_construct(std::forward<_Args>(__args)...); | |
return this->_M_get(); | |
} | |
template<typename _Up, typename... _Args> | |
enable_if_t<is_constructible_v<_Tp, initializer_list<_Up>&, _Args...>, | |
_Tp&> | |
emplace(initializer_list<_Up> __il, _Args&&... __args) | |
noexcept(is_nothrow_constructible_v<_Tp, initializer_list<_Up>&, | |
_Args...>) | |
{ | |
this->_M_reset(); | |
this->_M_construct(__il, std::forward<_Args>(__args)...); | |
return this->_M_get(); | |
} | |
void | |
swap(optional& __other) | |
noexcept(is_nothrow_move_constructible_v<_Tp> | |
&& is_nothrow_swappable_v<_Tp>) | |
{ | |
using std::swap; | |
if (this->_M_is_engaged() && __other._M_is_engaged()) | |
swap(this->_M_get(), __other._M_get()); | |
else if (this->_M_is_engaged()) | |
{ | |
__other._M_construct(std::move(this->_M_get())); | |
this->_M_destruct(); | |
} | |
else if (__other._M_is_engaged()) | |
{ | |
this->_M_construct(std::move(__other._M_get())); | |
__other._M_destruct(); | |
} | |
} | |
constexpr const _Tp* | |
operator->() const noexcept | |
{ return std::__addressof(this->_M_get()); } | |
constexpr _Tp* | |
operator->() noexcept | |
{ return std::__addressof(this->_M_get()); } | |
constexpr const _Tp& | |
operator*() const& noexcept | |
{ return this->_M_get(); } | |
constexpr _Tp& | |
operator*()& noexcept | |
{ return this->_M_get(); } | |
constexpr _Tp&& | |
operator*()&& noexcept | |
{ return std::move(this->_M_get()); } | |
constexpr const _Tp&& | |
operator*() const&& noexcept | |
{ return std::move(this->_M_get()); } | |
constexpr explicit operator bool() const noexcept | |
{ return this->_M_is_engaged(); } | |
constexpr bool has_value() const noexcept | |
{ return this->_M_is_engaged(); } | |
constexpr const _Tp& | |
value() const& | |
{ | |
if (this->_M_is_engaged()) | |
return this->_M_get(); | |
__throw_bad_optional_access(); | |
} | |
constexpr _Tp& | |
value()& | |
{ | |
if (this->_M_is_engaged()) | |
return this->_M_get(); | |
__throw_bad_optional_access(); | |
} | |
constexpr _Tp&& | |
value()&& | |
{ | |
if (this->_M_is_engaged()) | |
return std::move(this->_M_get()); | |
__throw_bad_optional_access(); | |
} | |
constexpr const _Tp&& | |
value() const&& | |
{ | |
if (this->_M_is_engaged()) | |
return std::move(this->_M_get()); | |
__throw_bad_optional_access(); | |
} | |
template<typename _Up> | |
constexpr _Tp | |
value_or(_Up&& __u) const& | |
{ | |
static_assert(is_copy_constructible_v<_Tp>); | |
static_assert(is_convertible_v<_Up&&, _Tp>); | |
if (this->_M_is_engaged()) | |
return this->_M_get(); | |
else | |
return static_cast<_Tp>(std::forward<_Up>(__u)); | |
} | |
template<typename _Up> | |
constexpr _Tp | |
value_or(_Up&& __u) && | |
{ | |
static_assert(is_move_constructible_v<_Tp>); | |
static_assert(is_convertible_v<_Up&&, _Tp>); | |
if (this->_M_is_engaged()) | |
return std::move(this->_M_get()); | |
else | |
return static_cast<_Tp>(std::forward<_Up>(__u)); | |
} | |
# 1180 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/optional" 3 | |
void reset() noexcept { this->_M_reset(); } | |
private: | |
# 1193 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/optional" 3 | |
}; | |
template<typename _Tp> | |
using __optional_relop_t = | |
enable_if_t<is_convertible<_Tp, bool>::value, bool>; | |
template<typename _Tp, typename _Up> | |
using __optional_eq_t = __optional_relop_t< | |
decltype(std::declval<const _Tp&>() == std::declval<const _Up&>()) | |
>; | |
template<typename _Tp, typename _Up> | |
using __optional_ne_t = __optional_relop_t< | |
decltype(std::declval<const _Tp&>() != std::declval<const _Up&>()) | |
>; | |
template<typename _Tp, typename _Up> | |
using __optional_lt_t = __optional_relop_t< | |
decltype(std::declval<const _Tp&>() < std::declval<const _Up&>()) | |
>; | |
template<typename _Tp, typename _Up> | |
using __optional_gt_t = __optional_relop_t< | |
decltype(std::declval<const _Tp&>() > std::declval<const _Up&>()) | |
>; | |
template<typename _Tp, typename _Up> | |
using __optional_le_t = __optional_relop_t< | |
decltype(std::declval<const _Tp&>() <= std::declval<const _Up&>()) | |
>; | |
template<typename _Tp, typename _Up> | |
using __optional_ge_t = __optional_relop_t< | |
decltype(std::declval<const _Tp&>() >= std::declval<const _Up&>()) | |
>; | |
template<typename _Tp, typename _Up> | |
constexpr auto | |
operator==(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) | |
-> __optional_eq_t<_Tp, _Up> | |
{ | |
return static_cast<bool>(__lhs) == static_cast<bool>(__rhs) | |
&& (!__lhs || *__lhs == *__rhs); | |
} | |
template<typename _Tp, typename _Up> | |
constexpr auto | |
operator!=(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) | |
-> __optional_ne_t<_Tp, _Up> | |
{ | |
return static_cast<bool>(__lhs) != static_cast<bool>(__rhs) | |
|| (static_cast<bool>(__lhs) && *__lhs != *__rhs); | |
} | |
template<typename _Tp, typename _Up> | |
constexpr auto | |
operator<(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) | |
-> __optional_lt_t<_Tp, _Up> | |
{ | |
return static_cast<bool>(__rhs) && (!__lhs || *__lhs < *__rhs); | |
} | |
template<typename _Tp, typename _Up> | |
constexpr auto | |
operator>(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) | |
-> __optional_gt_t<_Tp, _Up> | |
{ | |
return static_cast<bool>(__lhs) && (!__rhs || *__lhs > *__rhs); | |
} | |
template<typename _Tp, typename _Up> | |
constexpr auto | |
operator<=(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) | |
-> __optional_le_t<_Tp, _Up> | |
{ | |
return !__lhs || (static_cast<bool>(__rhs) && *__lhs <= *__rhs); | |
} | |
template<typename _Tp, typename _Up> | |
constexpr auto | |
operator>=(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) | |
-> __optional_ge_t<_Tp, _Up> | |
{ | |
return !__rhs || (static_cast<bool>(__lhs) && *__lhs >= *__rhs); | |
} | |
# 1290 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/optional" 3 | |
template<typename _Tp> | |
constexpr bool | |
operator==(const optional<_Tp>& __lhs, nullopt_t) noexcept | |
{ return !__lhs; } | |
template<typename _Tp> | |
constexpr bool | |
operator==(nullopt_t, const optional<_Tp>& __rhs) noexcept | |
{ return !__rhs; } | |
template<typename _Tp> | |
constexpr bool | |
operator!=(const optional<_Tp>& __lhs, nullopt_t) noexcept | |
{ return static_cast<bool>(__lhs); } | |
template<typename _Tp> | |
constexpr bool | |
operator!=(nullopt_t, const optional<_Tp>& __rhs) noexcept | |
{ return static_cast<bool>(__rhs); } | |
template<typename _Tp> | |
constexpr bool | |
operator<(const optional<_Tp>& , nullopt_t) noexcept | |
{ return false; } | |
template<typename _Tp> | |
constexpr bool | |
operator<(nullopt_t, const optional<_Tp>& __rhs) noexcept | |
{ return static_cast<bool>(__rhs); } | |
template<typename _Tp> | |
constexpr bool | |
operator>(const optional<_Tp>& __lhs, nullopt_t) noexcept | |
{ return static_cast<bool>(__lhs); } | |
template<typename _Tp> | |
constexpr bool | |
operator>(nullopt_t, const optional<_Tp>& ) noexcept | |
{ return false; } | |
template<typename _Tp> | |
constexpr bool | |
operator<=(const optional<_Tp>& __lhs, nullopt_t) noexcept | |
{ return !__lhs; } | |
template<typename _Tp> | |
constexpr bool | |
operator<=(nullopt_t, const optional<_Tp>& ) noexcept | |
{ return true; } | |
template<typename _Tp> | |
constexpr bool | |
operator>=(const optional<_Tp>& , nullopt_t) noexcept | |
{ return true; } | |
template<typename _Tp> | |
constexpr bool | |
operator>=(nullopt_t, const optional<_Tp>& __rhs) noexcept | |
{ return !__rhs; } | |
template<typename _Tp, typename _Up> | |
constexpr auto | |
operator==(const optional<_Tp>& __lhs, const _Up& __rhs) | |
-> __optional_eq_t<_Tp, _Up> | |
{ return __lhs && *__lhs == __rhs; } | |
template<typename _Tp, typename _Up> | |
constexpr auto | |
operator==(const _Up& __lhs, const optional<_Tp>& __rhs) | |
-> __optional_eq_t<_Up, _Tp> | |
{ return __rhs && __lhs == *__rhs; } | |
template<typename _Tp, typename _Up> | |
constexpr auto | |
operator!=(const optional<_Tp>& __lhs, const _Up& __rhs) | |
-> __optional_ne_t<_Tp, _Up> | |
{ return !__lhs || *__lhs != __rhs; } | |
template<typename _Tp, typename _Up> | |
constexpr auto | |
operator!=(const _Up& __lhs, const optional<_Tp>& __rhs) | |
-> __optional_ne_t<_Up, _Tp> | |
{ return !__rhs || __lhs != *__rhs; } | |
template<typename _Tp, typename _Up> | |
constexpr auto | |
operator<(const optional<_Tp>& __lhs, const _Up& __rhs) | |
-> __optional_lt_t<_Tp, _Up> | |
{ return !__lhs || *__lhs < __rhs; } | |
template<typename _Tp, typename _Up> | |
constexpr auto | |
operator<(const _Up& __lhs, const optional<_Tp>& __rhs) | |
-> __optional_lt_t<_Up, _Tp> | |
{ return __rhs && __lhs < *__rhs; } | |
template<typename _Tp, typename _Up> | |
constexpr auto | |
operator>(const optional<_Tp>& __lhs, const _Up& __rhs) | |
-> __optional_gt_t<_Tp, _Up> | |
{ return __lhs && *__lhs > __rhs; } | |
template<typename _Tp, typename _Up> | |
constexpr auto | |
operator>(const _Up& __lhs, const optional<_Tp>& __rhs) | |
-> __optional_gt_t<_Up, _Tp> | |
{ return !__rhs || __lhs > *__rhs; } | |
template<typename _Tp, typename _Up> | |
constexpr auto | |
operator<=(const optional<_Tp>& __lhs, const _Up& __rhs) | |
-> __optional_le_t<_Tp, _Up> | |
{ return !__lhs || *__lhs <= __rhs; } | |
template<typename _Tp, typename _Up> | |
constexpr auto | |
operator<=(const _Up& __lhs, const optional<_Tp>& __rhs) | |
-> __optional_le_t<_Up, _Tp> | |
{ return __rhs && __lhs <= *__rhs; } | |
template<typename _Tp, typename _Up> | |
constexpr auto | |
operator>=(const optional<_Tp>& __lhs, const _Up& __rhs) | |
-> __optional_ge_t<_Tp, _Up> | |
{ return __lhs && *__lhs >= __rhs; } | |
template<typename _Tp, typename _Up> | |
constexpr auto | |
operator>=(const _Up& __lhs, const optional<_Tp>& __rhs) | |
-> __optional_ge_t<_Up, _Tp> | |
{ return !__rhs || __lhs >= *__rhs; } | |
# 1443 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/optional" 3 | |
template<typename _Tp> | |
inline enable_if_t<is_move_constructible_v<_Tp> && is_swappable_v<_Tp>> | |
swap(optional<_Tp>& __lhs, optional<_Tp>& __rhs) | |
noexcept(noexcept(__lhs.swap(__rhs))) | |
{ __lhs.swap(__rhs); } | |
template<typename _Tp> | |
enable_if_t<!(is_move_constructible_v<_Tp> && is_swappable_v<_Tp>)> | |
swap(optional<_Tp>&, optional<_Tp>&) = delete; | |
template<typename _Tp> | |
constexpr | |
enable_if_t<is_constructible_v<decay_t<_Tp>, _Tp>, | |
optional<decay_t<_Tp>>> | |
make_optional(_Tp&& __t) | |
noexcept(is_nothrow_constructible_v<optional<decay_t<_Tp>>, _Tp>) | |
{ return optional<decay_t<_Tp>>{ std::forward<_Tp>(__t) }; } | |
template<typename _Tp, typename... _Args> | |
constexpr | |
enable_if_t<is_constructible_v<_Tp, _Args...>, | |
optional<_Tp>> | |
make_optional(_Args&&... __args) | |
noexcept(is_nothrow_constructible_v<_Tp, _Args...>) | |
{ return optional<_Tp>{ in_place, std::forward<_Args>(__args)... }; } | |
template<typename _Tp, typename _Up, typename... _Args> | |
constexpr | |
enable_if_t<is_constructible_v<_Tp, initializer_list<_Up>&, _Args...>, | |
optional<_Tp>> | |
make_optional(initializer_list<_Up> __il, _Args&&... __args) | |
noexcept(is_nothrow_constructible_v<_Tp, initializer_list<_Up>&, _Args...>) | |
{ return optional<_Tp>{ in_place, __il, std::forward<_Args>(__args)... }; } | |
template<typename _Tp, typename _Up = remove_const_t<_Tp>, | |
bool = __poison_hash<_Up>::__enable_hash_call> | |
struct __optional_hash_call_base | |
{ | |
size_t | |
operator()(const optional<_Tp>& __t) const | |
noexcept(noexcept(hash<_Up>{}(*__t))) | |
{ | |
constexpr size_t __magic_disengaged_hash = static_cast<size_t>(-3333); | |
return __t ? hash<_Up>{}(*__t) : __magic_disengaged_hash; | |
} | |
}; | |
template<typename _Tp, typename _Up> | |
struct __optional_hash_call_base<_Tp, _Up, false> {}; | |
template<typename _Tp> | |
struct hash<optional<_Tp>> | |
: private __poison_hash<remove_const_t<_Tp>>, | |
public __optional_hash_call_base<_Tp> | |
{ | |
using result_type [[__deprecated__]] = size_t; | |
using argument_type [[__deprecated__]] = optional<_Tp>; | |
}; | |
template<typename _Tp> | |
struct __is_fast_hash<hash<optional<_Tp>>> : __is_fast_hash<hash<_Tp>> | |
{ }; | |
template <typename _Tp> optional(_Tp) -> optional<_Tp>; | |
} | |
# 13 "/usr/include/qt6/QtCore/qtypeinfo.h" 2 3 4 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tuple" 1 3 4 | |
# 32 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tuple" 3 4 | |
# 33 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tuple" 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/uses_allocator.h" 1 3 | |
# 40 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/uses_allocator.h" 3 | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
struct __erased_type { }; | |
template<typename _Alloc, typename _Tp> | |
using __is_erased_or_convertible | |
= __or_<is_convertible<_Alloc, _Tp>, is_same<_Tp, __erased_type>>; | |
struct allocator_arg_t { explicit allocator_arg_t() = default; }; | |
inline constexpr allocator_arg_t allocator_arg = | |
allocator_arg_t(); | |
template<typename _Tp, typename _Alloc, typename = __void_t<>> | |
struct __uses_allocator_helper | |
: false_type { }; | |
template<typename _Tp, typename _Alloc> | |
struct __uses_allocator_helper<_Tp, _Alloc, | |
__void_t<typename _Tp::allocator_type>> | |
: __is_erased_or_convertible<_Alloc, typename _Tp::allocator_type>::type | |
{ }; | |
template<typename _Tp, typename _Alloc> | |
struct uses_allocator | |
: __uses_allocator_helper<_Tp, _Alloc>::type | |
{ }; | |
struct __uses_alloc_base { }; | |
struct __uses_alloc0 : __uses_alloc_base | |
{ | |
struct _Sink { void operator=(const void*) { } } _M_a; | |
}; | |
template<typename _Alloc> | |
struct __uses_alloc1 : __uses_alloc_base { const _Alloc* _M_a; }; | |
template<typename _Alloc> | |
struct __uses_alloc2 : __uses_alloc_base { const _Alloc* _M_a; }; | |
template<bool, typename _Tp, typename _Alloc, typename... _Args> | |
struct __uses_alloc; | |
template<typename _Tp, typename _Alloc, typename... _Args> | |
struct __uses_alloc<true, _Tp, _Alloc, _Args...> | |
: __conditional_t< | |
is_constructible<_Tp, allocator_arg_t, const _Alloc&, _Args...>::value, | |
__uses_alloc1<_Alloc>, | |
__uses_alloc2<_Alloc>> | |
{ | |
static_assert(__or_< | |
is_constructible<_Tp, allocator_arg_t, const _Alloc&, _Args...>, | |
is_constructible<_Tp, _Args..., const _Alloc&>>::value, | |
"construction with an allocator must be possible" | |
" if uses_allocator is true"); | |
}; | |
template<typename _Tp, typename _Alloc, typename... _Args> | |
struct __uses_alloc<false, _Tp, _Alloc, _Args...> | |
: __uses_alloc0 { }; | |
template<typename _Tp, typename _Alloc, typename... _Args> | |
using __uses_alloc_t = | |
__uses_alloc<uses_allocator<_Tp, _Alloc>::value, _Tp, _Alloc, _Args...>; | |
template<typename _Tp, typename _Alloc, typename... _Args> | |
inline __uses_alloc_t<_Tp, _Alloc, _Args...> | |
__use_alloc(const _Alloc& __a) | |
{ | |
__uses_alloc_t<_Tp, _Alloc, _Args...> __ret; | |
__ret._M_a = std::__addressof(__a); | |
return __ret; | |
} | |
template<typename _Tp, typename _Alloc, typename... _Args> | |
void | |
__use_alloc(const _Alloc&&) = delete; | |
template <typename _Tp, typename _Alloc> | |
inline constexpr bool uses_allocator_v = | |
uses_allocator<_Tp, _Alloc>::value; | |
template<template<typename...> class _Predicate, | |
typename _Tp, typename _Alloc, typename... _Args> | |
struct __is_uses_allocator_predicate | |
: __conditional_t<uses_allocator<_Tp, _Alloc>::value, | |
__or_<_Predicate<_Tp, allocator_arg_t, _Alloc, _Args...>, | |
_Predicate<_Tp, _Args..., _Alloc>>, | |
_Predicate<_Tp, _Args...>> { }; | |
template<typename _Tp, typename _Alloc, typename... _Args> | |
struct __is_uses_allocator_constructible | |
: __is_uses_allocator_predicate<is_constructible, _Tp, _Alloc, _Args...> | |
{ }; | |
template<typename _Tp, typename _Alloc, typename... _Args> | |
inline constexpr bool __is_uses_allocator_constructible_v = | |
__is_uses_allocator_constructible<_Tp, _Alloc, _Args...>::value; | |
template<typename _Tp, typename _Alloc, typename... _Args> | |
struct __is_nothrow_uses_allocator_constructible | |
: __is_uses_allocator_predicate<is_nothrow_constructible, | |
_Tp, _Alloc, _Args...> | |
{ }; | |
template<typename _Tp, typename _Alloc, typename... _Args> | |
inline constexpr bool | |
__is_nothrow_uses_allocator_constructible_v = | |
__is_nothrow_uses_allocator_constructible<_Tp, _Alloc, _Args...>::value; | |
template<typename _Tp, typename... _Args> | |
void __uses_allocator_construct_impl(__uses_alloc0, _Tp* __ptr, | |
_Args&&... __args) | |
{ ::new ((void*)__ptr) _Tp(std::forward<_Args>(__args)...); } | |
template<typename _Tp, typename _Alloc, typename... _Args> | |
void __uses_allocator_construct_impl(__uses_alloc1<_Alloc> __a, _Tp* __ptr, | |
_Args&&... __args) | |
{ | |
::new ((void*)__ptr) _Tp(allocator_arg, *__a._M_a, | |
std::forward<_Args>(__args)...); | |
} | |
template<typename _Tp, typename _Alloc, typename... _Args> | |
void __uses_allocator_construct_impl(__uses_alloc2<_Alloc> __a, _Tp* __ptr, | |
_Args&&... __args) | |
{ ::new ((void*)__ptr) _Tp(std::forward<_Args>(__args)..., *__a._M_a); } | |
template<typename _Tp, typename _Alloc, typename... _Args> | |
void __uses_allocator_construct(const _Alloc& __a, _Tp* __ptr, | |
_Args&&... __args) | |
{ | |
std::__uses_allocator_construct_impl( | |
std::__use_alloc<_Tp, _Alloc, _Args...>(__a), __ptr, | |
std::forward<_Args>(__args)...); | |
} | |
} | |
# 40 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tuple" 2 3 | |
# 54 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tuple" 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 1 3 | |
# 47 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 3 | |
# 48 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 3 | |
# 55 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tuple" 2 3 | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
template<typename... _Elements> | |
class tuple; | |
template<typename _Tp> | |
struct __is_empty_non_tuple : is_empty<_Tp> { }; | |
template<typename _El0, typename... _El> | |
struct __is_empty_non_tuple<tuple<_El0, _El...>> : false_type { }; | |
template<typename _Tp> | |
using __empty_not_final | |
= __conditional_t<__is_final(_Tp), false_type, | |
__is_empty_non_tuple<_Tp>>; | |
template<size_t _Idx, typename _Head, | |
bool = __empty_not_final<_Head>::value> | |
struct _Head_base; | |
template<size_t _Idx, typename _Head> | |
struct _Head_base<_Idx, _Head, true> | |
{ | |
constexpr _Head_base() | |
: _M_head_impl() { } | |
constexpr _Head_base(const _Head& __h) | |
: _M_head_impl(__h) { } | |
constexpr _Head_base(const _Head_base&) = default; | |
constexpr _Head_base(_Head_base&&) = default; | |
template<typename _UHead> | |
constexpr _Head_base(_UHead&& __h) | |
: _M_head_impl(std::forward<_UHead>(__h)) { } | |
_Head_base(allocator_arg_t, __uses_alloc0) | |
: _M_head_impl() { } | |
template<typename _Alloc> | |
_Head_base(allocator_arg_t, __uses_alloc1<_Alloc> __a) | |
: _M_head_impl(allocator_arg, *__a._M_a) { } | |
template<typename _Alloc> | |
_Head_base(allocator_arg_t, __uses_alloc2<_Alloc> __a) | |
: _M_head_impl(*__a._M_a) { } | |
template<typename _UHead> | |
_Head_base(__uses_alloc0, _UHead&& __uhead) | |
: _M_head_impl(std::forward<_UHead>(__uhead)) { } | |
template<typename _Alloc, typename _UHead> | |
_Head_base(__uses_alloc1<_Alloc> __a, _UHead&& __uhead) | |
: _M_head_impl(allocator_arg, *__a._M_a, std::forward<_UHead>(__uhead)) | |
{ } | |
template<typename _Alloc, typename _UHead> | |
_Head_base(__uses_alloc2<_Alloc> __a, _UHead&& __uhead) | |
: _M_head_impl(std::forward<_UHead>(__uhead), *__a._M_a) { } | |
static constexpr _Head& | |
_M_head(_Head_base& __b) noexcept { return __b._M_head_impl; } | |
static constexpr const _Head& | |
_M_head(const _Head_base& __b) noexcept { return __b._M_head_impl; } | |
[[__no_unique_address__]] _Head _M_head_impl; | |
}; | |
# 195 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tuple" 3 | |
template<size_t _Idx, typename _Head> | |
struct _Head_base<_Idx, _Head, false> | |
{ | |
constexpr _Head_base() | |
: _M_head_impl() { } | |
constexpr _Head_base(const _Head& __h) | |
: _M_head_impl(__h) { } | |
constexpr _Head_base(const _Head_base&) = default; | |
constexpr _Head_base(_Head_base&&) = default; | |
template<typename _UHead> | |
constexpr _Head_base(_UHead&& __h) | |
: _M_head_impl(std::forward<_UHead>(__h)) { } | |
_Head_base(allocator_arg_t, __uses_alloc0) | |
: _M_head_impl() { } | |
template<typename _Alloc> | |
_Head_base(allocator_arg_t, __uses_alloc1<_Alloc> __a) | |
: _M_head_impl(allocator_arg, *__a._M_a) { } | |
template<typename _Alloc> | |
_Head_base(allocator_arg_t, __uses_alloc2<_Alloc> __a) | |
: _M_head_impl(*__a._M_a) { } | |
template<typename _UHead> | |
_Head_base(__uses_alloc0, _UHead&& __uhead) | |
: _M_head_impl(std::forward<_UHead>(__uhead)) { } | |
template<typename _Alloc, typename _UHead> | |
_Head_base(__uses_alloc1<_Alloc> __a, _UHead&& __uhead) | |
: _M_head_impl(allocator_arg, *__a._M_a, std::forward<_UHead>(__uhead)) | |
{ } | |
template<typename _Alloc, typename _UHead> | |
_Head_base(__uses_alloc2<_Alloc> __a, _UHead&& __uhead) | |
: _M_head_impl(std::forward<_UHead>(__uhead), *__a._M_a) { } | |
static constexpr _Head& | |
_M_head(_Head_base& __b) noexcept { return __b._M_head_impl; } | |
static constexpr const _Head& | |
_M_head(const _Head_base& __b) noexcept { return __b._M_head_impl; } | |
_Head _M_head_impl; | |
}; | |
# 274 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tuple" 3 | |
template<size_t _Idx, typename... _Elements> | |
struct _Tuple_impl; | |
template<size_t _Idx, typename _Head, typename... _Tail> | |
struct _Tuple_impl<_Idx, _Head, _Tail...> | |
: public _Tuple_impl<_Idx + 1, _Tail...>, | |
private _Head_base<_Idx, _Head> | |
{ | |
template<size_t, typename...> friend struct _Tuple_impl; | |
typedef _Tuple_impl<_Idx + 1, _Tail...> _Inherited; | |
typedef _Head_base<_Idx, _Head> _Base; | |
static constexpr _Head& | |
_M_head(_Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } | |
static constexpr const _Head& | |
_M_head(const _Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } | |
static constexpr _Inherited& | |
_M_tail(_Tuple_impl& __t) noexcept { return __t; } | |
static constexpr const _Inherited& | |
_M_tail(const _Tuple_impl& __t) noexcept { return __t; } | |
constexpr _Tuple_impl() | |
: _Inherited(), _Base() { } | |
explicit constexpr | |
_Tuple_impl(const _Head& __head, const _Tail&... __tail) | |
: _Inherited(__tail...), _Base(__head) | |
{ } | |
template<typename _UHead, typename... _UTail, | |
typename = __enable_if_t<sizeof...(_Tail) == sizeof...(_UTail)>> | |
explicit constexpr | |
_Tuple_impl(_UHead&& __head, _UTail&&... __tail) | |
: _Inherited(std::forward<_UTail>(__tail)...), | |
_Base(std::forward<_UHead>(__head)) | |
{ } | |
constexpr _Tuple_impl(const _Tuple_impl&) = default; | |
_Tuple_impl& operator=(const _Tuple_impl&) = delete; | |
_Tuple_impl(_Tuple_impl&&) = default; | |
template<typename... _UElements> | |
constexpr | |
_Tuple_impl(const _Tuple_impl<_Idx, _UElements...>& __in) | |
: _Inherited(_Tuple_impl<_Idx, _UElements...>::_M_tail(__in)), | |
_Base(_Tuple_impl<_Idx, _UElements...>::_M_head(__in)) | |
{ } | |
template<typename _UHead, typename... _UTails> | |
constexpr | |
_Tuple_impl(_Tuple_impl<_Idx, _UHead, _UTails...>&& __in) | |
: _Inherited(std::move | |
(_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))), | |
_Base(std::forward<_UHead> | |
(_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in))) | |
{ } | |
# 370 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tuple" 3 | |
template<typename _Alloc> | |
_Tuple_impl(allocator_arg_t __tag, const _Alloc& __a) | |
: _Inherited(__tag, __a), | |
_Base(__tag, __use_alloc<_Head>(__a)) | |
{ } | |
template<typename _Alloc> | |
_Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, | |
const _Head& __head, const _Tail&... __tail) | |
: _Inherited(__tag, __a, __tail...), | |
_Base(__use_alloc<_Head, _Alloc, _Head>(__a), __head) | |
{ } | |
template<typename _Alloc, typename _UHead, typename... _UTail, | |
typename = __enable_if_t<sizeof...(_Tail) == sizeof...(_UTail)>> | |
_Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, | |
_UHead&& __head, _UTail&&... __tail) | |
: _Inherited(__tag, __a, std::forward<_UTail>(__tail)...), | |
_Base(__use_alloc<_Head, _Alloc, _UHead>(__a), | |
std::forward<_UHead>(__head)) | |
{ } | |
template<typename _Alloc> | |
_Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, | |
const _Tuple_impl& __in) | |
: _Inherited(__tag, __a, _M_tail(__in)), | |
_Base(__use_alloc<_Head, _Alloc, _Head>(__a), _M_head(__in)) | |
{ } | |
template<typename _Alloc> | |
_Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, | |
_Tuple_impl&& __in) | |
: _Inherited(__tag, __a, std::move(_M_tail(__in))), | |
_Base(__use_alloc<_Head, _Alloc, _Head>(__a), | |
std::forward<_Head>(_M_head(__in))) | |
{ } | |
template<typename _Alloc, typename _UHead, typename... _UTails> | |
_Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, | |
const _Tuple_impl<_Idx, _UHead, _UTails...>& __in) | |
: _Inherited(__tag, __a, | |
_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in)), | |
_Base(__use_alloc<_Head, _Alloc, const _UHead&>(__a), | |
_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in)) | |
{ } | |
template<typename _Alloc, typename _UHead, typename... _UTails> | |
_Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, | |
_Tuple_impl<_Idx, _UHead, _UTails...>&& __in) | |
: _Inherited(__tag, __a, std::move | |
(_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))), | |
_Base(__use_alloc<_Head, _Alloc, _UHead>(__a), | |
std::forward<_UHead> | |
(_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in))) | |
{ } | |
# 465 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tuple" 3 | |
template<typename... _UElements> | |
void | |
_M_assign(const _Tuple_impl<_Idx, _UElements...>& __in) | |
{ | |
_M_head(*this) = _Tuple_impl<_Idx, _UElements...>::_M_head(__in); | |
_M_tail(*this)._M_assign( | |
_Tuple_impl<_Idx, _UElements...>::_M_tail(__in)); | |
} | |
template<typename _UHead, typename... _UTails> | |
void | |
_M_assign(_Tuple_impl<_Idx, _UHead, _UTails...>&& __in) | |
{ | |
_M_head(*this) = std::forward<_UHead> | |
(_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in)); | |
_M_tail(*this)._M_assign( | |
std::move(_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))); | |
} | |
# 525 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tuple" 3 | |
protected: | |
void | |
_M_swap(_Tuple_impl& __in) | |
{ | |
using std::swap; | |
swap(_M_head(*this), _M_head(__in)); | |
_Inherited::_M_swap(_M_tail(__in)); | |
} | |
# 544 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tuple" 3 | |
}; | |
template<size_t _Idx, typename _Head> | |
struct _Tuple_impl<_Idx, _Head> | |
: private _Head_base<_Idx, _Head> | |
{ | |
template<size_t, typename...> friend struct _Tuple_impl; | |
typedef _Head_base<_Idx, _Head> _Base; | |
static constexpr _Head& | |
_M_head(_Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } | |
static constexpr const _Head& | |
_M_head(const _Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } | |
constexpr | |
_Tuple_impl() | |
: _Base() { } | |
explicit constexpr | |
_Tuple_impl(const _Head& __head) | |
: _Base(__head) | |
{ } | |
template<typename _UHead> | |
explicit constexpr | |
_Tuple_impl(_UHead&& __head) | |
: _Base(std::forward<_UHead>(__head)) | |
{ } | |
constexpr _Tuple_impl(const _Tuple_impl&) = default; | |
_Tuple_impl& operator=(const _Tuple_impl&) = delete; | |
constexpr | |
_Tuple_impl(_Tuple_impl&& __in) | |
noexcept(is_nothrow_move_constructible<_Head>::value) | |
: _Base(static_cast<_Base&&>(__in)) | |
{ } | |
template<typename _UHead> | |
constexpr | |
_Tuple_impl(const _Tuple_impl<_Idx, _UHead>& __in) | |
: _Base(_Tuple_impl<_Idx, _UHead>::_M_head(__in)) | |
{ } | |
template<typename _UHead> | |
constexpr | |
_Tuple_impl(_Tuple_impl<_Idx, _UHead>&& __in) | |
: _Base(std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in))) | |
{ } | |
# 626 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tuple" 3 | |
template<typename _Alloc> | |
_Tuple_impl(allocator_arg_t __tag, const _Alloc& __a) | |
: _Base(__tag, __use_alloc<_Head>(__a)) | |
{ } | |
template<typename _Alloc> | |
_Tuple_impl(allocator_arg_t, const _Alloc& __a, | |
const _Head& __head) | |
: _Base(__use_alloc<_Head, _Alloc, const _Head&>(__a), __head) | |
{ } | |
template<typename _Alloc, typename _UHead> | |
_Tuple_impl(allocator_arg_t, const _Alloc& __a, | |
_UHead&& __head) | |
: _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), | |
std::forward<_UHead>(__head)) | |
{ } | |
template<typename _Alloc> | |
_Tuple_impl(allocator_arg_t, const _Alloc& __a, | |
const _Tuple_impl& __in) | |
: _Base(__use_alloc<_Head, _Alloc, const _Head&>(__a), _M_head(__in)) | |
{ } | |
template<typename _Alloc> | |
_Tuple_impl(allocator_arg_t, const _Alloc& __a, | |
_Tuple_impl&& __in) | |
: _Base(__use_alloc<_Head, _Alloc, _Head>(__a), | |
std::forward<_Head>(_M_head(__in))) | |
{ } | |
template<typename _Alloc, typename _UHead> | |
_Tuple_impl(allocator_arg_t, const _Alloc& __a, | |
const _Tuple_impl<_Idx, _UHead>& __in) | |
: _Base(__use_alloc<_Head, _Alloc, const _UHead&>(__a), | |
_Tuple_impl<_Idx, _UHead>::_M_head(__in)) | |
{ } | |
template<typename _Alloc, typename _UHead> | |
_Tuple_impl(allocator_arg_t, const _Alloc& __a, | |
_Tuple_impl<_Idx, _UHead>&& __in) | |
: _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), | |
std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in))) | |
{ } | |
# 705 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tuple" 3 | |
template<typename _UHead> | |
void | |
_M_assign(const _Tuple_impl<_Idx, _UHead>& __in) | |
{ | |
_M_head(*this) = _Tuple_impl<_Idx, _UHead>::_M_head(__in); | |
} | |
template<typename _UHead> | |
void | |
_M_assign(_Tuple_impl<_Idx, _UHead>&& __in) | |
{ | |
_M_head(*this) | |
= std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in)); | |
} | |
# 751 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tuple" 3 | |
protected: | |
void | |
_M_swap(_Tuple_impl& __in) | |
{ | |
using std::swap; | |
swap(_M_head(*this), _M_head(__in)); | |
} | |
# 768 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tuple" 3 | |
}; | |
template<bool, typename... _Types> | |
struct _TupleConstraints | |
{ | |
template<typename... _UTypes> | |
using __constructible = __and_<is_constructible<_Types, _UTypes>...>; | |
template<typename... _UTypes> | |
using __convertible = __and_<is_convertible<_UTypes, _Types>...>; | |
template<typename... _UTypes> | |
static constexpr bool __is_implicitly_constructible() | |
{ | |
return __and_<__constructible<_UTypes...>, | |
__convertible<_UTypes...> | |
>::value; | |
} | |
template<typename... _UTypes> | |
static constexpr bool __is_explicitly_constructible() | |
{ | |
return __and_<__constructible<_UTypes...>, | |
__not_<__convertible<_UTypes...>> | |
>::value; | |
} | |
static constexpr bool __is_implicitly_default_constructible() | |
{ | |
return __and_<std::__is_implicitly_default_constructible<_Types>... | |
>::value; | |
} | |
static constexpr bool __is_explicitly_default_constructible() | |
{ | |
return __and_<is_default_constructible<_Types>..., | |
__not_<__and_< | |
std::__is_implicitly_default_constructible<_Types>...> | |
>>::value; | |
} | |
}; | |
template<typename... _Types> | |
struct _TupleConstraints<false, _Types...> | |
{ | |
template<typename... _UTypes> | |
static constexpr bool __is_implicitly_constructible() | |
{ return false; } | |
template<typename... _UTypes> | |
static constexpr bool __is_explicitly_constructible() | |
{ return false; } | |
}; | |
template<typename... _Elements> | |
class tuple : public _Tuple_impl<0, _Elements...> | |
{ | |
using _Inherited = _Tuple_impl<0, _Elements...>; | |
# 1351 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tuple" 3 | |
template<bool _Cond> | |
using _TCC = _TupleConstraints<_Cond, _Elements...>; | |
template<bool _Dummy> | |
using _ImplicitDefaultCtor = __enable_if_t< | |
_TCC<_Dummy>::__is_implicitly_default_constructible(), | |
bool>; | |
template<bool _Dummy> | |
using _ExplicitDefaultCtor = __enable_if_t< | |
_TCC<_Dummy>::__is_explicitly_default_constructible(), | |
bool>; | |
template<bool _Cond, typename... _Args> | |
using _ImplicitCtor = __enable_if_t< | |
_TCC<_Cond>::template __is_implicitly_constructible<_Args...>(), | |
bool>; | |
template<bool _Cond, typename... _Args> | |
using _ExplicitCtor = __enable_if_t< | |
_TCC<_Cond>::template __is_explicitly_constructible<_Args...>(), | |
bool>; | |
template<typename... _UElements> | |
static constexpr bool __nothrow_constructible() | |
{ | |
return | |
__and_<is_nothrow_constructible<_Elements, _UElements>...>::value; | |
} | |
template<typename _Up> | |
static constexpr bool __valid_args() | |
{ | |
return sizeof...(_Elements) == 1 | |
&& !is_same<tuple, __remove_cvref_t<_Up>>::value; | |
} | |
template<typename, typename, typename... _Tail> | |
static constexpr bool __valid_args() | |
{ return (sizeof...(_Tail) + 2) == sizeof...(_Elements); } | |
# 1408 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tuple" 3 | |
template<typename _Tuple, typename = tuple, | |
typename = __remove_cvref_t<_Tuple>> | |
struct _UseOtherCtor | |
: false_type | |
{ }; | |
template<typename _Tuple, typename _Tp, typename _Up> | |
struct _UseOtherCtor<_Tuple, tuple<_Tp>, tuple<_Up>> | |
: __or_<is_convertible<_Tuple, _Tp>, is_constructible<_Tp, _Tuple>>::type | |
{ }; | |
template<typename _Tuple, typename _Tp> | |
struct _UseOtherCtor<_Tuple, tuple<_Tp>, tuple<_Tp>> | |
: true_type | |
{ }; | |
template<typename _Tuple> | |
static constexpr bool __use_other_ctor() | |
{ return _UseOtherCtor<_Tuple>::value; } | |
# 1454 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tuple" 3 | |
public: | |
template<typename _Dummy = void, | |
_ImplicitDefaultCtor<is_void<_Dummy>::value> = true> | |
constexpr | |
tuple() | |
noexcept(__and_<is_nothrow_default_constructible<_Elements>...>::value) | |
: _Inherited() { } | |
template<typename _Dummy = void, | |
_ExplicitDefaultCtor<is_void<_Dummy>::value> = false> | |
explicit constexpr | |
tuple() | |
noexcept(__and_<is_nothrow_default_constructible<_Elements>...>::value) | |
: _Inherited() { } | |
template<bool _NotEmpty = (sizeof...(_Elements) >= 1), | |
_ImplicitCtor<_NotEmpty, const _Elements&...> = true> | |
constexpr | |
tuple(const _Elements&... __elements) | |
noexcept(__nothrow_constructible<const _Elements&...>()) | |
: _Inherited(__elements...) { } | |
template<bool _NotEmpty = (sizeof...(_Elements) >= 1), | |
_ExplicitCtor<_NotEmpty, const _Elements&...> = false> | |
explicit constexpr | |
tuple(const _Elements&... __elements) | |
noexcept(__nothrow_constructible<const _Elements&...>()) | |
: _Inherited(__elements...) { } | |
template<typename... _UElements, | |
bool _Valid = __valid_args<_UElements...>(), | |
_ImplicitCtor<_Valid, _UElements...> = true> | |
constexpr | |
tuple(_UElements&&... __elements) | |
noexcept(__nothrow_constructible<_UElements...>()) | |
: _Inherited(std::forward<_UElements>(__elements)...) | |
{ ; } | |
template<typename... _UElements, | |
bool _Valid = __valid_args<_UElements...>(), | |
_ExplicitCtor<_Valid, _UElements...> = false> | |
explicit constexpr | |
tuple(_UElements&&... __elements) | |
noexcept(__nothrow_constructible<_UElements...>()) | |
: _Inherited(std::forward<_UElements>(__elements)...) | |
{ ; } | |
constexpr tuple(const tuple&) = default; | |
constexpr tuple(tuple&&) = default; | |
template<typename... _UElements, | |
bool _Valid = (sizeof...(_Elements) == sizeof...(_UElements)) | |
&& !__use_other_ctor<const tuple<_UElements...>&>(), | |
_ImplicitCtor<_Valid, const _UElements&...> = true> | |
constexpr | |
tuple(const tuple<_UElements...>& __in) | |
noexcept(__nothrow_constructible<const _UElements&...>()) | |
: _Inherited(static_cast<const _Tuple_impl<0, _UElements...>&>(__in)) | |
{ ; } | |
template<typename... _UElements, | |
bool _Valid = (sizeof...(_Elements) == sizeof...(_UElements)) | |
&& !__use_other_ctor<const tuple<_UElements...>&>(), | |
_ExplicitCtor<_Valid, const _UElements&...> = false> | |
explicit constexpr | |
tuple(const tuple<_UElements...>& __in) | |
noexcept(__nothrow_constructible<const _UElements&...>()) | |
: _Inherited(static_cast<const _Tuple_impl<0, _UElements...>&>(__in)) | |
{ ; } | |
template<typename... _UElements, | |
bool _Valid = (sizeof...(_Elements) == sizeof...(_UElements)) | |
&& !__use_other_ctor<tuple<_UElements...>&&>(), | |
_ImplicitCtor<_Valid, _UElements...> = true> | |
constexpr | |
tuple(tuple<_UElements...>&& __in) | |
noexcept(__nothrow_constructible<_UElements...>()) | |
: _Inherited(static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) | |
{ ; } | |
template<typename... _UElements, | |
bool _Valid = (sizeof...(_Elements) == sizeof...(_UElements)) | |
&& !__use_other_ctor<tuple<_UElements...>&&>(), | |
_ExplicitCtor<_Valid, _UElements...> = false> | |
explicit constexpr | |
tuple(tuple<_UElements...>&& __in) | |
noexcept(__nothrow_constructible<_UElements...>()) | |
: _Inherited(static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) | |
{ ; } | |
template<typename _Alloc, | |
_ImplicitDefaultCtor<is_object<_Alloc>::value> = true> | |
tuple(allocator_arg_t __tag, const _Alloc& __a) | |
: _Inherited(__tag, __a) { } | |
template<typename _Alloc, | |
_ExplicitDefaultCtor<is_object<_Alloc>::value> = false> | |
explicit | |
tuple(allocator_arg_t __tag, const _Alloc& __a) | |
: _Inherited(__tag, __a) { } | |
template<typename _Alloc, bool _NotEmpty = (sizeof...(_Elements) >= 1), | |
_ImplicitCtor<_NotEmpty, const _Elements&...> = true> | |
tuple(allocator_arg_t __tag, const _Alloc& __a, | |
const _Elements&... __elements) | |
: _Inherited(__tag, __a, __elements...) { } | |
template<typename _Alloc, bool _NotEmpty = (sizeof...(_Elements) >= 1), | |
_ExplicitCtor<_NotEmpty, const _Elements&...> = false> | |
explicit | |
tuple(allocator_arg_t __tag, const _Alloc& __a, | |
const _Elements&... __elements) | |
: _Inherited(__tag, __a, __elements...) { } | |
template<typename _Alloc, typename... _UElements, | |
bool _Valid = __valid_args<_UElements...>(), | |
_ImplicitCtor<_Valid, _UElements...> = true> | |
tuple(allocator_arg_t __tag, const _Alloc& __a, | |
_UElements&&... __elements) | |
: _Inherited(__tag, __a, std::forward<_UElements>(__elements)...) | |
{ ; } | |
template<typename _Alloc, typename... _UElements, | |
bool _Valid = __valid_args<_UElements...>(), | |
_ExplicitCtor<_Valid, _UElements...> = false> | |
explicit | |
tuple(allocator_arg_t __tag, const _Alloc& __a, | |
_UElements&&... __elements) | |
: _Inherited(__tag, __a, std::forward<_UElements>(__elements)...) | |
{ ; } | |
template<typename _Alloc> | |
tuple(allocator_arg_t __tag, const _Alloc& __a, const tuple& __in) | |
: _Inherited(__tag, __a, static_cast<const _Inherited&>(__in)) { } | |
template<typename _Alloc> | |
tuple(allocator_arg_t __tag, const _Alloc& __a, tuple&& __in) | |
: _Inherited(__tag, __a, static_cast<_Inherited&&>(__in)) { } | |
template<typename _Alloc, typename... _UElements, | |
bool _Valid = (sizeof...(_Elements) == sizeof...(_UElements)) | |
&& !__use_other_ctor<const tuple<_UElements...>&>(), | |
_ImplicitCtor<_Valid, const _UElements&...> = true> | |
tuple(allocator_arg_t __tag, const _Alloc& __a, | |
const tuple<_UElements...>& __in) | |
: _Inherited(__tag, __a, | |
static_cast<const _Tuple_impl<0, _UElements...>&>(__in)) | |
{ ; } | |
template<typename _Alloc, typename... _UElements, | |
bool _Valid = (sizeof...(_Elements) == sizeof...(_UElements)) | |
&& !__use_other_ctor<const tuple<_UElements...>&>(), | |
_ExplicitCtor<_Valid, const _UElements&...> = false> | |
explicit | |
tuple(allocator_arg_t __tag, const _Alloc& __a, | |
const tuple<_UElements...>& __in) | |
: _Inherited(__tag, __a, | |
static_cast<const _Tuple_impl<0, _UElements...>&>(__in)) | |
{ ; } | |
template<typename _Alloc, typename... _UElements, | |
bool _Valid = (sizeof...(_Elements) == sizeof...(_UElements)) | |
&& !__use_other_ctor<tuple<_UElements...>&&>(), | |
_ImplicitCtor<_Valid, _UElements...> = true> | |
tuple(allocator_arg_t __tag, const _Alloc& __a, | |
tuple<_UElements...>&& __in) | |
: _Inherited(__tag, __a, | |
static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) | |
{ ; } | |
template<typename _Alloc, typename... _UElements, | |
bool _Valid = (sizeof...(_Elements) == sizeof...(_UElements)) | |
&& !__use_other_ctor<tuple<_UElements...>&&>(), | |
_ExplicitCtor<_Valid, _UElements...> = false> | |
explicit | |
tuple(allocator_arg_t __tag, const _Alloc& __a, | |
tuple<_UElements...>&& __in) | |
: _Inherited(__tag, __a, | |
static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) | |
{ ; } | |
# 1886 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tuple" 3 | |
private: | |
template<typename... _UElements> | |
static constexpr | |
__enable_if_t<sizeof...(_UElements) == sizeof...(_Elements), bool> | |
__assignable() | |
{ return __and_<is_assignable<_Elements&, _UElements>...>::value; } | |
template<typename... _UElements> | |
static constexpr bool __nothrow_assignable() | |
{ | |
return | |
__and_<is_nothrow_assignable<_Elements&, _UElements>...>::value; | |
} | |
public: | |
tuple& | |
operator=(__conditional_t<__assignable<const _Elements&...>(), | |
const tuple&, | |
const __nonesuch&> __in) | |
noexcept(__nothrow_assignable<const _Elements&...>()) | |
{ | |
this->_M_assign(__in); | |
return *this; | |
} | |
tuple& | |
operator=(__conditional_t<__assignable<_Elements...>(), | |
tuple&&, | |
__nonesuch&&> __in) | |
noexcept(__nothrow_assignable<_Elements...>()) | |
{ | |
this->_M_assign(std::move(__in)); | |
return *this; | |
} | |
template<typename... _UElements> | |
__enable_if_t<__assignable<const _UElements&...>(), tuple&> | |
operator=(const tuple<_UElements...>& __in) | |
noexcept(__nothrow_assignable<const _UElements&...>()) | |
{ | |
this->_M_assign(__in); | |
return *this; | |
} | |
template<typename... _UElements> | |
__enable_if_t<__assignable<_UElements...>(), tuple&> | |
operator=(tuple<_UElements...>&& __in) | |
noexcept(__nothrow_assignable<_UElements...>()) | |
{ | |
this->_M_assign(std::move(__in)); | |
return *this; | |
} | |
void | |
swap(tuple& __in) | |
noexcept(__and_<__is_nothrow_swappable<_Elements>...>::value) | |
{ _Inherited::_M_swap(__in); } | |
# 1966 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tuple" 3 | |
}; | |
template<typename... _UTypes> | |
tuple(_UTypes...) -> tuple<_UTypes...>; | |
template<typename _T1, typename _T2> | |
tuple(pair<_T1, _T2>) -> tuple<_T1, _T2>; | |
template<typename _Alloc, typename... _UTypes> | |
tuple(allocator_arg_t, _Alloc, _UTypes...) -> tuple<_UTypes...>; | |
template<typename _Alloc, typename _T1, typename _T2> | |
tuple(allocator_arg_t, _Alloc, pair<_T1, _T2>) -> tuple<_T1, _T2>; | |
template<typename _Alloc, typename... _UTypes> | |
tuple(allocator_arg_t, _Alloc, tuple<_UTypes...>) -> tuple<_UTypes...>; | |
template<> | |
class tuple<> | |
{ | |
public: | |
void swap(tuple&) noexcept { } | |
tuple() = default; | |
template<typename _Alloc> | |
tuple(allocator_arg_t, const _Alloc&) noexcept { } | |
template<typename _Alloc> | |
tuple(allocator_arg_t, const _Alloc&, const tuple&) noexcept { } | |
}; | |
template<typename _T1, typename _T2> | |
class tuple<_T1, _T2> : public _Tuple_impl<0, _T1, _T2> | |
{ | |
typedef _Tuple_impl<0, _T1, _T2> _Inherited; | |
template<bool _Dummy, typename _U1, typename _U2> | |
using _ImplicitDefaultCtor = __enable_if_t< | |
_TupleConstraints<_Dummy, _U1, _U2>:: | |
__is_implicitly_default_constructible(), | |
bool>; | |
template<bool _Dummy, typename _U1, typename _U2> | |
using _ExplicitDefaultCtor = __enable_if_t< | |
_TupleConstraints<_Dummy, _U1, _U2>:: | |
__is_explicitly_default_constructible(), | |
bool>; | |
template<bool _Dummy> | |
using _TCC = _TupleConstraints<_Dummy, _T1, _T2>; | |
template<bool _Cond, typename _U1, typename _U2> | |
using _ImplicitCtor = __enable_if_t< | |
_TCC<_Cond>::template __is_implicitly_constructible<_U1, _U2>(), | |
bool>; | |
template<bool _Cond, typename _U1, typename _U2> | |
using _ExplicitCtor = __enable_if_t< | |
_TCC<_Cond>::template __is_explicitly_constructible<_U1, _U2>(), | |
bool>; | |
template<typename _U1, typename _U2> | |
static constexpr bool __assignable() | |
{ | |
return __and_<is_assignable<_T1&, _U1>, | |
is_assignable<_T2&, _U2>>::value; | |
} | |
template<typename _U1, typename _U2> | |
static constexpr bool __nothrow_assignable() | |
{ | |
return __and_<is_nothrow_assignable<_T1&, _U1>, | |
is_nothrow_assignable<_T2&, _U2>>::value; | |
} | |
template<typename _U1, typename _U2> | |
static constexpr bool __nothrow_constructible() | |
{ | |
return __and_<is_nothrow_constructible<_T1, _U1>, | |
is_nothrow_constructible<_T2, _U2>>::value; | |
} | |
static constexpr bool __nothrow_default_constructible() | |
{ | |
return __and_<is_nothrow_default_constructible<_T1>, | |
is_nothrow_default_constructible<_T2>>::value; | |
} | |
template<typename _U1> | |
static constexpr bool __is_alloc_arg() | |
{ return is_same<__remove_cvref_t<_U1>, allocator_arg_t>::value; } | |
# 2085 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tuple" 3 | |
public: | |
template<bool _Dummy = true, | |
_ImplicitDefaultCtor<_Dummy, _T1, _T2> = true> | |
constexpr | |
tuple() | |
noexcept(__nothrow_default_constructible()) | |
: _Inherited() { } | |
template<bool _Dummy = true, | |
_ExplicitDefaultCtor<_Dummy, _T1, _T2> = false> | |
explicit constexpr | |
tuple() | |
noexcept(__nothrow_default_constructible()) | |
: _Inherited() { } | |
template<bool _Dummy = true, | |
_ImplicitCtor<_Dummy, const _T1&, const _T2&> = true> | |
constexpr | |
tuple(const _T1& __a1, const _T2& __a2) | |
noexcept(__nothrow_constructible<const _T1&, const _T2&>()) | |
: _Inherited(__a1, __a2) { } | |
template<bool _Dummy = true, | |
_ExplicitCtor<_Dummy, const _T1&, const _T2&> = false> | |
explicit constexpr | |
tuple(const _T1& __a1, const _T2& __a2) | |
noexcept(__nothrow_constructible<const _T1&, const _T2&>()) | |
: _Inherited(__a1, __a2) { } | |
template<typename _U1, typename _U2, | |
_ImplicitCtor<!__is_alloc_arg<_U1>(), _U1, _U2> = true> | |
constexpr | |
tuple(_U1&& __a1, _U2&& __a2) | |
noexcept(__nothrow_constructible<_U1, _U2>()) | |
: _Inherited(std::forward<_U1>(__a1), std::forward<_U2>(__a2)) | |
{ ; } | |
template<typename _U1, typename _U2, | |
_ExplicitCtor<!__is_alloc_arg<_U1>(), _U1, _U2> = false> | |
explicit constexpr | |
tuple(_U1&& __a1, _U2&& __a2) | |
noexcept(__nothrow_constructible<_U1, _U2>()) | |
: _Inherited(std::forward<_U1>(__a1), std::forward<_U2>(__a2)) | |
{ ; } | |
constexpr tuple(const tuple&) = default; | |
constexpr tuple(tuple&&) = default; | |
template<typename _U1, typename _U2, | |
_ImplicitCtor<true, const _U1&, const _U2&> = true> | |
constexpr | |
tuple(const tuple<_U1, _U2>& __in) | |
noexcept(__nothrow_constructible<const _U1&, const _U2&>()) | |
: _Inherited(static_cast<const _Tuple_impl<0, _U1, _U2>&>(__in)) | |
{ ; } | |
template<typename _U1, typename _U2, | |
_ExplicitCtor<true, const _U1&, const _U2&> = false> | |
explicit constexpr | |
tuple(const tuple<_U1, _U2>& __in) | |
noexcept(__nothrow_constructible<const _U1&, const _U2&>()) | |
: _Inherited(static_cast<const _Tuple_impl<0, _U1, _U2>&>(__in)) | |
{ ; } | |
template<typename _U1, typename _U2, | |
_ImplicitCtor<true, _U1, _U2> = true> | |
constexpr | |
tuple(tuple<_U1, _U2>&& __in) | |
noexcept(__nothrow_constructible<_U1, _U2>()) | |
: _Inherited(static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) | |
{ ; } | |
template<typename _U1, typename _U2, | |
_ExplicitCtor<true, _U1, _U2> = false> | |
explicit constexpr | |
tuple(tuple<_U1, _U2>&& __in) | |
noexcept(__nothrow_constructible<_U1, _U2>()) | |
: _Inherited(static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) | |
{ ; } | |
template<typename _U1, typename _U2, | |
_ImplicitCtor<true, const _U1&, const _U2&> = true> | |
constexpr | |
tuple(const pair<_U1, _U2>& __in) | |
noexcept(__nothrow_constructible<const _U1&, const _U2&>()) | |
: _Inherited(__in.first, __in.second) | |
{ ; } | |
template<typename _U1, typename _U2, | |
_ExplicitCtor<true, const _U1&, const _U2&> = false> | |
explicit constexpr | |
tuple(const pair<_U1, _U2>& __in) | |
noexcept(__nothrow_constructible<const _U1&, const _U2&>()) | |
: _Inherited(__in.first, __in.second) | |
{ ; } | |
template<typename _U1, typename _U2, | |
_ImplicitCtor<true, _U1, _U2> = true> | |
constexpr | |
tuple(pair<_U1, _U2>&& __in) | |
noexcept(__nothrow_constructible<_U1, _U2>()) | |
: _Inherited(std::forward<_U1>(__in.first), | |
std::forward<_U2>(__in.second)) | |
{ ; } | |
template<typename _U1, typename _U2, | |
_ExplicitCtor<true, _U1, _U2> = false> | |
explicit constexpr | |
tuple(pair<_U1, _U2>&& __in) | |
noexcept(__nothrow_constructible<_U1, _U2>()) | |
: _Inherited(std::forward<_U1>(__in.first), | |
std::forward<_U2>(__in.second)) | |
{ ; } | |
template<typename _Alloc, | |
_ImplicitDefaultCtor<is_object<_Alloc>::value, _T1, _T2> = true> | |
tuple(allocator_arg_t __tag, const _Alloc& __a) | |
: _Inherited(__tag, __a) { } | |
template<typename _Alloc, | |
_ExplicitDefaultCtor<is_object<_Alloc>::value, _T1, _T2> = false> | |
explicit | |
tuple(allocator_arg_t __tag, const _Alloc& __a) | |
: _Inherited(__tag, __a) { } | |
template<typename _Alloc, bool _Dummy = true, | |
_ImplicitCtor<_Dummy, const _T1&, const _T2&> = true> | |
tuple(allocator_arg_t __tag, const _Alloc& __a, | |
const _T1& __a1, const _T2& __a2) | |
: _Inherited(__tag, __a, __a1, __a2) { } | |
template<typename _Alloc, bool _Dummy = true, | |
_ExplicitCtor<_Dummy, const _T1&, const _T2&> = false> | |
explicit | |
tuple(allocator_arg_t __tag, const _Alloc& __a, | |
const _T1& __a1, const _T2& __a2) | |
: _Inherited(__tag, __a, __a1, __a2) { } | |
template<typename _Alloc, typename _U1, typename _U2, | |
_ImplicitCtor<true, _U1, _U2> = true> | |
tuple(allocator_arg_t __tag, const _Alloc& __a, _U1&& __a1, _U2&& __a2) | |
: _Inherited(__tag, __a, std::forward<_U1>(__a1), | |
std::forward<_U2>(__a2)) | |
{ ; } | |
template<typename _Alloc, typename _U1, typename _U2, | |
_ExplicitCtor<true, _U1, _U2> = false> | |
explicit | |
tuple(allocator_arg_t __tag, const _Alloc& __a, | |
_U1&& __a1, _U2&& __a2) | |
: _Inherited(__tag, __a, std::forward<_U1>(__a1), | |
std::forward<_U2>(__a2)) | |
{ ; } | |
template<typename _Alloc> | |
tuple(allocator_arg_t __tag, const _Alloc& __a, const tuple& __in) | |
: _Inherited(__tag, __a, static_cast<const _Inherited&>(__in)) { } | |
template<typename _Alloc> | |
tuple(allocator_arg_t __tag, const _Alloc& __a, tuple&& __in) | |
: _Inherited(__tag, __a, static_cast<_Inherited&&>(__in)) { } | |
template<typename _Alloc, typename _U1, typename _U2, | |
_ImplicitCtor<true, const _U1&, const _U2&> = true> | |
tuple(allocator_arg_t __tag, const _Alloc& __a, | |
const tuple<_U1, _U2>& __in) | |
: _Inherited(__tag, __a, | |
static_cast<const _Tuple_impl<0, _U1, _U2>&>(__in)) | |
{ ; } | |
template<typename _Alloc, typename _U1, typename _U2, | |
_ExplicitCtor<true, const _U1&, const _U2&> = false> | |
explicit | |
tuple(allocator_arg_t __tag, const _Alloc& __a, | |
const tuple<_U1, _U2>& __in) | |
: _Inherited(__tag, __a, | |
static_cast<const _Tuple_impl<0, _U1, _U2>&>(__in)) | |
{ ; } | |
template<typename _Alloc, typename _U1, typename _U2, | |
_ImplicitCtor<true, _U1, _U2> = true> | |
tuple(allocator_arg_t __tag, const _Alloc& __a, tuple<_U1, _U2>&& __in) | |
: _Inherited(__tag, __a, static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) | |
{ ; } | |
template<typename _Alloc, typename _U1, typename _U2, | |
_ExplicitCtor<true, _U1, _U2> = false> | |
explicit | |
tuple(allocator_arg_t __tag, const _Alloc& __a, tuple<_U1, _U2>&& __in) | |
: _Inherited(__tag, __a, static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) | |
{ ; } | |
template<typename _Alloc, typename _U1, typename _U2, | |
_ImplicitCtor<true, const _U1&, const _U2&> = true> | |
tuple(allocator_arg_t __tag, const _Alloc& __a, | |
const pair<_U1, _U2>& __in) | |
: _Inherited(__tag, __a, __in.first, __in.second) | |
{ ; } | |
template<typename _Alloc, typename _U1, typename _U2, | |
_ExplicitCtor<true, const _U1&, const _U2&> = false> | |
explicit | |
tuple(allocator_arg_t __tag, const _Alloc& __a, | |
const pair<_U1, _U2>& __in) | |
: _Inherited(__tag, __a, __in.first, __in.second) | |
{ ; } | |
template<typename _Alloc, typename _U1, typename _U2, | |
_ImplicitCtor<true, _U1, _U2> = true> | |
tuple(allocator_arg_t __tag, const _Alloc& __a, pair<_U1, _U2>&& __in) | |
: _Inherited(__tag, __a, std::forward<_U1>(__in.first), | |
std::forward<_U2>(__in.second)) | |
{ ; } | |
template<typename _Alloc, typename _U1, typename _U2, | |
_ExplicitCtor<true, _U1, _U2> = false> | |
explicit | |
tuple(allocator_arg_t __tag, const _Alloc& __a, pair<_U1, _U2>&& __in) | |
: _Inherited(__tag, __a, std::forward<_U1>(__in.first), | |
std::forward<_U2>(__in.second)) | |
{ ; } | |
tuple& | |
operator=(__conditional_t<__assignable<const _T1&, const _T2&>(), | |
const tuple&, | |
const __nonesuch&> __in) | |
noexcept(__nothrow_assignable<const _T1&, const _T2&>()) | |
{ | |
this->_M_assign(__in); | |
return *this; | |
} | |
tuple& | |
operator=(__conditional_t<__assignable<_T1, _T2>(), | |
tuple&&, | |
__nonesuch&&> __in) | |
noexcept(__nothrow_assignable<_T1, _T2>()) | |
{ | |
this->_M_assign(std::move(__in)); | |
return *this; | |
} | |
template<typename _U1, typename _U2> | |
__enable_if_t<__assignable<const _U1&, const _U2&>(), tuple&> | |
operator=(const tuple<_U1, _U2>& __in) | |
noexcept(__nothrow_assignable<const _U1&, const _U2&>()) | |
{ | |
this->_M_assign(__in); | |
return *this; | |
} | |
template<typename _U1, typename _U2> | |
__enable_if_t<__assignable<_U1, _U2>(), tuple&> | |
operator=(tuple<_U1, _U2>&& __in) | |
noexcept(__nothrow_assignable<_U1, _U2>()) | |
{ | |
this->_M_assign(std::move(__in)); | |
return *this; | |
} | |
template<typename _U1, typename _U2> | |
__enable_if_t<__assignable<const _U1&, const _U2&>(), tuple&> | |
operator=(const pair<_U1, _U2>& __in) | |
noexcept(__nothrow_assignable<const _U1&, const _U2&>()) | |
{ | |
this->_M_head(*this) = __in.first; | |
this->_M_tail(*this)._M_head(*this) = __in.second; | |
return *this; | |
} | |
template<typename _U1, typename _U2> | |
__enable_if_t<__assignable<_U1, _U2>(), tuple&> | |
operator=(pair<_U1, _U2>&& __in) | |
noexcept(__nothrow_assignable<_U1, _U2>()) | |
{ | |
this->_M_head(*this) = std::forward<_U1>(__in.first); | |
this->_M_tail(*this)._M_head(*this) = std::forward<_U2>(__in.second); | |
return *this; | |
} | |
void | |
swap(tuple& __in) | |
noexcept(__and_<__is_nothrow_swappable<_T1>, | |
__is_nothrow_swappable<_T2>>::value) | |
{ _Inherited::_M_swap(__in); } | |
}; | |
template<typename... _Elements> | |
struct tuple_size<tuple<_Elements...>> | |
: public integral_constant<size_t, sizeof...(_Elements)> { }; | |
template<typename... _Types> | |
inline constexpr size_t tuple_size_v<tuple<_Types...>> | |
= sizeof...(_Types); | |
template<typename... _Types> | |
inline constexpr size_t tuple_size_v<const tuple<_Types...>> | |
= sizeof...(_Types); | |
template<size_t __i, typename... _Types> | |
struct tuple_element<__i, tuple<_Types...>> | |
{ | |
static_assert(__i < sizeof...(_Types), "tuple index must be in range"); | |
using type = typename _Nth_type<__i, _Types...>::type; | |
}; | |
template<size_t __i, typename _Head, typename... _Tail> | |
constexpr _Head& | |
__get_helper(_Tuple_impl<__i, _Head, _Tail...>& __t) noexcept | |
{ return _Tuple_impl<__i, _Head, _Tail...>::_M_head(__t); } | |
template<size_t __i, typename _Head, typename... _Tail> | |
constexpr const _Head& | |
__get_helper(const _Tuple_impl<__i, _Head, _Tail...>& __t) noexcept | |
{ return _Tuple_impl<__i, _Head, _Tail...>::_M_head(__t); } | |
template<size_t __i, typename... _Types> | |
__enable_if_t<(__i >= sizeof...(_Types))> | |
__get_helper(const tuple<_Types...>&) = delete; | |
template<size_t __i, typename... _Elements> | |
constexpr __tuple_element_t<__i, tuple<_Elements...>>& | |
get(tuple<_Elements...>& __t) noexcept | |
{ return std::__get_helper<__i>(__t); } | |
template<size_t __i, typename... _Elements> | |
constexpr const __tuple_element_t<__i, tuple<_Elements...>>& | |
get(const tuple<_Elements...>& __t) noexcept | |
{ return std::__get_helper<__i>(__t); } | |
template<size_t __i, typename... _Elements> | |
constexpr __tuple_element_t<__i, tuple<_Elements...>>&& | |
get(tuple<_Elements...>&& __t) noexcept | |
{ | |
typedef __tuple_element_t<__i, tuple<_Elements...>> __element_type; | |
return std::forward<__element_type>(std::__get_helper<__i>(__t)); | |
} | |
template<size_t __i, typename... _Elements> | |
constexpr const __tuple_element_t<__i, tuple<_Elements...>>&& | |
get(const tuple<_Elements...>&& __t) noexcept | |
{ | |
typedef __tuple_element_t<__i, tuple<_Elements...>> __element_type; | |
return std::forward<const __element_type>(std::__get_helper<__i>(__t)); | |
} | |
template<size_t __i, typename... _Elements> | |
constexpr __enable_if_t<(__i >= sizeof...(_Elements))> | |
get(const tuple<_Elements...>&) = delete; | |
template <typename _Tp, typename... _Types> | |
constexpr _Tp& | |
get(tuple<_Types...>& __t) noexcept | |
{ | |
constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); | |
static_assert(__idx < sizeof...(_Types), | |
"the type T in std::get<T> must occur exactly once in the tuple"); | |
return std::__get_helper<__idx>(__t); | |
} | |
template <typename _Tp, typename... _Types> | |
constexpr _Tp&& | |
get(tuple<_Types...>&& __t) noexcept | |
{ | |
constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); | |
static_assert(__idx < sizeof...(_Types), | |
"the type T in std::get<T> must occur exactly once in the tuple"); | |
return std::forward<_Tp>(std::__get_helper<__idx>(__t)); | |
} | |
template <typename _Tp, typename... _Types> | |
constexpr const _Tp& | |
get(const tuple<_Types...>& __t) noexcept | |
{ | |
constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); | |
static_assert(__idx < sizeof...(_Types), | |
"the type T in std::get<T> must occur exactly once in the tuple"); | |
return std::__get_helper<__idx>(__t); | |
} | |
template <typename _Tp, typename... _Types> | |
constexpr const _Tp&& | |
get(const tuple<_Types...>&& __t) noexcept | |
{ | |
constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); | |
static_assert(__idx < sizeof...(_Types), | |
"the type T in std::get<T> must occur exactly once in the tuple"); | |
return std::forward<const _Tp>(std::__get_helper<__idx>(__t)); | |
} | |
template<typename _Tp, typename _Up, size_t __i, size_t __size> | |
struct __tuple_compare | |
{ | |
static constexpr bool | |
__eq(const _Tp& __t, const _Up& __u) | |
{ | |
return bool(std::get<__i>(__t) == std::get<__i>(__u)) | |
&& __tuple_compare<_Tp, _Up, __i + 1, __size>::__eq(__t, __u); | |
} | |
static constexpr bool | |
__less(const _Tp& __t, const _Up& __u) | |
{ | |
return bool(std::get<__i>(__t) < std::get<__i>(__u)) | |
|| (!bool(std::get<__i>(__u) < std::get<__i>(__t)) | |
&& __tuple_compare<_Tp, _Up, __i + 1, __size>::__less(__t, __u)); | |
} | |
}; | |
template<typename _Tp, typename _Up, size_t __size> | |
struct __tuple_compare<_Tp, _Up, __size, __size> | |
{ | |
static constexpr bool | |
__eq(const _Tp&, const _Up&) { return true; } | |
static constexpr bool | |
__less(const _Tp&, const _Up&) { return false; } | |
}; | |
template<typename... _TElements, typename... _UElements> | |
constexpr bool | |
operator==(const tuple<_TElements...>& __t, | |
const tuple<_UElements...>& __u) | |
{ | |
static_assert(sizeof...(_TElements) == sizeof...(_UElements), | |
"tuple objects can only be compared if they have equal sizes."); | |
using __compare = __tuple_compare<tuple<_TElements...>, | |
tuple<_UElements...>, | |
0, sizeof...(_TElements)>; | |
return __compare::__eq(__t, __u); | |
} | |
# 2596 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tuple" 3 | |
template<typename... _TElements, typename... _UElements> | |
constexpr bool | |
operator<(const tuple<_TElements...>& __t, | |
const tuple<_UElements...>& __u) | |
{ | |
static_assert(sizeof...(_TElements) == sizeof...(_UElements), | |
"tuple objects can only be compared if they have equal sizes."); | |
using __compare = __tuple_compare<tuple<_TElements...>, | |
tuple<_UElements...>, | |
0, sizeof...(_TElements)>; | |
return __compare::__less(__t, __u); | |
} | |
template<typename... _TElements, typename... _UElements> | |
constexpr bool | |
operator!=(const tuple<_TElements...>& __t, | |
const tuple<_UElements...>& __u) | |
{ return !(__t == __u); } | |
template<typename... _TElements, typename... _UElements> | |
constexpr bool | |
operator>(const tuple<_TElements...>& __t, | |
const tuple<_UElements...>& __u) | |
{ return __u < __t; } | |
template<typename... _TElements, typename... _UElements> | |
constexpr bool | |
operator<=(const tuple<_TElements...>& __t, | |
const tuple<_UElements...>& __u) | |
{ return !(__u < __t); } | |
template<typename... _TElements, typename... _UElements> | |
constexpr bool | |
operator>=(const tuple<_TElements...>& __t, | |
const tuple<_UElements...>& __u) | |
{ return !(__t < __u); } | |
template<typename... _Elements> | |
constexpr tuple<typename __decay_and_strip<_Elements>::__type...> | |
make_tuple(_Elements&&... __args) | |
{ | |
typedef tuple<typename __decay_and_strip<_Elements>::__type...> | |
__result_type; | |
return __result_type(std::forward<_Elements>(__args)...); | |
} | |
template<typename... _Elements> | |
constexpr tuple<_Elements&&...> | |
forward_as_tuple(_Elements&&... __args) noexcept | |
{ return tuple<_Elements&&...>(std::forward<_Elements>(__args)...); } | |
template<size_t, typename, typename, size_t> | |
struct __make_tuple_impl; | |
template<size_t _Idx, typename _Tuple, typename... _Tp, size_t _Nm> | |
struct __make_tuple_impl<_Idx, tuple<_Tp...>, _Tuple, _Nm> | |
: __make_tuple_impl<_Idx + 1, | |
tuple<_Tp..., __tuple_element_t<_Idx, _Tuple>>, | |
_Tuple, _Nm> | |
{ }; | |
template<size_t _Nm, typename _Tuple, typename... _Tp> | |
struct __make_tuple_impl<_Nm, tuple<_Tp...>, _Tuple, _Nm> | |
{ | |
typedef tuple<_Tp...> __type; | |
}; | |
template<typename _Tuple> | |
struct __do_make_tuple | |
: __make_tuple_impl<0, tuple<>, _Tuple, tuple_size<_Tuple>::value> | |
{ }; | |
template<typename _Tuple> | |
struct __make_tuple | |
: public __do_make_tuple<__remove_cvref_t<_Tuple>> | |
{ }; | |
template<typename...> | |
struct __combine_tuples; | |
template<> | |
struct __combine_tuples<> | |
{ | |
typedef tuple<> __type; | |
}; | |
template<typename... _Ts> | |
struct __combine_tuples<tuple<_Ts...>> | |
{ | |
typedef tuple<_Ts...> __type; | |
}; | |
template<typename... _T1s, typename... _T2s, typename... _Rem> | |
struct __combine_tuples<tuple<_T1s...>, tuple<_T2s...>, _Rem...> | |
{ | |
typedef typename __combine_tuples<tuple<_T1s..., _T2s...>, | |
_Rem...>::__type __type; | |
}; | |
template<typename... _Tpls> | |
struct __tuple_cat_result | |
{ | |
typedef typename __combine_tuples | |
<typename __make_tuple<_Tpls>::__type...>::__type __type; | |
}; | |
template<typename...> | |
struct __make_1st_indices; | |
template<> | |
struct __make_1st_indices<> | |
{ | |
typedef _Index_tuple<> __type; | |
}; | |
template<typename _Tp, typename... _Tpls> | |
struct __make_1st_indices<_Tp, _Tpls...> | |
{ | |
typedef typename _Build_index_tuple<tuple_size< | |
typename remove_reference<_Tp>::type>::value>::__type __type; | |
}; | |
template<typename _Ret, typename _Indices, typename... _Tpls> | |
struct __tuple_concater; | |
template<typename _Ret, size_t... _Is, typename _Tp, typename... _Tpls> | |
struct __tuple_concater<_Ret, _Index_tuple<_Is...>, _Tp, _Tpls...> | |
{ | |
template<typename... _Us> | |
static constexpr _Ret | |
_S_do(_Tp&& __tp, _Tpls&&... __tps, _Us&&... __us) | |
{ | |
typedef typename __make_1st_indices<_Tpls...>::__type __idx; | |
typedef __tuple_concater<_Ret, __idx, _Tpls...> __next; | |
return __next::_S_do(std::forward<_Tpls>(__tps)..., | |
std::forward<_Us>(__us)..., | |
std::get<_Is>(std::forward<_Tp>(__tp))...); | |
} | |
}; | |
template<typename _Ret> | |
struct __tuple_concater<_Ret, _Index_tuple<>> | |
{ | |
template<typename... _Us> | |
static constexpr _Ret | |
_S_do(_Us&&... __us) | |
{ | |
return _Ret(std::forward<_Us>(__us)...); | |
} | |
}; | |
template<typename... _Tps> | |
struct __is_tuple_like_impl<tuple<_Tps...>> : true_type | |
{ }; | |
template<typename... _Tpls, typename = typename | |
enable_if<__and_<__is_tuple_like<_Tpls>...>::value>::type> | |
constexpr auto | |
tuple_cat(_Tpls&&... __tpls) | |
-> typename __tuple_cat_result<_Tpls...>::__type | |
{ | |
typedef typename __tuple_cat_result<_Tpls...>::__type __ret; | |
typedef typename __make_1st_indices<_Tpls...>::__type __idx; | |
typedef __tuple_concater<__ret, __idx, _Tpls...> __concater; | |
return __concater::_S_do(std::forward<_Tpls>(__tpls)...); | |
} | |
template<typename... _Elements> | |
constexpr tuple<_Elements&...> | |
tie(_Elements&... __args) noexcept | |
{ return tuple<_Elements&...>(__args...); } | |
template<typename... _Elements> | |
inline | |
typename enable_if<__and_<__is_swappable<_Elements>...>::value | |
>::type | |
swap(tuple<_Elements...>& __x, tuple<_Elements...>& __y) | |
noexcept(noexcept(__x.swap(__y))) | |
{ __x.swap(__y); } | |
# 2818 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tuple" 3 | |
template<typename... _Elements> | |
typename enable_if<!__and_<__is_swappable<_Elements>...>::value>::type | |
swap(tuple<_Elements...>&, tuple<_Elements...>&) = delete; | |
struct _Swallow_assign | |
{ | |
template<class _Tp> | |
constexpr const _Swallow_assign& | |
operator=(const _Tp&) const | |
{ return *this; } | |
}; | |
# 2853 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tuple" 3 | |
inline constexpr _Swallow_assign ignore{}; | |
template<typename... _Types, typename _Alloc> | |
struct uses_allocator<tuple<_Types...>, _Alloc> : true_type { }; | |
# 2868 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tuple" 3 | |
template<class _T1, class _T2> | |
template<typename... _Args1, typename... _Args2> | |
inline | |
pair<_T1, _T2>:: | |
pair(piecewise_construct_t, | |
tuple<_Args1...> __first, tuple<_Args2...> __second) | |
: pair(__first, __second, | |
typename _Build_index_tuple<sizeof...(_Args1)>::__type(), | |
typename _Build_index_tuple<sizeof...(_Args2)>::__type()) | |
{ } | |
template<class _T1, class _T2> | |
template<typename... _Args1, size_t... _Indexes1, | |
typename... _Args2, size_t... _Indexes2> | |
inline | |
pair<_T1, _T2>:: | |
pair(tuple<_Args1...>& __tuple1, tuple<_Args2...>& __tuple2, | |
_Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>) | |
: first(std::forward<_Args1>(std::get<_Indexes1>(__tuple1))...), | |
second(std::forward<_Args2>(std::get<_Indexes2>(__tuple2))...) | |
{ } | |
template<template<typename...> class _Trait, typename _Tp, typename _Tuple> | |
inline constexpr bool __unpack_std_tuple = false; | |
template<template<typename...> class _Trait, typename _Tp, typename... _Up> | |
inline constexpr bool __unpack_std_tuple<_Trait, _Tp, tuple<_Up...>> | |
= _Trait<_Tp, _Up...>::value; | |
template<template<typename...> class _Trait, typename _Tp, typename... _Up> | |
inline constexpr bool __unpack_std_tuple<_Trait, _Tp, tuple<_Up...>&> | |
= _Trait<_Tp, _Up&...>::value; | |
template<template<typename...> class _Trait, typename _Tp, typename... _Up> | |
inline constexpr bool __unpack_std_tuple<_Trait, _Tp, const tuple<_Up...>> | |
= _Trait<_Tp, const _Up...>::value; | |
template<template<typename...> class _Trait, typename _Tp, typename... _Up> | |
inline constexpr bool __unpack_std_tuple<_Trait, _Tp, const tuple<_Up...>&> | |
= _Trait<_Tp, const _Up&...>::value; | |
template <typename _Fn, typename _Tuple, size_t... _Idx> | |
constexpr decltype(auto) | |
__apply_impl(_Fn&& __f, _Tuple&& __t, index_sequence<_Idx...>) | |
{ | |
return std::__invoke(std::forward<_Fn>(__f), | |
std::get<_Idx>(std::forward<_Tuple>(__t))...); | |
} | |
template <typename _Fn, typename _Tuple> | |
constexpr decltype(auto) | |
apply(_Fn&& __f, _Tuple&& __t) | |
noexcept(__unpack_std_tuple<is_nothrow_invocable, _Fn, _Tuple>) | |
{ | |
using _Indices | |
= make_index_sequence<tuple_size_v<remove_reference_t<_Tuple>>>; | |
return std::__apply_impl(std::forward<_Fn>(__f), | |
std::forward<_Tuple>(__t), | |
_Indices{}); | |
} | |
template <typename _Tp, typename _Tuple, size_t... _Idx> | |
constexpr _Tp | |
__make_from_tuple_impl(_Tuple&& __t, index_sequence<_Idx...>) | |
{ return _Tp(std::get<_Idx>(std::forward<_Tuple>(__t))...); } | |
template <typename _Tp, typename _Tuple> | |
constexpr _Tp | |
make_from_tuple(_Tuple&& __t) | |
noexcept(__unpack_std_tuple<is_nothrow_constructible, _Tp, _Tuple>) | |
{ | |
constexpr size_t __n = tuple_size_v<remove_reference_t<_Tuple>>; | |
if constexpr (__n == 1) | |
{ | |
using _Elt = decltype(std::get<0>(std::declval<_Tuple>())); | |
static_assert(!__reference_constructs_from_temporary(_Tp, _Elt)); | |
} | |
return __make_from_tuple_impl<_Tp>(std::forward<_Tuple>(__t), | |
make_index_sequence<__n>{}); | |
} | |
# 3030 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tuple" 3 | |
} | |
# 14 "/usr/include/qt6/QtCore/qtypeinfo.h" 2 3 4 | |
class QDebug; | |
namespace QtPrivate { | |
template <typename T> | |
inline constexpr bool qIsRelocatable = std::is_trivially_copyable_v<T> && std::is_trivially_destructible_v<T>; | |
template <typename T> | |
inline constexpr bool qIsValueInitializationBitwiseZero = | |
std::is_scalar_v<T> && !std::is_member_object_pointer_v<T>; | |
} | |
template <typename T> | |
class QTypeInfo | |
{ | |
public: | |
enum { | |
isPointer [[deprecated("Use std::is_pointer instead")]] = std::is_pointer_v<T>, | |
isIntegral [[deprecated("Use std::is_integral instead")]] = std::is_integral_v<T>, | |
isComplex = !std::is_trivial_v<T>, | |
isRelocatable = QtPrivate::qIsRelocatable<T>, | |
isValueInitializationBitwiseZero = QtPrivate::qIsValueInitializationBitwiseZero<T>, | |
}; | |
}; | |
template<> | |
class QTypeInfo<void> | |
{ | |
public: | |
enum { | |
isPointer [[deprecated("Use std::is_pointer instead")]] = false, | |
isIntegral [[deprecated("Use std::is_integral instead")]] = false, | |
isComplex = false, | |
isRelocatable = false, | |
isValueInitializationBitwiseZero = false, | |
}; | |
}; | |
# 91 "/usr/include/qt6/QtCore/qtypeinfo.h" 3 4 | |
template <class T, class...Ts> | |
class QTypeInfoMerger | |
{ | |
static_assert(sizeof...(Ts) > 0); | |
public: | |
static constexpr bool isComplex = ((QTypeInfo<Ts>::isComplex) || ...); | |
static constexpr bool isRelocatable = ((QTypeInfo<Ts>::isRelocatable) && ...); | |
[[deprecated("Use std::is_pointer instead")]] static constexpr bool isPointer = false; | |
[[deprecated("Use std::is_integral instead")]] static constexpr bool isIntegral = false; | |
static constexpr bool isValueInitializationBitwiseZero = false; | |
static_assert(!isRelocatable || | |
std::is_copy_constructible_v<T> || | |
std::is_move_constructible_v<T>, | |
"All Ts... are Q_RELOCATABLE_TYPE, but T is neither copy- nor move-constructible, " | |
"so cannot be Q_RELOCATABLE_TYPE. Please mark T as Q_COMPLEX_TYPE manually."); | |
}; | |
template <class T1, class T2> | |
class QTypeInfo<std::pair<T1, T2>> : public QTypeInfoMerger<std::pair<T1, T2>, T1, T2> {}; | |
# 128 "/usr/include/qt6/QtCore/qtypeinfo.h" 3 4 | |
template <typename ...T> class QTypeInfo<QList<T...>> { public: enum { isPointer [[deprecated("Use std::is_pointer instead")]] = false, isIntegral [[deprecated("Use std::is_integral instead")]] = false, isComplex = true, isRelocatable = true, isValueInitializationBitwiseZero = false, }; }; | |
template <typename ...T> class QTypeInfo<QQueue<T...>> { public: enum { isPointer [[deprecated("Use std::is_pointer instead")]] = false, isIntegral [[deprecated("Use std::is_integral instead")]] = false, isComplex = true, isRelocatable = true, isValueInitializationBitwiseZero = false, }; }; | |
template <typename ...T> class QTypeInfo<QStack<T...>> { public: enum { isPointer [[deprecated("Use std::is_pointer instead")]] = false, isIntegral [[deprecated("Use std::is_integral instead")]] = false, isComplex = true, isRelocatable = true, isValueInitializationBitwiseZero = false, }; }; | |
template <typename ...T> class QTypeInfo<QSet<T...>> { public: enum { isPointer [[deprecated("Use std::is_pointer instead")]] = false, isIntegral [[deprecated("Use std::is_integral instead")]] = false, isComplex = true, isRelocatable = true, isValueInitializationBitwiseZero = false, }; }; | |
template <typename ...T> class QTypeInfo<QMap<T...>> { public: enum { isPointer [[deprecated("Use std::is_pointer instead")]] = false, isIntegral [[deprecated("Use std::is_integral instead")]] = false, isComplex = true, isRelocatable = true, isValueInitializationBitwiseZero = false, }; }; | |
template <typename ...T> class QTypeInfo<QMultiMap<T...>> { public: enum { isPointer [[deprecated("Use std::is_pointer instead")]] = false, isIntegral [[deprecated("Use std::is_integral instead")]] = false, isComplex = true, isRelocatable = true, isValueInitializationBitwiseZero = false, }; }; | |
template <typename ...T> class QTypeInfo<QHash<T...>> { public: enum { isPointer [[deprecated("Use std::is_pointer instead")]] = false, isIntegral [[deprecated("Use std::is_integral instead")]] = false, isComplex = true, isRelocatable = true, isValueInitializationBitwiseZero = false, }; }; | |
template <typename ...T> class QTypeInfo<QMultiHash<T...>> { public: enum { isPointer [[deprecated("Use std::is_pointer instead")]] = false, isIntegral [[deprecated("Use std::is_integral instead")]] = false, isComplex = true, isRelocatable = true, isValueInitializationBitwiseZero = false, }; }; | |
template <typename ...T> class QTypeInfo<QCache<T...>> { public: enum { isPointer [[deprecated("Use std::is_pointer instead")]] = false, isIntegral [[deprecated("Use std::is_integral instead")]] = false, isComplex = true, isRelocatable = true, isValueInitializationBitwiseZero = false, }; }; | |
# 148 "/usr/include/qt6/QtCore/qtypeinfo.h" 3 4 | |
enum { | |
Q_COMPLEX_TYPE = 0, | |
Q_PRIMITIVE_TYPE = 0x1, | |
Q_RELOCATABLE_TYPE = 0x2, | |
Q_MOVABLE_TYPE = 0x2, | |
Q_DUMMY_TYPE = 0x4, | |
}; | |
# 178 "/usr/include/qt6/QtCore/qtypeinfo.h" 3 4 | |
template<typename T> class QFlags; | |
template<typename T> | |
class QTypeInfo<QFlags<T> > { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0) && !std::is_trivial_v<QFlags<T> >, isRelocatable = !isComplex || ((Q_PRIMITIVE_TYPE) & Q_RELOCATABLE_TYPE) || QtPrivate::qIsRelocatable<QFlags<T> >, isPointer [[deprecated("Use std::is_pointer instead")]] = std::is_pointer_v< QFlags<T> >, isIntegral [[deprecated("Use std::is_integral instead")]] = std::is_integral< QFlags<T> >::value, isValueInitializationBitwiseZero = QtPrivate::qIsValueInitializationBitwiseZero<QFlags<T> >, }; static_assert(!isRelocatable || std::is_copy_constructible_v<QFlags<T> > || std::is_move_constructible_v<QFlags<T> >, "QFlags<T>" " is neither copy- nor move-constructible, so cannot be Q_RELOCATABLE_TYPE"); }; | |
namespace QTypeTraits | |
{ | |
# 198 "/usr/include/qt6/QtCore/qtypeinfo.h" 3 4 | |
namespace detail { | |
template <typename, typename = void> | |
struct is_container : std::false_type {}; | |
template <typename T> | |
struct is_container<T, std::void_t< | |
typename T::value_type, | |
std::is_convertible<decltype(std::declval<T>().begin() != std::declval<T>().end()), bool> | |
>> : std::true_type {}; | |
# 212 "/usr/include/qt6/QtCore/qtypeinfo.h" 3 4 | |
#pragma GCC diagnostic push | |
# 213 "/usr/include/qt6/QtCore/qtypeinfo.h" 3 4 | |
#pragma GCC diagnostic ignored "-Wfloat-equal" | |
template <typename, typename = void> | |
struct has_operator_equal : std::false_type {}; | |
template <typename T> | |
struct has_operator_equal<T, std::void_t<decltype(bool(std::declval<const T&>() == std::declval<const T&>()))>> | |
: std::true_type {}; | |
# 219 "/usr/include/qt6/QtCore/qtypeinfo.h" 3 4 | |
#pragma GCC diagnostic pop | |
template<typename T, bool = is_container<T>::value> | |
struct expand_operator_equal_container; | |
template<typename T> | |
struct expand_operator_equal_tuple; | |
template<typename T> | |
using expand_operator_equal = expand_operator_equal_container<T>; | |
template<typename T, bool> | |
struct expand_operator_equal_container : expand_operator_equal_tuple<T> {}; | |
template<typename T> | |
struct expand_operator_equal_container<T, true> : | |
std::conjunction< | |
std::disjunction< | |
std::is_same<T, typename T::value_type>, | |
expand_operator_equal<typename T::value_type> | |
>, expand_operator_equal_tuple<T>> {}; | |
template<typename ...T> | |
using expand_operator_equal_recursive = std::conjunction<expand_operator_equal<T>...>; | |
template<typename T> | |
struct expand_operator_equal_tuple : has_operator_equal<T> {}; | |
template<typename T> | |
struct expand_operator_equal_tuple<std::optional<T>> : expand_operator_equal_recursive<T> {}; | |
template<typename T1, typename T2> | |
struct expand_operator_equal_tuple<std::pair<T1, T2>> : expand_operator_equal_recursive<T1, T2> {}; | |
template<typename ...T> | |
struct expand_operator_equal_tuple<std::tuple<T...>> : expand_operator_equal_recursive<T...> {}; | |
template<typename ...T> | |
struct expand_operator_equal_tuple<std::variant<T...>> : expand_operator_equal_recursive<T...> {}; | |
template <typename, typename = void> | |
struct has_operator_less_than : std::false_type{}; | |
template <typename T> | |
struct has_operator_less_than<T, std::void_t<decltype(bool(std::declval<const T&>() < std::declval<const T&>()))>> | |
: std::true_type{}; | |
template<typename T, bool = is_container<T>::value> | |
struct expand_operator_less_than_container; | |
template<typename T> | |
struct expand_operator_less_than_tuple; | |
template<typename T> | |
using expand_operator_less_than = expand_operator_less_than_container<T>; | |
template<typename T, bool> | |
struct expand_operator_less_than_container : expand_operator_less_than_tuple<T> {}; | |
template<typename T> | |
struct expand_operator_less_than_container<T, true> : | |
std::conjunction< | |
std::disjunction< | |
std::is_same<T, typename T::value_type>, | |
expand_operator_less_than<typename T::value_type> | |
>, expand_operator_less_than_tuple<T> | |
> {}; | |
template<typename ...T> | |
using expand_operator_less_than_recursive = std::conjunction<expand_operator_less_than<T>...>; | |
template<typename T> | |
struct expand_operator_less_than_tuple : has_operator_less_than<T> {}; | |
template<typename T> | |
struct expand_operator_less_than_tuple<std::optional<T>> : expand_operator_less_than_recursive<T> {}; | |
template<typename T1, typename T2> | |
struct expand_operator_less_than_tuple<std::pair<T1, T2>> : expand_operator_less_than_recursive<T1, T2> {}; | |
template<typename ...T> | |
struct expand_operator_less_than_tuple<std::tuple<T...>> : expand_operator_less_than_recursive<T...> {}; | |
template<typename ...T> | |
struct expand_operator_less_than_tuple<std::variant<T...>> : expand_operator_less_than_recursive<T...> {}; | |
} | |
template<typename T, typename = void> | |
struct is_dereferenceable : std::false_type {}; | |
template<typename T> | |
struct is_dereferenceable<T, std::void_t<decltype(std::declval<T>().operator->())> > | |
: std::true_type {}; | |
template <typename T> | |
inline constexpr bool is_dereferenceable_v = is_dereferenceable<T>::value; | |
template<typename T> | |
struct has_operator_equal : detail::expand_operator_equal<T> {}; | |
template<typename T> | |
inline constexpr bool has_operator_equal_v = has_operator_equal<T>::value; | |
template <typename Container, typename T> | |
using has_operator_equal_container = std::disjunction<std::is_base_of<Container, T>, QTypeTraits::has_operator_equal<T>>; | |
template<typename T> | |
struct has_operator_less_than : detail::expand_operator_less_than<T> {}; | |
template<typename T> | |
inline constexpr bool has_operator_less_than_v = has_operator_less_than<T>::value; | |
template <typename Container, typename T> | |
using has_operator_less_than_container = std::disjunction<std::is_base_of<Container, T>, QTypeTraits::has_operator_less_than<T>>; | |
template <typename ...T> | |
using compare_eq_result = std::enable_if_t<std::conjunction_v<QTypeTraits::has_operator_equal<T>...>, bool>; | |
template <typename Container, typename ...T> | |
using compare_eq_result_container = std::enable_if_t<std::conjunction_v<QTypeTraits::has_operator_equal_container<Container, T>...>, bool>; | |
template <typename ...T> | |
using compare_lt_result = std::enable_if_t<std::conjunction_v<QTypeTraits::has_operator_less_than<T>...>, bool>; | |
template <typename Container, typename ...T> | |
using compare_lt_result_container = std::enable_if_t<std::conjunction_v<QTypeTraits::has_operator_less_than_container<Container, T>...>, bool>; | |
namespace detail { | |
template<typename T> | |
const T &const_reference(); | |
template<typename T> | |
T &reference(); | |
} | |
template <typename Stream, typename, typename = void> | |
struct has_ostream_operator : std::false_type {}; | |
template <typename Stream, typename T> | |
struct has_ostream_operator<Stream, T, std::void_t<decltype(detail::reference<Stream>() << detail::const_reference<T>())>> | |
: std::true_type {}; | |
template <typename Stream, typename T> | |
inline constexpr bool has_ostream_operator_v = has_ostream_operator<Stream, T>::value; | |
template <typename Stream, typename Container, typename T> | |
using has_ostream_operator_container = std::disjunction<std::is_base_of<Container, T>, QTypeTraits::has_ostream_operator<Stream, T>>; | |
template <typename Stream, typename, typename = void> | |
struct has_istream_operator : std::false_type {}; | |
template <typename Stream, typename T> | |
struct has_istream_operator<Stream, T, std::void_t<decltype(detail::reference<Stream>() >> detail::reference<T>())>> | |
: std::true_type {}; | |
template <typename Stream, typename T> | |
inline constexpr bool has_istream_operator_v = has_istream_operator<Stream, T>::value; | |
template <typename Stream, typename Container, typename T> | |
using has_istream_operator_container = std::disjunction<std::is_base_of<Container, T>, QTypeTraits::has_istream_operator<Stream, T>>; | |
template <typename Stream, typename T> | |
inline constexpr bool has_stream_operator_v = has_ostream_operator_v<Stream, T> && has_istream_operator_v<Stream, T>; | |
} | |
# 48 "/usr/include/qt6/QtCore/qglobal.h" 2 3 4 | |
# 1 "/usr/include/qt6/QtCore/qsysinfo.h" 1 3 4 | |
# 9 "/usr/include/qt6/QtCore/qsysinfo.h" 3 4 | |
# 1 "/usr/include/qt6/QtCore/qprocessordetection.h" 1 3 4 | |
# 10 "/usr/include/qt6/QtCore/qsysinfo.h" 2 3 4 | |
class QString; | |
class QByteArray; | |
class __attribute__((visibility("default"))) QSysInfo | |
{ | |
public: | |
enum Sizes { | |
WordSize = (sizeof(void *)<<3) | |
}; | |
enum Endian { | |
BigEndian, | |
LittleEndian | |
, ByteOrder = LittleEndian | |
}; | |
static QString buildCpuArchitecture(); | |
static QString currentCpuArchitecture(); | |
static QString buildAbi(); | |
static QString kernelType(); | |
static QString kernelVersion(); | |
static QString productType(); | |
static QString productVersion(); | |
static QString prettyProductName(); | |
static QString machineHostName(); | |
static QByteArray machineUniqueId(); | |
static QByteArray bootUniqueId(); | |
}; | |
# 49 "/usr/include/qt6/QtCore/qglobal.h" 2 3 4 | |
# 1 "/usr/include/qt6/QtCore/qlogging.h" 1 3 4 | |
# 18 "/usr/include/qt6/QtCore/qlogging.h" 3 4 | |
class QDebug; | |
class QNoDebug; | |
enum QtMsgType { | |
QtDebugMsg, | |
QtWarningMsg, | |
QtCriticalMsg, | |
QtFatalMsg, | |
QtInfoMsg, | |
QtSystemMsg [[deprecated("Use QtCriticalMsg instead.")]] = QtCriticalMsg | |
}; | |
class QMessageLogContext | |
{ | |
QMessageLogContext(const QMessageLogContext &) = delete; QMessageLogContext &operator=(const QMessageLogContext &) = delete; | |
public: | |
constexpr QMessageLogContext() noexcept = default; | |
constexpr QMessageLogContext(const char *fileName, int lineNumber, const char *functionName, const char *categoryName) noexcept | |
: line(lineNumber), file(fileName), function(functionName), category(categoryName) {} | |
int version = 2; | |
int line = 0; | |
const char *file = nullptr; | |
const char *function = nullptr; | |
const char *category = nullptr; | |
private: | |
QMessageLogContext ©ContextFrom(const QMessageLogContext &logContext) noexcept; | |
friend class QMessageLogger; | |
friend class QDebug; | |
}; | |
class QLoggingCategory; | |
class __attribute__((visibility("default"))) QMessageLogger | |
{ | |
QMessageLogger(const QMessageLogger &) = delete; QMessageLogger &operator=(const QMessageLogger &) = delete; | |
public: | |
constexpr QMessageLogger() : context() {} | |
constexpr QMessageLogger(const char *file, int line, const char *function) | |
: context(file, line, function, "default") {} | |
constexpr QMessageLogger(const char *file, int line, const char *function, const char *category) | |
: context(file, line, function, category) {} | |
void debug(const char *msg, ...) const __attribute__((format(printf, (2), (3)))); | |
void noDebug(const char *, ...) const __attribute__((format(printf, (2), (3)))) | |
{} | |
void info(const char *msg, ...) const __attribute__((format(printf, (2), (3)))); | |
__attribute__((cold)) | |
void warning(const char *msg, ...) const __attribute__((format(printf, (2), (3)))); | |
__attribute__((cold)) | |
void critical(const char *msg, ...) const __attribute__((format(printf, (2), (3)))); | |
[[noreturn]] __attribute__((cold)) | |
void fatal(const char *msg, ...) const noexcept __attribute__((format(printf, (2), (3)))); | |
typedef const QLoggingCategory &(*CategoryFunction)(); | |
void debug(const QLoggingCategory &cat, const char *msg, ...) const __attribute__((format(printf, (3), (4)))); | |
void debug(CategoryFunction catFunc, const char *msg, ...) const __attribute__((format(printf, (3), (4)))); | |
void info(const QLoggingCategory &cat, const char *msg, ...) const __attribute__((format(printf, (3), (4)))); | |
void info(CategoryFunction catFunc, const char *msg, ...) const __attribute__((format(printf, (3), (4)))); | |
__attribute__((cold)) | |
void warning(const QLoggingCategory &cat, const char *msg, ...) const __attribute__((format(printf, (3), (4)))); | |
__attribute__((cold)) | |
void warning(CategoryFunction catFunc, const char *msg, ...) const __attribute__((format(printf, (3), (4)))); | |
__attribute__((cold)) | |
void critical(const QLoggingCategory &cat, const char *msg, ...) const __attribute__((format(printf, (3), (4)))); | |
__attribute__((cold)) | |
void critical(CategoryFunction catFunc, const char *msg, ...) const __attribute__((format(printf, (3), (4)))); | |
[[noreturn]] __attribute__((cold)) | |
void fatal(const QLoggingCategory &cat, const char *msg, ...) const noexcept __attribute__((format(printf, (3), (4)))); | |
[[noreturn]] __attribute__((cold)) | |
void fatal(CategoryFunction catFunc, const char *msg, ...) const noexcept __attribute__((format(printf, (3), (4)))); | |
QDebug debug() const; | |
QDebug debug(const QLoggingCategory &cat) const; | |
QDebug debug(CategoryFunction catFunc) const; | |
QDebug info() const; | |
QDebug info(const QLoggingCategory &cat) const; | |
QDebug info(CategoryFunction catFunc) const; | |
__attribute__((cold)) | |
QDebug warning() const; | |
__attribute__((cold)) | |
QDebug warning(const QLoggingCategory &cat) const; | |
__attribute__((cold)) | |
QDebug warning(CategoryFunction catFunc) const; | |
__attribute__((cold)) | |
QDebug critical() const; | |
__attribute__((cold)) | |
QDebug critical(const QLoggingCategory &cat) const; | |
__attribute__((cold)) | |
QDebug critical(CategoryFunction catFunc) const; | |
__attribute__((cold)) | |
QDebug fatal() const; | |
__attribute__((cold)) | |
QDebug fatal(const QLoggingCategory &cat) const; | |
__attribute__((cold)) | |
QDebug fatal(CategoryFunction catFunc) const; | |
QNoDebug noDebug() const noexcept; | |
private: | |
QMessageLogContext context; | |
}; | |
# 184 "/usr/include/qt6/QtCore/qlogging.h" 3 4 | |
__attribute__((visibility("default"))) void qt_message_output(QtMsgType, const QMessageLogContext &context, | |
const QString &message); | |
__attribute__((visibility("default"))) __attribute__((cold)) void qErrnoWarning(int code, const char *msg, ...); | |
__attribute__((visibility("default"))) __attribute__((cold)) void qErrnoWarning(const char *msg, ...); | |
typedef void (*QtMessageHandler)(QtMsgType, const QMessageLogContext &, const QString &); | |
__attribute__((visibility("default"))) QtMessageHandler qInstallMessageHandler(QtMessageHandler); | |
__attribute__((visibility("default"))) void qSetMessagePattern(const QString &messagePattern); | |
__attribute__((visibility("default"))) QString qFormatLogMessage(QtMsgType type, const QMessageLogContext &context, | |
const QString &buf); | |
__attribute__((cold)) | |
__attribute__((visibility("default"))) QString qt_error_string(int errorCode = -1); | |
# 50 "/usr/include/qt6/QtCore/qglobal.h" 2 3 4 | |
# 1 "/usr/include/qt6/QtCore/qflags.h" 1 3 4 | |
# 1 "/usr/include/qt6/QtCore/qcompare_impl.h" 1 3 4 | |
# 13 "/usr/include/qt6/QtCore/qcompare_impl.h" 3 4 | |
# 1 "/usr/include/qt6/QtCore/qcompilerdetection.h" 1 3 4 | |
# 14 "/usr/include/qt6/QtCore/qcompare_impl.h" 2 3 4 | |
namespace QtPrivate { | |
class CompareAgainstLiteralZero { | |
public: | |
using SafeZero = void (CompareAgainstLiteralZero::*)(); | |
constexpr CompareAgainstLiteralZero(SafeZero) noexcept {} | |
template <typename T, std::enable_if_t<std::is_null_pointer_v<T>, bool> = true> | |
CompareAgainstLiteralZero(T) = delete; | |
}; | |
} | |
# 8 "/usr/include/qt6/QtCore/qflags.h" 2 3 4 | |
class QDataStream; | |
class QFlag | |
{ | |
int i; | |
public: | |
constexpr inline QFlag(int value) noexcept : i(value) {} | |
constexpr inline operator int() const noexcept { return i; } | |
# 31 "/usr/include/qt6/QtCore/qflags.h" 3 4 | |
constexpr inline QFlag(uint value) noexcept : i(int(value)) {} | |
constexpr inline QFlag(short value) noexcept : i(int(value)) {} | |
constexpr inline QFlag(ushort value) noexcept : i(int(uint(value))) {} | |
constexpr inline operator uint() const noexcept { return uint(i); } | |
}; | |
template<> class QTypeInfo<QFlag > { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0) && !std::is_trivial_v<QFlag>, isRelocatable = !isComplex || ((Q_PRIMITIVE_TYPE) & Q_RELOCATABLE_TYPE) || QtPrivate::qIsRelocatable<QFlag>, isPointer [[deprecated("Use std::is_pointer instead")]] = std::is_pointer_v< QFlag >, isIntegral [[deprecated("Use std::is_integral instead")]] = std::is_integral< QFlag >::value, isValueInitializationBitwiseZero = QtPrivate::qIsValueInitializationBitwiseZero<QFlag>, }; static_assert(!isRelocatable || std::is_copy_constructible_v<QFlag > || std::is_move_constructible_v<QFlag >, "QFlag" " is neither copy- nor move-constructible, so cannot be Q_RELOCATABLE_TYPE"); }; | |
class QIncompatibleFlag | |
{ | |
int i; | |
public: | |
constexpr inline explicit QIncompatibleFlag(int i) noexcept; | |
constexpr inline operator int() const noexcept { return i; } | |
}; | |
template<> class QTypeInfo<QIncompatibleFlag > { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0) && !std::is_trivial_v<QIncompatibleFlag>, isRelocatable = !isComplex || ((Q_PRIMITIVE_TYPE) & Q_RELOCATABLE_TYPE) || QtPrivate::qIsRelocatable<QIncompatibleFlag>, isPointer [[deprecated("Use std::is_pointer instead")]] = std::is_pointer_v< QIncompatibleFlag >, isIntegral [[deprecated("Use std::is_integral instead")]] = std::is_integral< QIncompatibleFlag >::value, isValueInitializationBitwiseZero = QtPrivate::qIsValueInitializationBitwiseZero<QIncompatibleFlag>, }; static_assert(!isRelocatable || std::is_copy_constructible_v<QIncompatibleFlag > || std::is_move_constructible_v<QIncompatibleFlag >, "QIncompatibleFlag" " is neither copy- nor move-constructible, so cannot be Q_RELOCATABLE_TYPE"); }; | |
constexpr inline QIncompatibleFlag::QIncompatibleFlag(int value) noexcept : i(value) {} | |
template<typename Enum> | |
class QFlags | |
{ | |
static_assert((sizeof(Enum) <= sizeof(int)), | |
"QFlags uses an int as storage, so an enum with underlying " | |
"long long will overflow."); | |
static_assert((std::is_enum<Enum>::value), "QFlags is only usable on enumeration types."); | |
public: | |
typedef typename std::conditional< | |
std::is_unsigned<typename std::underlying_type<Enum>::type>::value, | |
unsigned int, | |
signed int | |
>::type Int; | |
typedef Enum enum_type; | |
constexpr inline QFlags() noexcept : i(0) {} | |
constexpr inline QFlags(Enum flags) noexcept : i(Int(flags)) {} | |
constexpr inline QFlags(QFlag flag) noexcept : i(flag) {} | |
constexpr inline QFlags(std::initializer_list<Enum> flags) noexcept | |
: i(initializer_list_helper(flags.begin(), flags.end())) {} | |
constexpr static inline QFlags fromInt(Int i) noexcept { return QFlags(QFlag(i)); } | |
constexpr inline Int toInt() const noexcept { return i; } | |
constexpr inline QFlags &operator&=(int mask) noexcept { i &= mask; return *this; } | |
constexpr inline QFlags &operator&=(uint mask) noexcept { i &= mask; return *this; } | |
constexpr inline QFlags &operator&=(QFlags mask) noexcept { i &= mask.i; return *this; } | |
constexpr inline QFlags &operator&=(Enum mask) noexcept { i &= Int(mask); return *this; } | |
constexpr inline QFlags &operator|=(QFlags other) noexcept { i |= other.i; return *this; } | |
constexpr inline QFlags &operator|=(Enum other) noexcept { i |= Int(other); return *this; } | |
constexpr inline QFlags &operator^=(QFlags other) noexcept { i ^= other.i; return *this; } | |
constexpr inline QFlags &operator^=(Enum other) noexcept { i ^= Int(other); return *this; } | |
# 103 "/usr/include/qt6/QtCore/qflags.h" 3 4 | |
constexpr inline operator Int() const noexcept { return i; } | |
constexpr inline bool operator!() const noexcept { return !i; } | |
constexpr inline QFlags operator|(QFlags other) const noexcept { return QFlags(QFlag(i | other.i)); } | |
constexpr inline QFlags operator|(Enum other) const noexcept { return QFlags(QFlag(i | Int(other))); } | |
constexpr inline QFlags operator^(QFlags other) const noexcept { return QFlags(QFlag(i ^ other.i)); } | |
constexpr inline QFlags operator^(Enum other) const noexcept { return QFlags(QFlag(i ^ Int(other))); } | |
constexpr inline QFlags operator&(int mask) const noexcept { return QFlags(QFlag(i & mask)); } | |
constexpr inline QFlags operator&(uint mask) const noexcept { return QFlags(QFlag(i & mask)); } | |
constexpr inline QFlags operator&(QFlags other) const noexcept { return QFlags(QFlag(i & other.i)); } | |
constexpr inline QFlags operator&(Enum other) const noexcept { return QFlags(QFlag(i & Int(other))); } | |
constexpr inline QFlags operator~() const noexcept { return QFlags(QFlag(~i)); } | |
constexpr inline void operator+(QFlags other) const noexcept = delete; | |
constexpr inline void operator+(Enum other) const noexcept = delete; | |
constexpr inline void operator+(int other) const noexcept = delete; | |
constexpr inline void operator-(QFlags other) const noexcept = delete; | |
constexpr inline void operator-(Enum other) const noexcept = delete; | |
constexpr inline void operator-(int other) const noexcept = delete; | |
constexpr inline bool testFlag(Enum flag) const noexcept { return testFlags(flag); } | |
constexpr inline bool testFlags(QFlags flags) const noexcept { return flags.i ? ((i & flags.i) == flags.i) : i == Int(0); } | |
constexpr inline bool testAnyFlag(Enum flag) const noexcept { return testAnyFlags(flag); } | |
constexpr inline bool testAnyFlags(QFlags flags) const noexcept { return (i & flags.i) != Int(0); } | |
constexpr inline QFlags &setFlag(Enum flag, bool on = true) noexcept | |
{ | |
return on ? (*this |= flag) : (*this &= ~QFlags(flag)); | |
} | |
friend constexpr inline bool operator==(QFlags lhs, QFlags rhs) noexcept | |
{ return lhs.i == rhs.i; } | |
friend constexpr inline bool operator!=(QFlags lhs, QFlags rhs) noexcept | |
{ return lhs.i != rhs.i; } | |
friend constexpr inline bool operator==(QFlags lhs, Enum rhs) noexcept | |
{ return lhs == QFlags(rhs); } | |
friend constexpr inline bool operator!=(QFlags lhs, Enum rhs) noexcept | |
{ return lhs != QFlags(rhs); } | |
friend constexpr inline bool operator==(Enum lhs, QFlags rhs) noexcept | |
{ return QFlags(lhs) == rhs; } | |
friend constexpr inline bool operator!=(Enum lhs, QFlags rhs) noexcept | |
{ return QFlags(lhs) != rhs; } | |
# 162 "/usr/include/qt6/QtCore/qflags.h" 3 4 | |
private: | |
constexpr static inline Int initializer_list_helper(typename std::initializer_list<Enum>::const_iterator it, | |
typename std::initializer_list<Enum>::const_iterator end) | |
noexcept | |
{ | |
return (it == end ? Int(0) : (Int(*it) | initializer_list_helper(it + 1, end))); | |
} | |
Int i; | |
}; | |
# 253 "/usr/include/qt6/QtCore/qflags.h" 3 4 | |
# 52 "/usr/include/qt6/QtCore/qglobal.h" 2 3 4 | |
# 1 "/usr/include/qt6/QtCore/qatomic.h" 1 3 4 | |
# 1 "/usr/include/qt6/QtCore/qbasicatomic.h" 1 3 4 | |
# 1 "/usr/include/qt6/QtCore/qatomic_cxx11.h" 1 3 4 | |
# 1 "/usr/include/qt6/QtCore/qgenericatomic.h" 1 3 4 | |
# 1 "/usr/include/qt6/QtCore/qcompilerdetection.h" 1 3 4 | |
# 9 "/usr/include/qt6/QtCore/qgenericatomic.h" 2 3 4 | |
# 21 "/usr/include/qt6/QtCore/qgenericatomic.h" 3 4 | |
template<int Size> struct QAtomicOpsSupport | |
{ | |
enum { IsSupported = (Size == sizeof(int) || Size == sizeof(qptrdiff)) }; | |
}; | |
template <typename T> struct QAtomicAdditiveType | |
{ | |
typedef T AdditiveT; | |
static const int AddScale = 1; | |
}; | |
template <typename T> struct QAtomicAdditiveType<T *> | |
{ | |
typedef qptrdiff AdditiveT; | |
static const int AddScale = sizeof(T); | |
}; | |
# 9 "/usr/include/qt6/QtCore/qatomic_cxx11.h" 2 3 4 | |
# 1 "/usr/include/qt6/QtCore/qyieldcpu.h" 1 3 4 | |
# 1 "/usr/include/qt6/QtCore/qcompilerdetection.h" 1 3 4 | |
# 9 "/usr/include/qt6/QtCore/qyieldcpu.h" 2 3 4 | |
# 1 "/usr/include/qt6/QtCore/qprocessordetection.h" 1 3 4 | |
# 10 "/usr/include/qt6/QtCore/qyieldcpu.h" 2 3 4 | |
# 22 "/usr/include/qt6/QtCore/qyieldcpu.h" 3 4 | |
__attribute__((artificial)) | |
inline __attribute__((always_inline)) void qYieldCpu(void) noexcept; | |
void qYieldCpu(void) | |
noexcept | |
{ | |
__builtin_ia32_pause(); | |
# 60 "/usr/include/qt6/QtCore/qyieldcpu.h" 3 4 | |
} | |
# 10 "/usr/include/qt6/QtCore/qatomic_cxx11.h" 2 3 4 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/atomic" 1 3 4 | |
# 35 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/atomic" 3 4 | |
# 36 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/atomic" 3 | |
# 48 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/atomic" 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 1 3 | |
# 47 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 3 | |
# 48 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 3 | |
# 49 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/atomic" 2 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/atomic_base.h" 1 3 | |
# 33 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/atomic_base.h" 3 | |
# 34 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/atomic_base.h" 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/atomic_lockfree_defines.h" 1 3 | |
# 33 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/atomic_lockfree_defines.h" 3 | |
# 34 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/atomic_lockfree_defines.h" 3 | |
# 39 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/atomic_base.h" 2 3 | |
# 49 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/atomic_base.h" 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 1 3 | |
# 47 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 3 | |
# 48 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 3 | |
# 50 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/atomic_base.h" 2 3 | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
# 81 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/atomic_base.h" 3 | |
typedef enum memory_order | |
{ | |
memory_order_relaxed, | |
memory_order_consume, | |
memory_order_acquire, | |
memory_order_release, | |
memory_order_acq_rel, | |
memory_order_seq_cst | |
} memory_order; | |
enum __memory_order_modifier | |
{ | |
__memory_order_mask = 0x0ffff, | |
__memory_order_modifier_mask = 0xffff0000, | |
__memory_order_hle_acquire = 0x10000, | |
__memory_order_hle_release = 0x20000 | |
}; | |
constexpr memory_order | |
operator|(memory_order __m, __memory_order_modifier __mod) noexcept | |
{ | |
return memory_order(int(__m) | int(__mod)); | |
} | |
constexpr memory_order | |
operator&(memory_order __m, __memory_order_modifier __mod) noexcept | |
{ | |
return memory_order(int(__m) & int(__mod)); | |
} | |
constexpr memory_order | |
__cmpexch_failure_order2(memory_order __m) noexcept | |
{ | |
return __m == memory_order_acq_rel ? memory_order_acquire | |
: __m == memory_order_release ? memory_order_relaxed : __m; | |
} | |
constexpr memory_order | |
__cmpexch_failure_order(memory_order __m) noexcept | |
{ | |
return memory_order(__cmpexch_failure_order2(__m & __memory_order_mask) | |
| __memory_order_modifier(__m & __memory_order_modifier_mask)); | |
} | |
constexpr bool | |
__is_valid_cmpexch_failure_order(memory_order __m) noexcept | |
{ | |
return (__m & __memory_order_mask) != memory_order_release | |
&& (__m & __memory_order_mask) != memory_order_acq_rel; | |
} | |
template<typename _IntTp> | |
struct __atomic_base; | |
inline __attribute__((__always_inline__)) void | |
atomic_thread_fence(memory_order __m) noexcept | |
{ __atomic_thread_fence(int(__m)); } | |
inline __attribute__((__always_inline__)) void | |
atomic_signal_fence(memory_order __m) noexcept | |
{ __atomic_signal_fence(int(__m)); } | |
template<typename _Tp> | |
inline _Tp | |
kill_dependency(_Tp __y) noexcept | |
{ | |
_Tp __ret(__y); | |
return __ret; | |
} | |
# 171 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/atomic_base.h" 3 | |
template<typename _Tp> | |
struct atomic; | |
template<typename _Tp> | |
struct atomic<_Tp*>; | |
typedef bool __atomic_flag_data_type; | |
# 196 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/atomic_base.h" 3 | |
extern "C" { | |
struct __atomic_flag_base | |
{ | |
__atomic_flag_data_type _M_i ; | |
}; | |
} | |
struct atomic_flag : public __atomic_flag_base | |
{ | |
atomic_flag() noexcept = default; | |
~atomic_flag() noexcept = default; | |
atomic_flag(const atomic_flag&) = delete; | |
atomic_flag& operator=(const atomic_flag&) = delete; | |
atomic_flag& operator=(const atomic_flag&) volatile = delete; | |
constexpr atomic_flag(bool __i) noexcept | |
: __atomic_flag_base{ _S_init(__i) } | |
{ } | |
inline __attribute__((__always_inline__)) bool | |
test_and_set(memory_order __m = memory_order_seq_cst) noexcept | |
{ | |
return __atomic_test_and_set (&_M_i, int(__m)); | |
} | |
inline __attribute__((__always_inline__)) bool | |
test_and_set(memory_order __m = memory_order_seq_cst) volatile noexcept | |
{ | |
return __atomic_test_and_set (&_M_i, int(__m)); | |
} | |
# 280 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/atomic_base.h" 3 | |
inline __attribute__((__always_inline__)) void | |
clear(memory_order __m = memory_order_seq_cst) noexcept | |
{ | |
memory_order __b __attribute__ ((__unused__)) | |
= __m & __memory_order_mask; | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_consume), false)) std::__glibcxx_assert_fail(); } while (false); | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acquire), false)) std::__glibcxx_assert_fail(); } while (false); | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acq_rel), false)) std::__glibcxx_assert_fail(); } while (false); | |
__atomic_clear (&_M_i, int(__m)); | |
} | |
inline __attribute__((__always_inline__)) void | |
clear(memory_order __m = memory_order_seq_cst) volatile noexcept | |
{ | |
memory_order __b __attribute__ ((__unused__)) | |
= __m & __memory_order_mask; | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_consume), false)) std::__glibcxx_assert_fail(); } while (false); | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acquire), false)) std::__glibcxx_assert_fail(); } while (false); | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acq_rel), false)) std::__glibcxx_assert_fail(); } while (false); | |
__atomic_clear (&_M_i, int(__m)); | |
} | |
private: | |
static constexpr __atomic_flag_data_type | |
_S_init(bool __i) | |
{ return __i ? 1 : 0; } | |
}; | |
# 336 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/atomic_base.h" 3 | |
template<typename _ITp> | |
struct __atomic_base | |
{ | |
using value_type = _ITp; | |
using difference_type = value_type; | |
private: | |
typedef _ITp __int_type; | |
static constexpr int _S_alignment = | |
sizeof(_ITp) > alignof(_ITp) ? sizeof(_ITp) : alignof(_ITp); | |
alignas(_S_alignment) __int_type _M_i ; | |
public: | |
__atomic_base() noexcept = default; | |
~__atomic_base() noexcept = default; | |
__atomic_base(const __atomic_base&) = delete; | |
__atomic_base& operator=(const __atomic_base&) = delete; | |
__atomic_base& operator=(const __atomic_base&) volatile = delete; | |
constexpr __atomic_base(__int_type __i) noexcept : _M_i (__i) { } | |
operator __int_type() const noexcept | |
{ return load(); } | |
operator __int_type() const volatile noexcept | |
{ return load(); } | |
__int_type | |
operator=(__int_type __i) noexcept | |
{ | |
store(__i); | |
return __i; | |
} | |
__int_type | |
operator=(__int_type __i) volatile noexcept | |
{ | |
store(__i); | |
return __i; | |
} | |
__int_type | |
operator++(int) noexcept | |
{ return fetch_add(1); } | |
__int_type | |
operator++(int) volatile noexcept | |
{ return fetch_add(1); } | |
__int_type | |
operator--(int) noexcept | |
{ return fetch_sub(1); } | |
__int_type | |
operator--(int) volatile noexcept | |
{ return fetch_sub(1); } | |
__int_type | |
operator++() noexcept | |
{ return __atomic_add_fetch(&_M_i, 1, int(memory_order_seq_cst)); } | |
__int_type | |
operator++() volatile noexcept | |
{ return __atomic_add_fetch(&_M_i, 1, int(memory_order_seq_cst)); } | |
__int_type | |
operator--() noexcept | |
{ return __atomic_sub_fetch(&_M_i, 1, int(memory_order_seq_cst)); } | |
__int_type | |
operator--() volatile noexcept | |
{ return __atomic_sub_fetch(&_M_i, 1, int(memory_order_seq_cst)); } | |
__int_type | |
operator+=(__int_type __i) noexcept | |
{ return __atomic_add_fetch(&_M_i, __i, int(memory_order_seq_cst)); } | |
__int_type | |
operator+=(__int_type __i) volatile noexcept | |
{ return __atomic_add_fetch(&_M_i, __i, int(memory_order_seq_cst)); } | |
__int_type | |
operator-=(__int_type __i) noexcept | |
{ return __atomic_sub_fetch(&_M_i, __i, int(memory_order_seq_cst)); } | |
__int_type | |
operator-=(__int_type __i) volatile noexcept | |
{ return __atomic_sub_fetch(&_M_i, __i, int(memory_order_seq_cst)); } | |
__int_type | |
operator&=(__int_type __i) noexcept | |
{ return __atomic_and_fetch(&_M_i, __i, int(memory_order_seq_cst)); } | |
__int_type | |
operator&=(__int_type __i) volatile noexcept | |
{ return __atomic_and_fetch(&_M_i, __i, int(memory_order_seq_cst)); } | |
__int_type | |
operator|=(__int_type __i) noexcept | |
{ return __atomic_or_fetch(&_M_i, __i, int(memory_order_seq_cst)); } | |
__int_type | |
operator|=(__int_type __i) volatile noexcept | |
{ return __atomic_or_fetch(&_M_i, __i, int(memory_order_seq_cst)); } | |
__int_type | |
operator^=(__int_type __i) noexcept | |
{ return __atomic_xor_fetch(&_M_i, __i, int(memory_order_seq_cst)); } | |
__int_type | |
operator^=(__int_type __i) volatile noexcept | |
{ return __atomic_xor_fetch(&_M_i, __i, int(memory_order_seq_cst)); } | |
bool | |
is_lock_free() const noexcept | |
{ | |
return __atomic_is_lock_free(sizeof(_M_i), | |
reinterpret_cast<void *>(-_S_alignment)); | |
} | |
bool | |
is_lock_free() const volatile noexcept | |
{ | |
return __atomic_is_lock_free(sizeof(_M_i), | |
reinterpret_cast<void *>(-_S_alignment)); | |
} | |
inline __attribute__((__always_inline__)) void | |
store(__int_type __i, memory_order __m = memory_order_seq_cst) noexcept | |
{ | |
memory_order __b __attribute__ ((__unused__)) | |
= __m & __memory_order_mask; | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acquire), false)) std::__glibcxx_assert_fail(); } while (false); | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acq_rel), false)) std::__glibcxx_assert_fail(); } while (false); | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_consume), false)) std::__glibcxx_assert_fail(); } while (false); | |
__atomic_store_n(&_M_i, __i, int(__m)); | |
} | |
inline __attribute__((__always_inline__)) void | |
store(__int_type __i, | |
memory_order __m = memory_order_seq_cst) volatile noexcept | |
{ | |
memory_order __b __attribute__ ((__unused__)) | |
= __m & __memory_order_mask; | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acquire), false)) std::__glibcxx_assert_fail(); } while (false); | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acq_rel), false)) std::__glibcxx_assert_fail(); } while (false); | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_consume), false)) std::__glibcxx_assert_fail(); } while (false); | |
__atomic_store_n(&_M_i, __i, int(__m)); | |
} | |
inline __attribute__((__always_inline__)) __int_type | |
load(memory_order __m = memory_order_seq_cst) const noexcept | |
{ | |
memory_order __b __attribute__ ((__unused__)) | |
= __m & __memory_order_mask; | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_release), false)) std::__glibcxx_assert_fail(); } while (false); | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acq_rel), false)) std::__glibcxx_assert_fail(); } while (false); | |
return __atomic_load_n(&_M_i, int(__m)); | |
} | |
inline __attribute__((__always_inline__)) __int_type | |
load(memory_order __m = memory_order_seq_cst) const volatile noexcept | |
{ | |
memory_order __b __attribute__ ((__unused__)) | |
= __m & __memory_order_mask; | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_release), false)) std::__glibcxx_assert_fail(); } while (false); | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acq_rel), false)) std::__glibcxx_assert_fail(); } while (false); | |
return __atomic_load_n(&_M_i, int(__m)); | |
} | |
inline __attribute__((__always_inline__)) __int_type | |
exchange(__int_type __i, | |
memory_order __m = memory_order_seq_cst) noexcept | |
{ | |
return __atomic_exchange_n(&_M_i, __i, int(__m)); | |
} | |
inline __attribute__((__always_inline__)) __int_type | |
exchange(__int_type __i, | |
memory_order __m = memory_order_seq_cst) volatile noexcept | |
{ | |
return __atomic_exchange_n(&_M_i, __i, int(__m)); | |
} | |
inline __attribute__((__always_inline__)) bool | |
compare_exchange_weak(__int_type& __i1, __int_type __i2, | |
memory_order __m1, memory_order __m2) noexcept | |
{ | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__is_valid_cmpexch_failure_order(__m2)), false)) std::__glibcxx_assert_fail(); } while (false); | |
return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 1, | |
int(__m1), int(__m2)); | |
} | |
inline __attribute__((__always_inline__)) bool | |
compare_exchange_weak(__int_type& __i1, __int_type __i2, | |
memory_order __m1, | |
memory_order __m2) volatile noexcept | |
{ | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__is_valid_cmpexch_failure_order(__m2)), false)) std::__glibcxx_assert_fail(); } while (false); | |
return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 1, | |
int(__m1), int(__m2)); | |
} | |
inline __attribute__((__always_inline__)) bool | |
compare_exchange_weak(__int_type& __i1, __int_type __i2, | |
memory_order __m = memory_order_seq_cst) noexcept | |
{ | |
return compare_exchange_weak(__i1, __i2, __m, | |
__cmpexch_failure_order(__m)); | |
} | |
inline __attribute__((__always_inline__)) bool | |
compare_exchange_weak(__int_type& __i1, __int_type __i2, | |
memory_order __m = memory_order_seq_cst) volatile noexcept | |
{ | |
return compare_exchange_weak(__i1, __i2, __m, | |
__cmpexch_failure_order(__m)); | |
} | |
inline __attribute__((__always_inline__)) bool | |
compare_exchange_strong(__int_type& __i1, __int_type __i2, | |
memory_order __m1, memory_order __m2) noexcept | |
{ | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__is_valid_cmpexch_failure_order(__m2)), false)) std::__glibcxx_assert_fail(); } while (false); | |
return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 0, | |
int(__m1), int(__m2)); | |
} | |
inline __attribute__((__always_inline__)) bool | |
compare_exchange_strong(__int_type& __i1, __int_type __i2, | |
memory_order __m1, | |
memory_order __m2) volatile noexcept | |
{ | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__is_valid_cmpexch_failure_order(__m2)), false)) std::__glibcxx_assert_fail(); } while (false); | |
return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 0, | |
int(__m1), int(__m2)); | |
} | |
inline __attribute__((__always_inline__)) bool | |
compare_exchange_strong(__int_type& __i1, __int_type __i2, | |
memory_order __m = memory_order_seq_cst) noexcept | |
{ | |
return compare_exchange_strong(__i1, __i2, __m, | |
__cmpexch_failure_order(__m)); | |
} | |
inline __attribute__((__always_inline__)) bool | |
compare_exchange_strong(__int_type& __i1, __int_type __i2, | |
memory_order __m = memory_order_seq_cst) volatile noexcept | |
{ | |
return compare_exchange_strong(__i1, __i2, __m, | |
__cmpexch_failure_order(__m)); | |
} | |
# 628 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/atomic_base.h" 3 | |
inline __attribute__((__always_inline__)) __int_type | |
fetch_add(__int_type __i, | |
memory_order __m = memory_order_seq_cst) noexcept | |
{ return __atomic_fetch_add(&_M_i, __i, int(__m)); } | |
inline __attribute__((__always_inline__)) __int_type | |
fetch_add(__int_type __i, | |
memory_order __m = memory_order_seq_cst) volatile noexcept | |
{ return __atomic_fetch_add(&_M_i, __i, int(__m)); } | |
inline __attribute__((__always_inline__)) __int_type | |
fetch_sub(__int_type __i, | |
memory_order __m = memory_order_seq_cst) noexcept | |
{ return __atomic_fetch_sub(&_M_i, __i, int(__m)); } | |
inline __attribute__((__always_inline__)) __int_type | |
fetch_sub(__int_type __i, | |
memory_order __m = memory_order_seq_cst) volatile noexcept | |
{ return __atomic_fetch_sub(&_M_i, __i, int(__m)); } | |
inline __attribute__((__always_inline__)) __int_type | |
fetch_and(__int_type __i, | |
memory_order __m = memory_order_seq_cst) noexcept | |
{ return __atomic_fetch_and(&_M_i, __i, int(__m)); } | |
inline __attribute__((__always_inline__)) __int_type | |
fetch_and(__int_type __i, | |
memory_order __m = memory_order_seq_cst) volatile noexcept | |
{ return __atomic_fetch_and(&_M_i, __i, int(__m)); } | |
inline __attribute__((__always_inline__)) __int_type | |
fetch_or(__int_type __i, | |
memory_order __m = memory_order_seq_cst) noexcept | |
{ return __atomic_fetch_or(&_M_i, __i, int(__m)); } | |
inline __attribute__((__always_inline__)) __int_type | |
fetch_or(__int_type __i, | |
memory_order __m = memory_order_seq_cst) volatile noexcept | |
{ return __atomic_fetch_or(&_M_i, __i, int(__m)); } | |
inline __attribute__((__always_inline__)) __int_type | |
fetch_xor(__int_type __i, | |
memory_order __m = memory_order_seq_cst) noexcept | |
{ return __atomic_fetch_xor(&_M_i, __i, int(__m)); } | |
inline __attribute__((__always_inline__)) __int_type | |
fetch_xor(__int_type __i, | |
memory_order __m = memory_order_seq_cst) volatile noexcept | |
{ return __atomic_fetch_xor(&_M_i, __i, int(__m)); } | |
}; | |
template<typename _PTp> | |
struct __atomic_base<_PTp*> | |
{ | |
private: | |
typedef _PTp* __pointer_type; | |
__pointer_type _M_p ; | |
constexpr ptrdiff_t | |
_M_type_size(ptrdiff_t __d) const { return __d * sizeof(_PTp); } | |
constexpr ptrdiff_t | |
_M_type_size(ptrdiff_t __d) const volatile { return __d * sizeof(_PTp); } | |
public: | |
__atomic_base() noexcept = default; | |
~__atomic_base() noexcept = default; | |
__atomic_base(const __atomic_base&) = delete; | |
__atomic_base& operator=(const __atomic_base&) = delete; | |
__atomic_base& operator=(const __atomic_base&) volatile = delete; | |
constexpr __atomic_base(__pointer_type __p) noexcept : _M_p (__p) { } | |
operator __pointer_type() const noexcept | |
{ return load(); } | |
operator __pointer_type() const volatile noexcept | |
{ return load(); } | |
__pointer_type | |
operator=(__pointer_type __p) noexcept | |
{ | |
store(__p); | |
return __p; | |
} | |
__pointer_type | |
operator=(__pointer_type __p) volatile noexcept | |
{ | |
store(__p); | |
return __p; | |
} | |
__pointer_type | |
operator++(int) noexcept | |
{ return fetch_add(1); } | |
__pointer_type | |
operator++(int) volatile noexcept | |
{ return fetch_add(1); } | |
__pointer_type | |
operator--(int) noexcept | |
{ return fetch_sub(1); } | |
__pointer_type | |
operator--(int) volatile noexcept | |
{ return fetch_sub(1); } | |
__pointer_type | |
operator++() noexcept | |
{ return __atomic_add_fetch(&_M_p, _M_type_size(1), | |
int(memory_order_seq_cst)); } | |
__pointer_type | |
operator++() volatile noexcept | |
{ return __atomic_add_fetch(&_M_p, _M_type_size(1), | |
int(memory_order_seq_cst)); } | |
__pointer_type | |
operator--() noexcept | |
{ return __atomic_sub_fetch(&_M_p, _M_type_size(1), | |
int(memory_order_seq_cst)); } | |
__pointer_type | |
operator--() volatile noexcept | |
{ return __atomic_sub_fetch(&_M_p, _M_type_size(1), | |
int(memory_order_seq_cst)); } | |
__pointer_type | |
operator+=(ptrdiff_t __d) noexcept | |
{ return __atomic_add_fetch(&_M_p, _M_type_size(__d), | |
int(memory_order_seq_cst)); } | |
__pointer_type | |
operator+=(ptrdiff_t __d) volatile noexcept | |
{ return __atomic_add_fetch(&_M_p, _M_type_size(__d), | |
int(memory_order_seq_cst)); } | |
__pointer_type | |
operator-=(ptrdiff_t __d) noexcept | |
{ return __atomic_sub_fetch(&_M_p, _M_type_size(__d), | |
int(memory_order_seq_cst)); } | |
__pointer_type | |
operator-=(ptrdiff_t __d) volatile noexcept | |
{ return __atomic_sub_fetch(&_M_p, _M_type_size(__d), | |
int(memory_order_seq_cst)); } | |
bool | |
is_lock_free() const noexcept | |
{ | |
return __atomic_is_lock_free(sizeof(_M_p), | |
reinterpret_cast<void *>(-__alignof(_M_p))); | |
} | |
bool | |
is_lock_free() const volatile noexcept | |
{ | |
return __atomic_is_lock_free(sizeof(_M_p), | |
reinterpret_cast<void *>(-__alignof(_M_p))); | |
} | |
inline __attribute__((__always_inline__)) void | |
store(__pointer_type __p, | |
memory_order __m = memory_order_seq_cst) noexcept | |
{ | |
memory_order __b __attribute__ ((__unused__)) | |
= __m & __memory_order_mask; | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acquire), false)) std::__glibcxx_assert_fail(); } while (false); | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acq_rel), false)) std::__glibcxx_assert_fail(); } while (false); | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_consume), false)) std::__glibcxx_assert_fail(); } while (false); | |
__atomic_store_n(&_M_p, __p, int(__m)); | |
} | |
inline __attribute__((__always_inline__)) void | |
store(__pointer_type __p, | |
memory_order __m = memory_order_seq_cst) volatile noexcept | |
{ | |
memory_order __b __attribute__ ((__unused__)) | |
= __m & __memory_order_mask; | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acquire), false)) std::__glibcxx_assert_fail(); } while (false); | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acq_rel), false)) std::__glibcxx_assert_fail(); } while (false); | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_consume), false)) std::__glibcxx_assert_fail(); } while (false); | |
__atomic_store_n(&_M_p, __p, int(__m)); | |
} | |
inline __attribute__((__always_inline__)) __pointer_type | |
load(memory_order __m = memory_order_seq_cst) const noexcept | |
{ | |
memory_order __b __attribute__ ((__unused__)) | |
= __m & __memory_order_mask; | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_release), false)) std::__glibcxx_assert_fail(); } while (false); | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acq_rel), false)) std::__glibcxx_assert_fail(); } while (false); | |
return __atomic_load_n(&_M_p, int(__m)); | |
} | |
inline __attribute__((__always_inline__)) __pointer_type | |
load(memory_order __m = memory_order_seq_cst) const volatile noexcept | |
{ | |
memory_order __b __attribute__ ((__unused__)) | |
= __m & __memory_order_mask; | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_release), false)) std::__glibcxx_assert_fail(); } while (false); | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__b != memory_order_acq_rel), false)) std::__glibcxx_assert_fail(); } while (false); | |
return __atomic_load_n(&_M_p, int(__m)); | |
} | |
inline __attribute__((__always_inline__)) __pointer_type | |
exchange(__pointer_type __p, | |
memory_order __m = memory_order_seq_cst) noexcept | |
{ | |
return __atomic_exchange_n(&_M_p, __p, int(__m)); | |
} | |
inline __attribute__((__always_inline__)) __pointer_type | |
exchange(__pointer_type __p, | |
memory_order __m = memory_order_seq_cst) volatile noexcept | |
{ | |
return __atomic_exchange_n(&_M_p, __p, int(__m)); | |
} | |
inline __attribute__((__always_inline__)) bool | |
compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, | |
memory_order __m1, | |
memory_order __m2) noexcept | |
{ | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__is_valid_cmpexch_failure_order(__m2)), false)) std::__glibcxx_assert_fail(); } while (false); | |
return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 1, | |
int(__m1), int(__m2)); | |
} | |
inline __attribute__((__always_inline__)) bool | |
compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, | |
memory_order __m1, | |
memory_order __m2) volatile noexcept | |
{ | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__is_valid_cmpexch_failure_order(__m2)), false)) std::__glibcxx_assert_fail(); } while (false); | |
return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 1, | |
int(__m1), int(__m2)); | |
} | |
inline __attribute__((__always_inline__)) bool | |
compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, | |
memory_order __m1, | |
memory_order __m2) noexcept | |
{ | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__is_valid_cmpexch_failure_order(__m2)), false)) std::__glibcxx_assert_fail(); } while (false); | |
return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 0, | |
int(__m1), int(__m2)); | |
} | |
inline __attribute__((__always_inline__)) bool | |
compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, | |
memory_order __m1, | |
memory_order __m2) volatile noexcept | |
{ | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__is_valid_cmpexch_failure_order(__m2)), false)) std::__glibcxx_assert_fail(); } while (false); | |
return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 0, | |
int(__m1), int(__m2)); | |
} | |
# 931 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/atomic_base.h" 3 | |
inline __attribute__((__always_inline__)) __pointer_type | |
fetch_add(ptrdiff_t __d, | |
memory_order __m = memory_order_seq_cst) noexcept | |
{ return __atomic_fetch_add(&_M_p, _M_type_size(__d), int(__m)); } | |
inline __attribute__((__always_inline__)) __pointer_type | |
fetch_add(ptrdiff_t __d, | |
memory_order __m = memory_order_seq_cst) volatile noexcept | |
{ return __atomic_fetch_add(&_M_p, _M_type_size(__d), int(__m)); } | |
inline __attribute__((__always_inline__)) __pointer_type | |
fetch_sub(ptrdiff_t __d, | |
memory_order __m = memory_order_seq_cst) noexcept | |
{ return __atomic_fetch_sub(&_M_p, _M_type_size(__d), int(__m)); } | |
inline __attribute__((__always_inline__)) __pointer_type | |
fetch_sub(ptrdiff_t __d, | |
memory_order __m = memory_order_seq_cst) volatile noexcept | |
{ return __atomic_fetch_sub(&_M_p, _M_type_size(__d), int(__m)); } | |
}; | |
namespace __atomic_impl | |
{ | |
template<typename _Tp> | |
constexpr bool | |
__maybe_has_padding() | |
{ | |
return !__has_unique_object_representations(_Tp) | |
&& !is_same<_Tp, float>::value && !is_same<_Tp, double>::value; | |
} | |
template<typename _Tp> | |
inline __attribute__((__always_inline__)) _Tp* | |
__clear_padding(_Tp& __val) noexcept | |
{ | |
auto* __ptr = std::__addressof(__val); | |
if constexpr (__atomic_impl::__maybe_has_padding<_Tp>()) | |
__builtin_clear_padding(__ptr); | |
return __ptr; | |
} | |
template<typename _Tp> | |
using _Val = typename remove_volatile<_Tp>::type; | |
#pragma GCC diagnostic push | |
#pragma GCC diagnostic ignored "-Wc++17-extensions" | |
template<bool _AtomicRef = false, typename _Tp> | |
inline __attribute__((__always_inline__)) bool | |
__compare_exchange(_Tp& __val, _Val<_Tp>& __e, _Val<_Tp>& __i, | |
bool __is_weak, | |
memory_order __s, memory_order __f) noexcept | |
{ | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__is_valid_cmpexch_failure_order(__f)), false)) std::__glibcxx_assert_fail(); } while (false); | |
using _Vp = _Val<_Tp>; | |
_Tp* const __pval = std::__addressof(__val); | |
if constexpr (!__atomic_impl::__maybe_has_padding<_Vp>()) | |
{ | |
return __atomic_compare_exchange(__pval, std::__addressof(__e), | |
std::__addressof(__i), __is_weak, | |
int(__s), int(__f)); | |
} | |
else if constexpr (!_AtomicRef) | |
{ | |
_Vp* const __pi = __atomic_impl::__clear_padding(__i); | |
_Vp __exp = __e; | |
_Vp* const __pexp = __atomic_impl::__clear_padding(__exp); | |
if (__atomic_compare_exchange(__pval, __pexp, __pi, | |
__is_weak, int(__s), int(__f))) | |
return true; | |
__builtin_memcpy(std::__addressof(__e), __pexp, sizeof(_Vp)); | |
return false; | |
} | |
else | |
{ | |
_Vp* const __pi = __atomic_impl::__clear_padding(__i); | |
_Vp __exp = __e; | |
_Vp* const __pexp = __atomic_impl::__clear_padding(__exp); | |
# 1045 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/atomic_base.h" 3 | |
while (true) | |
{ | |
_Vp __orig = __exp; | |
if (__atomic_compare_exchange(__pval, __pexp, __pi, | |
__is_weak, int(__s), int(__f))) | |
return true; | |
_Vp __curr = __exp; | |
if (__builtin_memcmp(__atomic_impl::__clear_padding(__orig), | |
__atomic_impl::__clear_padding(__curr), | |
sizeof(_Vp))) | |
{ | |
__builtin_memcpy(std::__addressof(__e), __pexp, | |
sizeof(_Vp)); | |
return false; | |
} | |
} | |
} | |
} | |
#pragma GCC diagnostic pop | |
} | |
# 2065 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/atomic_base.h" 3 | |
} | |
# 51 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/atomic" 2 3 | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
template<typename _Tp> | |
struct atomic; | |
template<> | |
struct atomic<bool> | |
{ | |
using value_type = bool; | |
private: | |
__atomic_base<bool> _M_base; | |
public: | |
atomic() noexcept = default; | |
~atomic() noexcept = default; | |
atomic(const atomic&) = delete; | |
atomic& operator=(const atomic&) = delete; | |
atomic& operator=(const atomic&) volatile = delete; | |
constexpr atomic(bool __i) noexcept : _M_base(__i) { } | |
bool | |
operator=(bool __i) noexcept | |
{ return _M_base.operator=(__i); } | |
bool | |
operator=(bool __i) volatile noexcept | |
{ return _M_base.operator=(__i); } | |
operator bool() const noexcept | |
{ return _M_base.load(); } | |
operator bool() const volatile noexcept | |
{ return _M_base.load(); } | |
bool | |
is_lock_free() const noexcept { return _M_base.is_lock_free(); } | |
bool | |
is_lock_free() const volatile noexcept { return _M_base.is_lock_free(); } | |
static constexpr bool is_always_lock_free = 2 == 2; | |
void | |
store(bool __i, memory_order __m = memory_order_seq_cst) noexcept | |
{ _M_base.store(__i, __m); } | |
void | |
store(bool __i, memory_order __m = memory_order_seq_cst) volatile noexcept | |
{ _M_base.store(__i, __m); } | |
bool | |
load(memory_order __m = memory_order_seq_cst) const noexcept | |
{ return _M_base.load(__m); } | |
bool | |
load(memory_order __m = memory_order_seq_cst) const volatile noexcept | |
{ return _M_base.load(__m); } | |
bool | |
exchange(bool __i, memory_order __m = memory_order_seq_cst) noexcept | |
{ return _M_base.exchange(__i, __m); } | |
bool | |
exchange(bool __i, | |
memory_order __m = memory_order_seq_cst) volatile noexcept | |
{ return _M_base.exchange(__i, __m); } | |
bool | |
compare_exchange_weak(bool& __i1, bool __i2, memory_order __m1, | |
memory_order __m2) noexcept | |
{ return _M_base.compare_exchange_weak(__i1, __i2, __m1, __m2); } | |
bool | |
compare_exchange_weak(bool& __i1, bool __i2, memory_order __m1, | |
memory_order __m2) volatile noexcept | |
{ return _M_base.compare_exchange_weak(__i1, __i2, __m1, __m2); } | |
bool | |
compare_exchange_weak(bool& __i1, bool __i2, | |
memory_order __m = memory_order_seq_cst) noexcept | |
{ return _M_base.compare_exchange_weak(__i1, __i2, __m); } | |
bool | |
compare_exchange_weak(bool& __i1, bool __i2, | |
memory_order __m = memory_order_seq_cst) volatile noexcept | |
{ return _M_base.compare_exchange_weak(__i1, __i2, __m); } | |
bool | |
compare_exchange_strong(bool& __i1, bool __i2, memory_order __m1, | |
memory_order __m2) noexcept | |
{ return _M_base.compare_exchange_strong(__i1, __i2, __m1, __m2); } | |
bool | |
compare_exchange_strong(bool& __i1, bool __i2, memory_order __m1, | |
memory_order __m2) volatile noexcept | |
{ return _M_base.compare_exchange_strong(__i1, __i2, __m1, __m2); } | |
bool | |
compare_exchange_strong(bool& __i1, bool __i2, | |
memory_order __m = memory_order_seq_cst) noexcept | |
{ return _M_base.compare_exchange_strong(__i1, __i2, __m); } | |
bool | |
compare_exchange_strong(bool& __i1, bool __i2, | |
memory_order __m = memory_order_seq_cst) volatile noexcept | |
{ return _M_base.compare_exchange_strong(__i1, __i2, __m); } | |
# 187 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/atomic" 3 | |
}; | |
# 202 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/atomic" 3 | |
template<typename _Tp> | |
struct atomic | |
{ | |
using value_type = _Tp; | |
private: | |
static constexpr int _S_min_alignment | |
= (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 | |
? 0 : sizeof(_Tp); | |
static constexpr int _S_alignment | |
= _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); | |
alignas(_S_alignment) _Tp _M_i ; | |
static_assert(__is_trivially_copyable(_Tp), | |
"std::atomic requires a trivially copyable type"); | |
static_assert(sizeof(_Tp) > 0, | |
"Incomplete or zero-sized types are not supported"); | |
# 231 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/atomic" 3 | |
public: | |
atomic() = default; | |
~atomic() noexcept = default; | |
atomic(const atomic&) = delete; | |
atomic& operator=(const atomic&) = delete; | |
atomic& operator=(const atomic&) volatile = delete; | |
constexpr atomic(_Tp __i) noexcept : _M_i(__i) | |
{ | |
if constexpr (__atomic_impl::__maybe_has_padding<_Tp>()) | |
__builtin_clear_padding(std::__addressof(_M_i)); | |
} | |
operator _Tp() const noexcept | |
{ return load(); } | |
operator _Tp() const volatile noexcept | |
{ return load(); } | |
_Tp | |
operator=(_Tp __i) noexcept | |
{ store(__i); return __i; } | |
_Tp | |
operator=(_Tp __i) volatile noexcept | |
{ store(__i); return __i; } | |
bool | |
is_lock_free() const noexcept | |
{ | |
return __atomic_is_lock_free(sizeof(_M_i), | |
reinterpret_cast<void *>(-_S_alignment)); | |
} | |
bool | |
is_lock_free() const volatile noexcept | |
{ | |
return __atomic_is_lock_free(sizeof(_M_i), | |
reinterpret_cast<void *>(-_S_alignment)); | |
} | |
static constexpr bool is_always_lock_free | |
= __atomic_always_lock_free(sizeof(_M_i), 0); | |
void | |
store(_Tp __i, memory_order __m = memory_order_seq_cst) noexcept | |
{ | |
__atomic_store(std::__addressof(_M_i), | |
__atomic_impl::__clear_padding(__i), | |
int(__m)); | |
} | |
void | |
store(_Tp __i, memory_order __m = memory_order_seq_cst) volatile noexcept | |
{ | |
__atomic_store(std::__addressof(_M_i), | |
__atomic_impl::__clear_padding(__i), | |
int(__m)); | |
} | |
_Tp | |
load(memory_order __m = memory_order_seq_cst) const noexcept | |
{ | |
alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; | |
_Tp* __ptr = reinterpret_cast<_Tp*>(__buf); | |
__atomic_load(std::__addressof(_M_i), __ptr, int(__m)); | |
return *__ptr; | |
} | |
_Tp | |
load(memory_order __m = memory_order_seq_cst) const volatile noexcept | |
{ | |
alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; | |
_Tp* __ptr = reinterpret_cast<_Tp*>(__buf); | |
__atomic_load(std::__addressof(_M_i), __ptr, int(__m)); | |
return *__ptr; | |
} | |
_Tp | |
exchange(_Tp __i, memory_order __m = memory_order_seq_cst) noexcept | |
{ | |
alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; | |
_Tp* __ptr = reinterpret_cast<_Tp*>(__buf); | |
__atomic_exchange(std::__addressof(_M_i), | |
__atomic_impl::__clear_padding(__i), | |
__ptr, int(__m)); | |
return *__ptr; | |
} | |
_Tp | |
exchange(_Tp __i, | |
memory_order __m = memory_order_seq_cst) volatile noexcept | |
{ | |
alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; | |
_Tp* __ptr = reinterpret_cast<_Tp*>(__buf); | |
__atomic_exchange(std::__addressof(_M_i), | |
__atomic_impl::__clear_padding(__i), | |
__ptr, int(__m)); | |
return *__ptr; | |
} | |
bool | |
compare_exchange_weak(_Tp& __e, _Tp __i, memory_order __s, | |
memory_order __f) noexcept | |
{ | |
return __atomic_impl::__compare_exchange(_M_i, __e, __i, true, | |
__s, __f); | |
} | |
bool | |
compare_exchange_weak(_Tp& __e, _Tp __i, memory_order __s, | |
memory_order __f) volatile noexcept | |
{ | |
return __atomic_impl::__compare_exchange(_M_i, __e, __i, true, | |
__s, __f); | |
} | |
bool | |
compare_exchange_weak(_Tp& __e, _Tp __i, | |
memory_order __m = memory_order_seq_cst) noexcept | |
{ return compare_exchange_weak(__e, __i, __m, | |
__cmpexch_failure_order(__m)); } | |
bool | |
compare_exchange_weak(_Tp& __e, _Tp __i, | |
memory_order __m = memory_order_seq_cst) volatile noexcept | |
{ return compare_exchange_weak(__e, __i, __m, | |
__cmpexch_failure_order(__m)); } | |
bool | |
compare_exchange_strong(_Tp& __e, _Tp __i, memory_order __s, | |
memory_order __f) noexcept | |
{ | |
return __atomic_impl::__compare_exchange(_M_i, __e, __i, false, | |
__s, __f); | |
} | |
bool | |
compare_exchange_strong(_Tp& __e, _Tp __i, memory_order __s, | |
memory_order __f) volatile noexcept | |
{ | |
return __atomic_impl::__compare_exchange(_M_i, __e, __i, false, | |
__s, __f); | |
} | |
bool | |
compare_exchange_strong(_Tp& __e, _Tp __i, | |
memory_order __m = memory_order_seq_cst) noexcept | |
{ return compare_exchange_strong(__e, __i, __m, | |
__cmpexch_failure_order(__m)); } | |
bool | |
compare_exchange_strong(_Tp& __e, _Tp __i, | |
memory_order __m = memory_order_seq_cst) volatile noexcept | |
{ return compare_exchange_strong(__e, __i, __m, | |
__cmpexch_failure_order(__m)); } | |
# 413 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/atomic" 3 | |
}; | |
template<typename _Tp> | |
struct atomic<_Tp*> | |
{ | |
using value_type = _Tp*; | |
using difference_type = ptrdiff_t; | |
typedef _Tp* __pointer_type; | |
typedef __atomic_base<_Tp*> __base_type; | |
__base_type _M_b; | |
atomic() noexcept = default; | |
~atomic() noexcept = default; | |
atomic(const atomic&) = delete; | |
atomic& operator=(const atomic&) = delete; | |
atomic& operator=(const atomic&) volatile = delete; | |
constexpr atomic(__pointer_type __p) noexcept : _M_b(__p) { } | |
operator __pointer_type() const noexcept | |
{ return __pointer_type(_M_b); } | |
operator __pointer_type() const volatile noexcept | |
{ return __pointer_type(_M_b); } | |
__pointer_type | |
operator=(__pointer_type __p) noexcept | |
{ return _M_b.operator=(__p); } | |
__pointer_type | |
operator=(__pointer_type __p) volatile noexcept | |
{ return _M_b.operator=(__p); } | |
__pointer_type | |
operator++(int) noexcept | |
{ | |
static_assert( is_object<_Tp>::value, "pointer to object type" ); | |
return _M_b++; | |
} | |
__pointer_type | |
operator++(int) volatile noexcept | |
{ | |
static_assert( is_object<_Tp>::value, "pointer to object type" ); | |
return _M_b++; | |
} | |
__pointer_type | |
operator--(int) noexcept | |
{ | |
static_assert( is_object<_Tp>::value, "pointer to object type" ); | |
return _M_b--; | |
} | |
__pointer_type | |
operator--(int) volatile noexcept | |
{ | |
static_assert( is_object<_Tp>::value, "pointer to object type" ); | |
return _M_b--; | |
} | |
__pointer_type | |
operator++() noexcept | |
{ | |
static_assert( is_object<_Tp>::value, "pointer to object type" ); | |
return ++_M_b; | |
} | |
__pointer_type | |
operator++() volatile noexcept | |
{ | |
static_assert( is_object<_Tp>::value, "pointer to object type" ); | |
return ++_M_b; | |
} | |
__pointer_type | |
operator--() noexcept | |
{ | |
static_assert( is_object<_Tp>::value, "pointer to object type" ); | |
return --_M_b; | |
} | |
__pointer_type | |
operator--() volatile noexcept | |
{ | |
static_assert( is_object<_Tp>::value, "pointer to object type" ); | |
return --_M_b; | |
} | |
__pointer_type | |
operator+=(ptrdiff_t __d) noexcept | |
{ | |
static_assert( is_object<_Tp>::value, "pointer to object type" ); | |
return _M_b.operator+=(__d); | |
} | |
__pointer_type | |
operator+=(ptrdiff_t __d) volatile noexcept | |
{ | |
static_assert( is_object<_Tp>::value, "pointer to object type" ); | |
return _M_b.operator+=(__d); | |
} | |
__pointer_type | |
operator-=(ptrdiff_t __d) noexcept | |
{ | |
static_assert( is_object<_Tp>::value, "pointer to object type" ); | |
return _M_b.operator-=(__d); | |
} | |
__pointer_type | |
operator-=(ptrdiff_t __d) volatile noexcept | |
{ | |
static_assert( is_object<_Tp>::value, "pointer to object type" ); | |
return _M_b.operator-=(__d); | |
} | |
bool | |
is_lock_free() const noexcept | |
{ return _M_b.is_lock_free(); } | |
bool | |
is_lock_free() const volatile noexcept | |
{ return _M_b.is_lock_free(); } | |
static constexpr bool is_always_lock_free | |
= 2 == 2; | |
void | |
store(__pointer_type __p, | |
memory_order __m = memory_order_seq_cst) noexcept | |
{ return _M_b.store(__p, __m); } | |
void | |
store(__pointer_type __p, | |
memory_order __m = memory_order_seq_cst) volatile noexcept | |
{ return _M_b.store(__p, __m); } | |
__pointer_type | |
load(memory_order __m = memory_order_seq_cst) const noexcept | |
{ return _M_b.load(__m); } | |
__pointer_type | |
load(memory_order __m = memory_order_seq_cst) const volatile noexcept | |
{ return _M_b.load(__m); } | |
__pointer_type | |
exchange(__pointer_type __p, | |
memory_order __m = memory_order_seq_cst) noexcept | |
{ return _M_b.exchange(__p, __m); } | |
__pointer_type | |
exchange(__pointer_type __p, | |
memory_order __m = memory_order_seq_cst) volatile noexcept | |
{ return _M_b.exchange(__p, __m); } | |
bool | |
compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, | |
memory_order __m1, memory_order __m2) noexcept | |
{ return _M_b.compare_exchange_weak(__p1, __p2, __m1, __m2); } | |
bool | |
compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, | |
memory_order __m1, | |
memory_order __m2) volatile noexcept | |
{ return _M_b.compare_exchange_weak(__p1, __p2, __m1, __m2); } | |
bool | |
compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, | |
memory_order __m = memory_order_seq_cst) noexcept | |
{ | |
return compare_exchange_weak(__p1, __p2, __m, | |
__cmpexch_failure_order(__m)); | |
} | |
bool | |
compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, | |
memory_order __m = memory_order_seq_cst) volatile noexcept | |
{ | |
return compare_exchange_weak(__p1, __p2, __m, | |
__cmpexch_failure_order(__m)); | |
} | |
bool | |
compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, | |
memory_order __m1, memory_order __m2) noexcept | |
{ return _M_b.compare_exchange_strong(__p1, __p2, __m1, __m2); } | |
bool | |
compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, | |
memory_order __m1, | |
memory_order __m2) volatile noexcept | |
{ return _M_b.compare_exchange_strong(__p1, __p2, __m1, __m2); } | |
bool | |
compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, | |
memory_order __m = memory_order_seq_cst) noexcept | |
{ | |
return _M_b.compare_exchange_strong(__p1, __p2, __m, | |
__cmpexch_failure_order(__m)); | |
} | |
bool | |
compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, | |
memory_order __m = memory_order_seq_cst) volatile noexcept | |
{ | |
return _M_b.compare_exchange_strong(__p1, __p2, __m, | |
__cmpexch_failure_order(__m)); | |
} | |
# 668 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/atomic" 3 | |
__pointer_type | |
fetch_add(ptrdiff_t __d, | |
memory_order __m = memory_order_seq_cst) noexcept | |
{ | |
static_assert( is_object<_Tp>::value, "pointer to object type" ); | |
return _M_b.fetch_add(__d, __m); | |
} | |
__pointer_type | |
fetch_add(ptrdiff_t __d, | |
memory_order __m = memory_order_seq_cst) volatile noexcept | |
{ | |
static_assert( is_object<_Tp>::value, "pointer to object type" ); | |
return _M_b.fetch_add(__d, __m); | |
} | |
__pointer_type | |
fetch_sub(ptrdiff_t __d, | |
memory_order __m = memory_order_seq_cst) noexcept | |
{ | |
static_assert( is_object<_Tp>::value, "pointer to object type" ); | |
return _M_b.fetch_sub(__d, __m); | |
} | |
__pointer_type | |
fetch_sub(ptrdiff_t __d, | |
memory_order __m = memory_order_seq_cst) volatile noexcept | |
{ | |
static_assert( is_object<_Tp>::value, "pointer to object type" ); | |
return _M_b.fetch_sub(__d, __m); | |
} | |
}; | |
template<> | |
struct atomic<char> : __atomic_base<char> | |
{ | |
typedef char __integral_type; | |
typedef __atomic_base<char> __base_type; | |
atomic() noexcept = default; | |
~atomic() noexcept = default; | |
atomic(const atomic&) = delete; | |
atomic& operator=(const atomic&) = delete; | |
atomic& operator=(const atomic&) volatile = delete; | |
constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } | |
using __base_type::operator __integral_type; | |
using __base_type::operator=; | |
static constexpr bool is_always_lock_free = 2 == 2; | |
}; | |
template<> | |
struct atomic<signed char> : __atomic_base<signed char> | |
{ | |
typedef signed char __integral_type; | |
typedef __atomic_base<signed char> __base_type; | |
atomic() noexcept= default; | |
~atomic() noexcept = default; | |
atomic(const atomic&) = delete; | |
atomic& operator=(const atomic&) = delete; | |
atomic& operator=(const atomic&) volatile = delete; | |
constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } | |
using __base_type::operator __integral_type; | |
using __base_type::operator=; | |
static constexpr bool is_always_lock_free = 2 == 2; | |
}; | |
template<> | |
struct atomic<unsigned char> : __atomic_base<unsigned char> | |
{ | |
typedef unsigned char __integral_type; | |
typedef __atomic_base<unsigned char> __base_type; | |
atomic() noexcept= default; | |
~atomic() noexcept = default; | |
atomic(const atomic&) = delete; | |
atomic& operator=(const atomic&) = delete; | |
atomic& operator=(const atomic&) volatile = delete; | |
constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } | |
using __base_type::operator __integral_type; | |
using __base_type::operator=; | |
static constexpr bool is_always_lock_free = 2 == 2; | |
}; | |
template<> | |
struct atomic<short> : __atomic_base<short> | |
{ | |
typedef short __integral_type; | |
typedef __atomic_base<short> __base_type; | |
atomic() noexcept = default; | |
~atomic() noexcept = default; | |
atomic(const atomic&) = delete; | |
atomic& operator=(const atomic&) = delete; | |
atomic& operator=(const atomic&) volatile = delete; | |
constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } | |
using __base_type::operator __integral_type; | |
using __base_type::operator=; | |
static constexpr bool is_always_lock_free = 2 == 2; | |
}; | |
template<> | |
struct atomic<unsigned short> : __atomic_base<unsigned short> | |
{ | |
typedef unsigned short __integral_type; | |
typedef __atomic_base<unsigned short> __base_type; | |
atomic() noexcept = default; | |
~atomic() noexcept = default; | |
atomic(const atomic&) = delete; | |
atomic& operator=(const atomic&) = delete; | |
atomic& operator=(const atomic&) volatile = delete; | |
constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } | |
using __base_type::operator __integral_type; | |
using __base_type::operator=; | |
static constexpr bool is_always_lock_free = 2 == 2; | |
}; | |
template<> | |
struct atomic<int> : __atomic_base<int> | |
{ | |
typedef int __integral_type; | |
typedef __atomic_base<int> __base_type; | |
atomic() noexcept = default; | |
~atomic() noexcept = default; | |
atomic(const atomic&) = delete; | |
atomic& operator=(const atomic&) = delete; | |
atomic& operator=(const atomic&) volatile = delete; | |
constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } | |
using __base_type::operator __integral_type; | |
using __base_type::operator=; | |
static constexpr bool is_always_lock_free = 2 == 2; | |
}; | |
template<> | |
struct atomic<unsigned int> : __atomic_base<unsigned int> | |
{ | |
typedef unsigned int __integral_type; | |
typedef __atomic_base<unsigned int> __base_type; | |
atomic() noexcept = default; | |
~atomic() noexcept = default; | |
atomic(const atomic&) = delete; | |
atomic& operator=(const atomic&) = delete; | |
atomic& operator=(const atomic&) volatile = delete; | |
constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } | |
using __base_type::operator __integral_type; | |
using __base_type::operator=; | |
static constexpr bool is_always_lock_free = 2 == 2; | |
}; | |
template<> | |
struct atomic<long> : __atomic_base<long> | |
{ | |
typedef long __integral_type; | |
typedef __atomic_base<long> __base_type; | |
atomic() noexcept = default; | |
~atomic() noexcept = default; | |
atomic(const atomic&) = delete; | |
atomic& operator=(const atomic&) = delete; | |
atomic& operator=(const atomic&) volatile = delete; | |
constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } | |
using __base_type::operator __integral_type; | |
using __base_type::operator=; | |
static constexpr bool is_always_lock_free = 2 == 2; | |
}; | |
template<> | |
struct atomic<unsigned long> : __atomic_base<unsigned long> | |
{ | |
typedef unsigned long __integral_type; | |
typedef __atomic_base<unsigned long> __base_type; | |
atomic() noexcept = default; | |
~atomic() noexcept = default; | |
atomic(const atomic&) = delete; | |
atomic& operator=(const atomic&) = delete; | |
atomic& operator=(const atomic&) volatile = delete; | |
constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } | |
using __base_type::operator __integral_type; | |
using __base_type::operator=; | |
static constexpr bool is_always_lock_free = 2 == 2; | |
}; | |
template<> | |
struct atomic<long long> : __atomic_base<long long> | |
{ | |
typedef long long __integral_type; | |
typedef __atomic_base<long long> __base_type; | |
atomic() noexcept = default; | |
~atomic() noexcept = default; | |
atomic(const atomic&) = delete; | |
atomic& operator=(const atomic&) = delete; | |
atomic& operator=(const atomic&) volatile = delete; | |
constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } | |
using __base_type::operator __integral_type; | |
using __base_type::operator=; | |
static constexpr bool is_always_lock_free = 2 == 2; | |
}; | |
template<> | |
struct atomic<unsigned long long> : __atomic_base<unsigned long long> | |
{ | |
typedef unsigned long long __integral_type; | |
typedef __atomic_base<unsigned long long> __base_type; | |
atomic() noexcept = default; | |
~atomic() noexcept = default; | |
atomic(const atomic&) = delete; | |
atomic& operator=(const atomic&) = delete; | |
atomic& operator=(const atomic&) volatile = delete; | |
constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } | |
using __base_type::operator __integral_type; | |
using __base_type::operator=; | |
static constexpr bool is_always_lock_free = 2 == 2; | |
}; | |
template<> | |
struct atomic<wchar_t> : __atomic_base<wchar_t> | |
{ | |
typedef wchar_t __integral_type; | |
typedef __atomic_base<wchar_t> __base_type; | |
atomic() noexcept = default; | |
~atomic() noexcept = default; | |
atomic(const atomic&) = delete; | |
atomic& operator=(const atomic&) = delete; | |
atomic& operator=(const atomic&) volatile = delete; | |
constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } | |
using __base_type::operator __integral_type; | |
using __base_type::operator=; | |
static constexpr bool is_always_lock_free = 2 == 2; | |
}; | |
# 1013 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/atomic" 3 | |
template<> | |
struct atomic<char16_t> : __atomic_base<char16_t> | |
{ | |
typedef char16_t __integral_type; | |
typedef __atomic_base<char16_t> __base_type; | |
atomic() noexcept = default; | |
~atomic() noexcept = default; | |
atomic(const atomic&) = delete; | |
atomic& operator=(const atomic&) = delete; | |
atomic& operator=(const atomic&) volatile = delete; | |
constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } | |
using __base_type::operator __integral_type; | |
using __base_type::operator=; | |
static constexpr bool is_always_lock_free | |
= 2 == 2; | |
}; | |
template<> | |
struct atomic<char32_t> : __atomic_base<char32_t> | |
{ | |
typedef char32_t __integral_type; | |
typedef __atomic_base<char32_t> __base_type; | |
atomic() noexcept = default; | |
~atomic() noexcept = default; | |
atomic(const atomic&) = delete; | |
atomic& operator=(const atomic&) = delete; | |
atomic& operator=(const atomic&) volatile = delete; | |
constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } | |
using __base_type::operator __integral_type; | |
using __base_type::operator=; | |
static constexpr bool is_always_lock_free | |
= 2 == 2; | |
}; | |
typedef atomic<bool> atomic_bool; | |
typedef atomic<char> atomic_char; | |
typedef atomic<signed char> atomic_schar; | |
typedef atomic<unsigned char> atomic_uchar; | |
typedef atomic<short> atomic_short; | |
typedef atomic<unsigned short> atomic_ushort; | |
typedef atomic<int> atomic_int; | |
typedef atomic<unsigned int> atomic_uint; | |
typedef atomic<long> atomic_long; | |
typedef atomic<unsigned long> atomic_ulong; | |
typedef atomic<long long> atomic_llong; | |
typedef atomic<unsigned long long> atomic_ullong; | |
typedef atomic<wchar_t> atomic_wchar_t; | |
typedef atomic<char16_t> atomic_char16_t; | |
typedef atomic<char32_t> atomic_char32_t; | |
typedef atomic<int8_t> atomic_int8_t; | |
typedef atomic<uint8_t> atomic_uint8_t; | |
typedef atomic<int16_t> atomic_int16_t; | |
typedef atomic<uint16_t> atomic_uint16_t; | |
typedef atomic<int32_t> atomic_int32_t; | |
typedef atomic<uint32_t> atomic_uint32_t; | |
typedef atomic<int64_t> atomic_int64_t; | |
typedef atomic<uint64_t> atomic_uint64_t; | |
typedef atomic<int_least8_t> atomic_int_least8_t; | |
typedef atomic<uint_least8_t> atomic_uint_least8_t; | |
typedef atomic<int_least16_t> atomic_int_least16_t; | |
typedef atomic<uint_least16_t> atomic_uint_least16_t; | |
typedef atomic<int_least32_t> atomic_int_least32_t; | |
typedef atomic<uint_least32_t> atomic_uint_least32_t; | |
typedef atomic<int_least64_t> atomic_int_least64_t; | |
typedef atomic<uint_least64_t> atomic_uint_least64_t; | |
typedef atomic<int_fast8_t> atomic_int_fast8_t; | |
typedef atomic<uint_fast8_t> atomic_uint_fast8_t; | |
typedef atomic<int_fast16_t> atomic_int_fast16_t; | |
typedef atomic<uint_fast16_t> atomic_uint_fast16_t; | |
typedef atomic<int_fast32_t> atomic_int_fast32_t; | |
typedef atomic<uint_fast32_t> atomic_uint_fast32_t; | |
typedef atomic<int_fast64_t> atomic_int_fast64_t; | |
typedef atomic<uint_fast64_t> atomic_uint_fast64_t; | |
typedef atomic<intptr_t> atomic_intptr_t; | |
typedef atomic<uintptr_t> atomic_uintptr_t; | |
typedef atomic<size_t> atomic_size_t; | |
typedef atomic<ptrdiff_t> atomic_ptrdiff_t; | |
typedef atomic<intmax_t> atomic_intmax_t; | |
typedef atomic<uintmax_t> atomic_uintmax_t; | |
inline bool | |
atomic_flag_test_and_set_explicit(atomic_flag* __a, | |
memory_order __m) noexcept | |
{ return __a->test_and_set(__m); } | |
inline bool | |
atomic_flag_test_and_set_explicit(volatile atomic_flag* __a, | |
memory_order __m) noexcept | |
{ return __a->test_and_set(__m); } | |
# 1239 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/atomic" 3 | |
inline void | |
atomic_flag_clear_explicit(atomic_flag* __a, memory_order __m) noexcept | |
{ __a->clear(__m); } | |
inline void | |
atomic_flag_clear_explicit(volatile atomic_flag* __a, | |
memory_order __m) noexcept | |
{ __a->clear(__m); } | |
inline bool | |
atomic_flag_test_and_set(atomic_flag* __a) noexcept | |
{ return atomic_flag_test_and_set_explicit(__a, memory_order_seq_cst); } | |
inline bool | |
atomic_flag_test_and_set(volatile atomic_flag* __a) noexcept | |
{ return atomic_flag_test_and_set_explicit(__a, memory_order_seq_cst); } | |
inline void | |
atomic_flag_clear(atomic_flag* __a) noexcept | |
{ atomic_flag_clear_explicit(__a, memory_order_seq_cst); } | |
inline void | |
atomic_flag_clear(volatile atomic_flag* __a) noexcept | |
{ atomic_flag_clear_explicit(__a, memory_order_seq_cst); } | |
# 1286 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/atomic" 3 | |
template<typename _Tp> | |
using __atomic_val_t = __type_identity_t<_Tp>; | |
template<typename _Tp> | |
using __atomic_diff_t = typename atomic<_Tp>::difference_type; | |
template<typename _ITp> | |
inline bool | |
atomic_is_lock_free(const atomic<_ITp>* __a) noexcept | |
{ return __a->is_lock_free(); } | |
template<typename _ITp> | |
inline bool | |
atomic_is_lock_free(const volatile atomic<_ITp>* __a) noexcept | |
{ return __a->is_lock_free(); } | |
template<typename _ITp> | |
inline void | |
atomic_init(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept | |
{ __a->store(__i, memory_order_relaxed); } | |
template<typename _ITp> | |
inline void | |
atomic_init(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept | |
{ __a->store(__i, memory_order_relaxed); } | |
template<typename _ITp> | |
inline void | |
atomic_store_explicit(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i, | |
memory_order __m) noexcept | |
{ __a->store(__i, __m); } | |
template<typename _ITp> | |
inline void | |
atomic_store_explicit(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i, | |
memory_order __m) noexcept | |
{ __a->store(__i, __m); } | |
template<typename _ITp> | |
inline _ITp | |
atomic_load_explicit(const atomic<_ITp>* __a, memory_order __m) noexcept | |
{ return __a->load(__m); } | |
template<typename _ITp> | |
inline _ITp | |
atomic_load_explicit(const volatile atomic<_ITp>* __a, | |
memory_order __m) noexcept | |
{ return __a->load(__m); } | |
template<typename _ITp> | |
inline _ITp | |
atomic_exchange_explicit(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i, | |
memory_order __m) noexcept | |
{ return __a->exchange(__i, __m); } | |
template<typename _ITp> | |
inline _ITp | |
atomic_exchange_explicit(volatile atomic<_ITp>* __a, | |
__atomic_val_t<_ITp> __i, | |
memory_order __m) noexcept | |
{ return __a->exchange(__i, __m); } | |
template<typename _ITp> | |
inline bool | |
atomic_compare_exchange_weak_explicit(atomic<_ITp>* __a, | |
__atomic_val_t<_ITp>* __i1, | |
__atomic_val_t<_ITp> __i2, | |
memory_order __m1, | |
memory_order __m2) noexcept | |
{ return __a->compare_exchange_weak(*__i1, __i2, __m1, __m2); } | |
template<typename _ITp> | |
inline bool | |
atomic_compare_exchange_weak_explicit(volatile atomic<_ITp>* __a, | |
__atomic_val_t<_ITp>* __i1, | |
__atomic_val_t<_ITp> __i2, | |
memory_order __m1, | |
memory_order __m2) noexcept | |
{ return __a->compare_exchange_weak(*__i1, __i2, __m1, __m2); } | |
template<typename _ITp> | |
inline bool | |
atomic_compare_exchange_strong_explicit(atomic<_ITp>* __a, | |
__atomic_val_t<_ITp>* __i1, | |
__atomic_val_t<_ITp> __i2, | |
memory_order __m1, | |
memory_order __m2) noexcept | |
{ return __a->compare_exchange_strong(*__i1, __i2, __m1, __m2); } | |
template<typename _ITp> | |
inline bool | |
atomic_compare_exchange_strong_explicit(volatile atomic<_ITp>* __a, | |
__atomic_val_t<_ITp>* __i1, | |
__atomic_val_t<_ITp> __i2, | |
memory_order __m1, | |
memory_order __m2) noexcept | |
{ return __a->compare_exchange_strong(*__i1, __i2, __m1, __m2); } | |
template<typename _ITp> | |
inline void | |
atomic_store(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept | |
{ atomic_store_explicit(__a, __i, memory_order_seq_cst); } | |
template<typename _ITp> | |
inline void | |
atomic_store(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept | |
{ atomic_store_explicit(__a, __i, memory_order_seq_cst); } | |
template<typename _ITp> | |
inline _ITp | |
atomic_load(const atomic<_ITp>* __a) noexcept | |
{ return atomic_load_explicit(__a, memory_order_seq_cst); } | |
template<typename _ITp> | |
inline _ITp | |
atomic_load(const volatile atomic<_ITp>* __a) noexcept | |
{ return atomic_load_explicit(__a, memory_order_seq_cst); } | |
template<typename _ITp> | |
inline _ITp | |
atomic_exchange(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept | |
{ return atomic_exchange_explicit(__a, __i, memory_order_seq_cst); } | |
template<typename _ITp> | |
inline _ITp | |
atomic_exchange(volatile atomic<_ITp>* __a, | |
__atomic_val_t<_ITp> __i) noexcept | |
{ return atomic_exchange_explicit(__a, __i, memory_order_seq_cst); } | |
template<typename _ITp> | |
inline bool | |
atomic_compare_exchange_weak(atomic<_ITp>* __a, | |
__atomic_val_t<_ITp>* __i1, | |
__atomic_val_t<_ITp> __i2) noexcept | |
{ | |
return atomic_compare_exchange_weak_explicit(__a, __i1, __i2, | |
memory_order_seq_cst, | |
memory_order_seq_cst); | |
} | |
template<typename _ITp> | |
inline bool | |
atomic_compare_exchange_weak(volatile atomic<_ITp>* __a, | |
__atomic_val_t<_ITp>* __i1, | |
__atomic_val_t<_ITp> __i2) noexcept | |
{ | |
return atomic_compare_exchange_weak_explicit(__a, __i1, __i2, | |
memory_order_seq_cst, | |
memory_order_seq_cst); | |
} | |
template<typename _ITp> | |
inline bool | |
atomic_compare_exchange_strong(atomic<_ITp>* __a, | |
__atomic_val_t<_ITp>* __i1, | |
__atomic_val_t<_ITp> __i2) noexcept | |
{ | |
return atomic_compare_exchange_strong_explicit(__a, __i1, __i2, | |
memory_order_seq_cst, | |
memory_order_seq_cst); | |
} | |
template<typename _ITp> | |
inline bool | |
atomic_compare_exchange_strong(volatile atomic<_ITp>* __a, | |
__atomic_val_t<_ITp>* __i1, | |
__atomic_val_t<_ITp> __i2) noexcept | |
{ | |
return atomic_compare_exchange_strong_explicit(__a, __i1, __i2, | |
memory_order_seq_cst, | |
memory_order_seq_cst); | |
} | |
# 1492 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/atomic" 3 | |
template<typename _ITp> | |
inline _ITp | |
atomic_fetch_add_explicit(atomic<_ITp>* __a, | |
__atomic_diff_t<_ITp> __i, | |
memory_order __m) noexcept | |
{ return __a->fetch_add(__i, __m); } | |
template<typename _ITp> | |
inline _ITp | |
atomic_fetch_add_explicit(volatile atomic<_ITp>* __a, | |
__atomic_diff_t<_ITp> __i, | |
memory_order __m) noexcept | |
{ return __a->fetch_add(__i, __m); } | |
template<typename _ITp> | |
inline _ITp | |
atomic_fetch_sub_explicit(atomic<_ITp>* __a, | |
__atomic_diff_t<_ITp> __i, | |
memory_order __m) noexcept | |
{ return __a->fetch_sub(__i, __m); } | |
template<typename _ITp> | |
inline _ITp | |
atomic_fetch_sub_explicit(volatile atomic<_ITp>* __a, | |
__atomic_diff_t<_ITp> __i, | |
memory_order __m) noexcept | |
{ return __a->fetch_sub(__i, __m); } | |
template<typename _ITp> | |
inline _ITp | |
atomic_fetch_and_explicit(__atomic_base<_ITp>* __a, | |
__atomic_val_t<_ITp> __i, | |
memory_order __m) noexcept | |
{ return __a->fetch_and(__i, __m); } | |
template<typename _ITp> | |
inline _ITp | |
atomic_fetch_and_explicit(volatile __atomic_base<_ITp>* __a, | |
__atomic_val_t<_ITp> __i, | |
memory_order __m) noexcept | |
{ return __a->fetch_and(__i, __m); } | |
template<typename _ITp> | |
inline _ITp | |
atomic_fetch_or_explicit(__atomic_base<_ITp>* __a, | |
__atomic_val_t<_ITp> __i, | |
memory_order __m) noexcept | |
{ return __a->fetch_or(__i, __m); } | |
template<typename _ITp> | |
inline _ITp | |
atomic_fetch_or_explicit(volatile __atomic_base<_ITp>* __a, | |
__atomic_val_t<_ITp> __i, | |
memory_order __m) noexcept | |
{ return __a->fetch_or(__i, __m); } | |
template<typename _ITp> | |
inline _ITp | |
atomic_fetch_xor_explicit(__atomic_base<_ITp>* __a, | |
__atomic_val_t<_ITp> __i, | |
memory_order __m) noexcept | |
{ return __a->fetch_xor(__i, __m); } | |
template<typename _ITp> | |
inline _ITp | |
atomic_fetch_xor_explicit(volatile __atomic_base<_ITp>* __a, | |
__atomic_val_t<_ITp> __i, | |
memory_order __m) noexcept | |
{ return __a->fetch_xor(__i, __m); } | |
template<typename _ITp> | |
inline _ITp | |
atomic_fetch_add(atomic<_ITp>* __a, | |
__atomic_diff_t<_ITp> __i) noexcept | |
{ return atomic_fetch_add_explicit(__a, __i, memory_order_seq_cst); } | |
template<typename _ITp> | |
inline _ITp | |
atomic_fetch_add(volatile atomic<_ITp>* __a, | |
__atomic_diff_t<_ITp> __i) noexcept | |
{ return atomic_fetch_add_explicit(__a, __i, memory_order_seq_cst); } | |
template<typename _ITp> | |
inline _ITp | |
atomic_fetch_sub(atomic<_ITp>* __a, | |
__atomic_diff_t<_ITp> __i) noexcept | |
{ return atomic_fetch_sub_explicit(__a, __i, memory_order_seq_cst); } | |
template<typename _ITp> | |
inline _ITp | |
atomic_fetch_sub(volatile atomic<_ITp>* __a, | |
__atomic_diff_t<_ITp> __i) noexcept | |
{ return atomic_fetch_sub_explicit(__a, __i, memory_order_seq_cst); } | |
template<typename _ITp> | |
inline _ITp | |
atomic_fetch_and(__atomic_base<_ITp>* __a, | |
__atomic_val_t<_ITp> __i) noexcept | |
{ return atomic_fetch_and_explicit(__a, __i, memory_order_seq_cst); } | |
template<typename _ITp> | |
inline _ITp | |
atomic_fetch_and(volatile __atomic_base<_ITp>* __a, | |
__atomic_val_t<_ITp> __i) noexcept | |
{ return atomic_fetch_and_explicit(__a, __i, memory_order_seq_cst); } | |
template<typename _ITp> | |
inline _ITp | |
atomic_fetch_or(__atomic_base<_ITp>* __a, | |
__atomic_val_t<_ITp> __i) noexcept | |
{ return atomic_fetch_or_explicit(__a, __i, memory_order_seq_cst); } | |
template<typename _ITp> | |
inline _ITp | |
atomic_fetch_or(volatile __atomic_base<_ITp>* __a, | |
__atomic_val_t<_ITp> __i) noexcept | |
{ return atomic_fetch_or_explicit(__a, __i, memory_order_seq_cst); } | |
template<typename _ITp> | |
inline _ITp | |
atomic_fetch_xor(__atomic_base<_ITp>* __a, | |
__atomic_val_t<_ITp> __i) noexcept | |
{ return atomic_fetch_xor_explicit(__a, __i, memory_order_seq_cst); } | |
template<typename _ITp> | |
inline _ITp | |
atomic_fetch_xor(volatile __atomic_base<_ITp>* __a, | |
__atomic_val_t<_ITp> __i) noexcept | |
{ return atomic_fetch_xor_explicit(__a, __i, memory_order_seq_cst); } | |
# 1793 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/atomic" 3 | |
} | |
# 11 "/usr/include/qt6/QtCore/qatomic_cxx11.h" 2 3 4 | |
# 38 "/usr/include/qt6/QtCore/qatomic_cxx11.h" 3 4 | |
template <int N> struct QAtomicTraits | |
{ static inline bool isLockFree(); }; | |
# 52 "/usr/include/qt6/QtCore/qatomic_cxx11.h" 3 4 | |
template <> inline bool QAtomicTraits<4>::isLockFree() | |
{ return true; } | |
# 97 "/usr/include/qt6/QtCore/qatomic_cxx11.h" 3 4 | |
template<> struct QAtomicOpsSupport<1> { enum { IsSupported = 1 }; }; | |
template <> inline bool QAtomicTraits<1>::isLockFree() | |
{ return true; } | |
# 125 "/usr/include/qt6/QtCore/qatomic_cxx11.h" 3 4 | |
template<> struct QAtomicOpsSupport<2> { enum { IsSupported = 1 }; }; | |
template <> inline bool QAtomicTraits<2>::isLockFree() | |
{ return false; } | |
# 154 "/usr/include/qt6/QtCore/qatomic_cxx11.h" 3 4 | |
template<> struct QAtomicOpsSupport<8> { enum { IsSupported = 1 }; }; | |
template <> inline bool QAtomicTraits<8>::isLockFree() | |
{ return true; } | |
# 183 "/usr/include/qt6/QtCore/qatomic_cxx11.h" 3 4 | |
template <typename X> struct QAtomicOps | |
{ | |
typedef std::atomic<X> Type; | |
template <typename T> static inline | |
T load(const std::atomic<T> &_q_value) noexcept | |
{ | |
return _q_value.load(std::memory_order_relaxed); | |
} | |
template <typename T> static inline | |
T load(const volatile std::atomic<T> &_q_value) noexcept | |
{ | |
return _q_value.load(std::memory_order_relaxed); | |
} | |
template <typename T> static inline | |
T loadRelaxed(const std::atomic<T> &_q_value) noexcept | |
{ | |
return _q_value.load(std::memory_order_relaxed); | |
} | |
template <typename T> static inline | |
T loadRelaxed(const volatile std::atomic<T> &_q_value) noexcept | |
{ | |
return _q_value.load(std::memory_order_relaxed); | |
} | |
template <typename T> static inline | |
T loadAcquire(const std::atomic<T> &_q_value) noexcept | |
{ | |
return _q_value.load(std::memory_order_acquire); | |
} | |
template <typename T> static inline | |
T loadAcquire(const volatile std::atomic<T> &_q_value) noexcept | |
{ | |
return _q_value.load(std::memory_order_acquire); | |
} | |
template <typename T> static inline | |
void store(std::atomic<T> &_q_value, T newValue) noexcept | |
{ | |
_q_value.store(newValue, std::memory_order_relaxed); | |
} | |
template <typename T> static inline | |
void storeRelaxed(std::atomic<T> &_q_value, T newValue) noexcept | |
{ | |
_q_value.store(newValue, std::memory_order_relaxed); | |
} | |
template <typename T> static inline | |
void storeRelease(std::atomic<T> &_q_value, T newValue) noexcept | |
{ | |
_q_value.store(newValue, std::memory_order_release); | |
} | |
static inline bool isReferenceCountingNative() noexcept { return isTestAndSetNative(); } | |
static inline constexpr bool isReferenceCountingWaitFree() noexcept { return false; } | |
template <typename T> | |
static inline bool ref(std::atomic<T> &_q_value) | |
{ | |
# 259 "/usr/include/qt6/QtCore/qatomic_cxx11.h" 3 4 | |
return _q_value.fetch_add(1, std::memory_order_acq_rel) != T(-1); | |
} | |
template <typename T> | |
static inline bool deref(std::atomic<T> &_q_value) noexcept | |
{ | |
return _q_value.fetch_sub(1, std::memory_order_acq_rel) != T(1); | |
} | |
static inline bool isTestAndSetNative() noexcept | |
{ return QAtomicTraits<sizeof(X)>::isLockFree(); } | |
static inline constexpr bool isTestAndSetWaitFree() noexcept { return false; } | |
template <typename T> | |
static bool testAndSetRelaxed(std::atomic<T> &_q_value, T expectedValue, T newValue, T *currentValue = nullptr) noexcept | |
{ | |
bool tmp = _q_value.compare_exchange_strong(expectedValue, newValue, std::memory_order_relaxed, std::memory_order_relaxed); | |
if (currentValue) | |
*currentValue = expectedValue; | |
return tmp; | |
} | |
template <typename T> | |
static bool testAndSetAcquire(std::atomic<T> &_q_value, T expectedValue, T newValue, T *currentValue = nullptr) noexcept | |
{ | |
bool tmp = _q_value.compare_exchange_strong(expectedValue, newValue, std::memory_order_acquire, std::memory_order_acquire); | |
if (currentValue) | |
*currentValue = expectedValue; | |
return tmp; | |
} | |
template <typename T> | |
static bool testAndSetRelease(std::atomic<T> &_q_value, T expectedValue, T newValue, T *currentValue = nullptr) noexcept | |
{ | |
bool tmp = _q_value.compare_exchange_strong(expectedValue, newValue, std::memory_order_release, std::memory_order_relaxed); | |
if (currentValue) | |
*currentValue = expectedValue; | |
return tmp; | |
} | |
template <typename T> | |
static bool testAndSetOrdered(std::atomic<T> &_q_value, T expectedValue, T newValue, T *currentValue = nullptr) noexcept | |
{ | |
bool tmp = _q_value.compare_exchange_strong(expectedValue, newValue, std::memory_order_acq_rel, std::memory_order_acquire); | |
if (currentValue) | |
*currentValue = expectedValue; | |
return tmp; | |
} | |
static inline bool isFetchAndStoreNative() noexcept { return isTestAndSetNative(); } | |
static inline constexpr bool isFetchAndStoreWaitFree() noexcept { return false; } | |
template <typename T> | |
static T fetchAndStoreRelaxed(std::atomic<T> &_q_value, T newValue) noexcept | |
{ | |
return _q_value.exchange(newValue, std::memory_order_relaxed); | |
} | |
template <typename T> | |
static T fetchAndStoreAcquire(std::atomic<T> &_q_value, T newValue) noexcept | |
{ | |
return _q_value.exchange(newValue, std::memory_order_acquire); | |
} | |
template <typename T> | |
static T fetchAndStoreRelease(std::atomic<T> &_q_value, T newValue) noexcept | |
{ | |
return _q_value.exchange(newValue, std::memory_order_release); | |
} | |
template <typename T> | |
static T fetchAndStoreOrdered(std::atomic<T> &_q_value, T newValue) noexcept | |
{ | |
return _q_value.exchange(newValue, std::memory_order_acq_rel); | |
} | |
static inline bool isFetchAndAddNative() noexcept { return isTestAndSetNative(); } | |
static inline constexpr bool isFetchAndAddWaitFree() noexcept { return false; } | |
template <typename T> static inline | |
T fetchAndAddRelaxed(std::atomic<T> &_q_value, typename QAtomicAdditiveType<T>::AdditiveT valueToAdd) noexcept | |
{ | |
return _q_value.fetch_add(valueToAdd, std::memory_order_relaxed); | |
} | |
template <typename T> static inline | |
T fetchAndAddAcquire(std::atomic<T> &_q_value, typename QAtomicAdditiveType<T>::AdditiveT valueToAdd) noexcept | |
{ | |
return _q_value.fetch_add(valueToAdd, std::memory_order_acquire); | |
} | |
template <typename T> static inline | |
T fetchAndAddRelease(std::atomic<T> &_q_value, typename QAtomicAdditiveType<T>::AdditiveT valueToAdd) noexcept | |
{ | |
return _q_value.fetch_add(valueToAdd, std::memory_order_release); | |
} | |
template <typename T> static inline | |
T fetchAndAddOrdered(std::atomic<T> &_q_value, typename QAtomicAdditiveType<T>::AdditiveT valueToAdd) noexcept | |
{ | |
return _q_value.fetch_add(valueToAdd, std::memory_order_acq_rel); | |
} | |
template <typename T> static inline | |
T fetchAndSubRelaxed(std::atomic<T> &_q_value, typename QAtomicAdditiveType<T>::AdditiveT valueToAdd) noexcept | |
{ | |
return _q_value.fetch_sub(valueToAdd, std::memory_order_relaxed); | |
} | |
template <typename T> static inline | |
T fetchAndSubAcquire(std::atomic<T> &_q_value, typename QAtomicAdditiveType<T>::AdditiveT valueToAdd) noexcept | |
{ | |
return _q_value.fetch_sub(valueToAdd, std::memory_order_acquire); | |
} | |
template <typename T> static inline | |
T fetchAndSubRelease(std::atomic<T> &_q_value, typename QAtomicAdditiveType<T>::AdditiveT valueToAdd) noexcept | |
{ | |
return _q_value.fetch_sub(valueToAdd, std::memory_order_release); | |
} | |
template <typename T> static inline | |
T fetchAndSubOrdered(std::atomic<T> &_q_value, typename QAtomicAdditiveType<T>::AdditiveT valueToAdd) noexcept | |
{ | |
return _q_value.fetch_sub(valueToAdd, std::memory_order_acq_rel); | |
} | |
template <typename T> static inline | |
T fetchAndAndRelaxed(std::atomic<T> &_q_value, typename QAtomicAdditiveType<T>::AdditiveT valueToAdd) noexcept | |
{ | |
return _q_value.fetch_and(valueToAdd, std::memory_order_relaxed); | |
} | |
template <typename T> static inline | |
T fetchAndAndAcquire(std::atomic<T> &_q_value, typename QAtomicAdditiveType<T>::AdditiveT valueToAdd) noexcept | |
{ | |
return _q_value.fetch_and(valueToAdd, std::memory_order_acquire); | |
} | |
template <typename T> static inline | |
T fetchAndAndRelease(std::atomic<T> &_q_value, typename QAtomicAdditiveType<T>::AdditiveT valueToAdd) noexcept | |
{ | |
return _q_value.fetch_and(valueToAdd, std::memory_order_release); | |
} | |
template <typename T> static inline | |
T fetchAndAndOrdered(std::atomic<T> &_q_value, typename QAtomicAdditiveType<T>::AdditiveT valueToAdd) noexcept | |
{ | |
return _q_value.fetch_and(valueToAdd, std::memory_order_acq_rel); | |
} | |
template <typename T> static inline | |
T fetchAndOrRelaxed(std::atomic<T> &_q_value, typename QAtomicAdditiveType<T>::AdditiveT valueToAdd) noexcept | |
{ | |
return _q_value.fetch_or(valueToAdd, std::memory_order_relaxed); | |
} | |
template <typename T> static inline | |
T fetchAndOrAcquire(std::atomic<T> &_q_value, typename QAtomicAdditiveType<T>::AdditiveT valueToAdd) noexcept | |
{ | |
return _q_value.fetch_or(valueToAdd, std::memory_order_acquire); | |
} | |
template <typename T> static inline | |
T fetchAndOrRelease(std::atomic<T> &_q_value, typename QAtomicAdditiveType<T>::AdditiveT valueToAdd) noexcept | |
{ | |
return _q_value.fetch_or(valueToAdd, std::memory_order_release); | |
} | |
template <typename T> static inline | |
T fetchAndOrOrdered(std::atomic<T> &_q_value, typename QAtomicAdditiveType<T>::AdditiveT valueToAdd) noexcept | |
{ | |
return _q_value.fetch_or(valueToAdd, std::memory_order_acq_rel); | |
} | |
template <typename T> static inline | |
T fetchAndXorRelaxed(std::atomic<T> &_q_value, typename QAtomicAdditiveType<T>::AdditiveT valueToAdd) noexcept | |
{ | |
return _q_value.fetch_xor(valueToAdd, std::memory_order_relaxed); | |
} | |
template <typename T> static inline | |
T fetchAndXorAcquire(std::atomic<T> &_q_value, typename QAtomicAdditiveType<T>::AdditiveT valueToAdd) noexcept | |
{ | |
return _q_value.fetch_xor(valueToAdd, std::memory_order_acquire); | |
} | |
template <typename T> static inline | |
T fetchAndXorRelease(std::atomic<T> &_q_value, typename QAtomicAdditiveType<T>::AdditiveT valueToAdd) noexcept | |
{ | |
return _q_value.fetch_xor(valueToAdd, std::memory_order_release); | |
} | |
template <typename T> static inline | |
T fetchAndXorOrdered(std::atomic<T> &_q_value, typename QAtomicAdditiveType<T>::AdditiveT valueToAdd) noexcept | |
{ | |
return _q_value.fetch_xor(valueToAdd, std::memory_order_acq_rel); | |
} | |
}; | |
# 9 "/usr/include/qt6/QtCore/qbasicatomic.h" 2 3 4 | |
# 10 "/usr/include/qt6/QtCore/qbasicatomic.h" 3 4 | |
#pragma GCC diagnostic push | |
# 22 "/usr/include/qt6/QtCore/qbasicatomic.h" 3 4 | |
template <typename T> | |
class QBasicAtomicInteger | |
{ | |
public: | |
typedef T Type; | |
typedef QAtomicOps<T> Ops; | |
static_assert(std::is_integral_v<T>, "template parameter is not an integral type"); | |
static_assert(QAtomicOpsSupport<sizeof(T)>::IsSupported, "template parameter is an integral of a size not supported on this platform"); | |
typename Ops::Type _q_value; | |
T loadRelaxed() const noexcept { return Ops::loadRelaxed(_q_value); } | |
void storeRelaxed(T newValue) noexcept { Ops::storeRelaxed(_q_value, newValue); } | |
T loadAcquire() const noexcept { return Ops::loadAcquire(_q_value); } | |
void storeRelease(T newValue) noexcept { Ops::storeRelease(_q_value, newValue); } | |
operator T() const noexcept { return loadAcquire(); } | |
T operator=(T newValue) noexcept { storeRelease(newValue); return newValue; } | |
static constexpr bool isReferenceCountingNative() noexcept { return Ops::isReferenceCountingNative(); } | |
static constexpr bool isReferenceCountingWaitFree() noexcept { return Ops::isReferenceCountingWaitFree(); } | |
bool ref() noexcept { return Ops::ref(_q_value); } | |
bool deref() noexcept { return Ops::deref(_q_value); } | |
static constexpr bool isTestAndSetNative() noexcept { return Ops::isTestAndSetNative(); } | |
static constexpr bool isTestAndSetWaitFree() noexcept { return Ops::isTestAndSetWaitFree(); } | |
bool testAndSetRelaxed(T expectedValue, T newValue) noexcept | |
{ return Ops::testAndSetRelaxed(_q_value, expectedValue, newValue); } | |
bool testAndSetAcquire(T expectedValue, T newValue) noexcept | |
{ return Ops::testAndSetAcquire(_q_value, expectedValue, newValue); } | |
bool testAndSetRelease(T expectedValue, T newValue) noexcept | |
{ return Ops::testAndSetRelease(_q_value, expectedValue, newValue); } | |
bool testAndSetOrdered(T expectedValue, T newValue) noexcept | |
{ return Ops::testAndSetOrdered(_q_value, expectedValue, newValue); } | |
bool testAndSetRelaxed(T expectedValue, T newValue, T ¤tValue) noexcept | |
{ return Ops::testAndSetRelaxed(_q_value, expectedValue, newValue, ¤tValue); } | |
bool testAndSetAcquire(T expectedValue, T newValue, T ¤tValue) noexcept | |
{ return Ops::testAndSetAcquire(_q_value, expectedValue, newValue, ¤tValue); } | |
bool testAndSetRelease(T expectedValue, T newValue, T ¤tValue) noexcept | |
{ return Ops::testAndSetRelease(_q_value, expectedValue, newValue, ¤tValue); } | |
bool testAndSetOrdered(T expectedValue, T newValue, T ¤tValue) noexcept | |
{ return Ops::testAndSetOrdered(_q_value, expectedValue, newValue, ¤tValue); } | |
static constexpr bool isFetchAndStoreNative() noexcept { return Ops::isFetchAndStoreNative(); } | |
static constexpr bool isFetchAndStoreWaitFree() noexcept { return Ops::isFetchAndStoreWaitFree(); } | |
T fetchAndStoreRelaxed(T newValue) noexcept | |
{ return Ops::fetchAndStoreRelaxed(_q_value, newValue); } | |
T fetchAndStoreAcquire(T newValue) noexcept | |
{ return Ops::fetchAndStoreAcquire(_q_value, newValue); } | |
T fetchAndStoreRelease(T newValue) noexcept | |
{ return Ops::fetchAndStoreRelease(_q_value, newValue); } | |
T fetchAndStoreOrdered(T newValue) noexcept | |
{ return Ops::fetchAndStoreOrdered(_q_value, newValue); } | |
static constexpr bool isFetchAndAddNative() noexcept { return Ops::isFetchAndAddNative(); } | |
static constexpr bool isFetchAndAddWaitFree() noexcept { return Ops::isFetchAndAddWaitFree(); } | |
T fetchAndAddRelaxed(T valueToAdd) noexcept | |
{ return Ops::fetchAndAddRelaxed(_q_value, valueToAdd); } | |
T fetchAndAddAcquire(T valueToAdd) noexcept | |
{ return Ops::fetchAndAddAcquire(_q_value, valueToAdd); } | |
T fetchAndAddRelease(T valueToAdd) noexcept | |
{ return Ops::fetchAndAddRelease(_q_value, valueToAdd); } | |
T fetchAndAddOrdered(T valueToAdd) noexcept | |
{ return Ops::fetchAndAddOrdered(_q_value, valueToAdd); } | |
T fetchAndSubRelaxed(T valueToAdd) noexcept | |
{ return Ops::fetchAndSubRelaxed(_q_value, valueToAdd); } | |
T fetchAndSubAcquire(T valueToAdd) noexcept | |
{ return Ops::fetchAndSubAcquire(_q_value, valueToAdd); } | |
T fetchAndSubRelease(T valueToAdd) noexcept | |
{ return Ops::fetchAndSubRelease(_q_value, valueToAdd); } | |
T fetchAndSubOrdered(T valueToAdd) noexcept | |
{ return Ops::fetchAndSubOrdered(_q_value, valueToAdd); } | |
T fetchAndAndRelaxed(T valueToAdd) noexcept | |
{ return Ops::fetchAndAndRelaxed(_q_value, valueToAdd); } | |
T fetchAndAndAcquire(T valueToAdd) noexcept | |
{ return Ops::fetchAndAndAcquire(_q_value, valueToAdd); } | |
T fetchAndAndRelease(T valueToAdd) noexcept | |
{ return Ops::fetchAndAndRelease(_q_value, valueToAdd); } | |
T fetchAndAndOrdered(T valueToAdd) noexcept | |
{ return Ops::fetchAndAndOrdered(_q_value, valueToAdd); } | |
T fetchAndOrRelaxed(T valueToAdd) noexcept | |
{ return Ops::fetchAndOrRelaxed(_q_value, valueToAdd); } | |
T fetchAndOrAcquire(T valueToAdd) noexcept | |
{ return Ops::fetchAndOrAcquire(_q_value, valueToAdd); } | |
T fetchAndOrRelease(T valueToAdd) noexcept | |
{ return Ops::fetchAndOrRelease(_q_value, valueToAdd); } | |
T fetchAndOrOrdered(T valueToAdd) noexcept | |
{ return Ops::fetchAndOrOrdered(_q_value, valueToAdd); } | |
T fetchAndXorRelaxed(T valueToAdd) noexcept | |
{ return Ops::fetchAndXorRelaxed(_q_value, valueToAdd); } | |
T fetchAndXorAcquire(T valueToAdd) noexcept | |
{ return Ops::fetchAndXorAcquire(_q_value, valueToAdd); } | |
T fetchAndXorRelease(T valueToAdd) noexcept | |
{ return Ops::fetchAndXorRelease(_q_value, valueToAdd); } | |
T fetchAndXorOrdered(T valueToAdd) noexcept | |
{ return Ops::fetchAndXorOrdered(_q_value, valueToAdd); } | |
T operator++() noexcept | |
{ return fetchAndAddOrdered(1) + 1; } | |
T operator++(int) noexcept | |
{ return fetchAndAddOrdered(1); } | |
T operator--() noexcept | |
{ return fetchAndSubOrdered(1) - 1; } | |
T operator--(int) noexcept | |
{ return fetchAndSubOrdered(1); } | |
T operator+=(T v) noexcept | |
{ return fetchAndAddOrdered(v) + v; } | |
T operator-=(T v) noexcept | |
{ return fetchAndSubOrdered(v) - v; } | |
T operator&=(T v) noexcept | |
{ return fetchAndAndOrdered(v) & v; } | |
T operator|=(T v) noexcept | |
{ return fetchAndOrOrdered(v) | v; } | |
T operator^=(T v) noexcept | |
{ return fetchAndXorOrdered(v) ^ v; } | |
QBasicAtomicInteger() = default; | |
constexpr QBasicAtomicInteger(T value) noexcept : _q_value(value) {} | |
QBasicAtomicInteger(const QBasicAtomicInteger &) = delete; | |
QBasicAtomicInteger &operator=(const QBasicAtomicInteger &) = delete; | |
QBasicAtomicInteger &operator=(const QBasicAtomicInteger &) volatile = delete; | |
}; | |
typedef QBasicAtomicInteger<int> QBasicAtomicInt; | |
template <typename X> | |
class QBasicAtomicPointer | |
{ | |
public: | |
typedef X *Type; | |
typedef QAtomicOps<Type> Ops; | |
typedef typename Ops::Type AtomicType; | |
AtomicType _q_value; | |
Type loadRelaxed() const noexcept { return Ops::loadRelaxed(_q_value); } | |
void storeRelaxed(Type newValue) noexcept { Ops::storeRelaxed(_q_value, newValue); } | |
operator Type() const noexcept { return loadAcquire(); } | |
Type operator=(Type newValue) noexcept { storeRelease(newValue); return newValue; } | |
Type loadAcquire() const noexcept { return Ops::loadAcquire(_q_value); } | |
void storeRelease(Type newValue) noexcept { Ops::storeRelease(_q_value, newValue); } | |
static constexpr bool isTestAndSetNative() noexcept { return Ops::isTestAndSetNative(); } | |
static constexpr bool isTestAndSetWaitFree() noexcept { return Ops::isTestAndSetWaitFree(); } | |
bool testAndSetRelaxed(Type expectedValue, Type newValue) noexcept | |
{ return Ops::testAndSetRelaxed(_q_value, expectedValue, newValue); } | |
bool testAndSetAcquire(Type expectedValue, Type newValue) noexcept | |
{ return Ops::testAndSetAcquire(_q_value, expectedValue, newValue); } | |
bool testAndSetRelease(Type expectedValue, Type newValue) noexcept | |
{ return Ops::testAndSetRelease(_q_value, expectedValue, newValue); } | |
bool testAndSetOrdered(Type expectedValue, Type newValue) noexcept | |
{ return Ops::testAndSetOrdered(_q_value, expectedValue, newValue); } | |
bool testAndSetRelaxed(Type expectedValue, Type newValue, Type ¤tValue) noexcept | |
{ return Ops::testAndSetRelaxed(_q_value, expectedValue, newValue, ¤tValue); } | |
bool testAndSetAcquire(Type expectedValue, Type newValue, Type ¤tValue) noexcept | |
{ return Ops::testAndSetAcquire(_q_value, expectedValue, newValue, ¤tValue); } | |
bool testAndSetRelease(Type expectedValue, Type newValue, Type ¤tValue) noexcept | |
{ return Ops::testAndSetRelease(_q_value, expectedValue, newValue, ¤tValue); } | |
bool testAndSetOrdered(Type expectedValue, Type newValue, Type ¤tValue) noexcept | |
{ return Ops::testAndSetOrdered(_q_value, expectedValue, newValue, ¤tValue); } | |
static constexpr bool isFetchAndStoreNative() noexcept { return Ops::isFetchAndStoreNative(); } | |
static constexpr bool isFetchAndStoreWaitFree() noexcept { return Ops::isFetchAndStoreWaitFree(); } | |
Type fetchAndStoreRelaxed(Type newValue) noexcept | |
{ return Ops::fetchAndStoreRelaxed(_q_value, newValue); } | |
Type fetchAndStoreAcquire(Type newValue) noexcept | |
{ return Ops::fetchAndStoreAcquire(_q_value, newValue); } | |
Type fetchAndStoreRelease(Type newValue) noexcept | |
{ return Ops::fetchAndStoreRelease(_q_value, newValue); } | |
Type fetchAndStoreOrdered(Type newValue) noexcept | |
{ return Ops::fetchAndStoreOrdered(_q_value, newValue); } | |
static constexpr bool isFetchAndAddNative() noexcept { return Ops::isFetchAndAddNative(); } | |
static constexpr bool isFetchAndAddWaitFree() noexcept { return Ops::isFetchAndAddWaitFree(); } | |
Type fetchAndAddRelaxed(qptrdiff valueToAdd) noexcept | |
{ return Ops::fetchAndAddRelaxed(_q_value, valueToAdd); } | |
Type fetchAndAddAcquire(qptrdiff valueToAdd) noexcept | |
{ return Ops::fetchAndAddAcquire(_q_value, valueToAdd); } | |
Type fetchAndAddRelease(qptrdiff valueToAdd) noexcept | |
{ return Ops::fetchAndAddRelease(_q_value, valueToAdd); } | |
Type fetchAndAddOrdered(qptrdiff valueToAdd) noexcept | |
{ return Ops::fetchAndAddOrdered(_q_value, valueToAdd); } | |
Type fetchAndSubRelaxed(qptrdiff valueToAdd) noexcept | |
{ return Ops::fetchAndSubRelaxed(_q_value, valueToAdd); } | |
Type fetchAndSubAcquire(qptrdiff valueToAdd) noexcept | |
{ return Ops::fetchAndSubAcquire(_q_value, valueToAdd); } | |
Type fetchAndSubRelease(qptrdiff valueToAdd) noexcept | |
{ return Ops::fetchAndSubRelease(_q_value, valueToAdd); } | |
Type fetchAndSubOrdered(qptrdiff valueToAdd) noexcept | |
{ return Ops::fetchAndSubOrdered(_q_value, valueToAdd); } | |
Type operator++() noexcept | |
{ return fetchAndAddOrdered(1) + 1; } | |
Type operator++(int) noexcept | |
{ return fetchAndAddOrdered(1); } | |
Type operator--() noexcept | |
{ return fetchAndSubOrdered(1) - 1; } | |
Type operator--(int) noexcept | |
{ return fetchAndSubOrdered(1); } | |
Type operator+=(qptrdiff valueToAdd) noexcept | |
{ return fetchAndAddOrdered(valueToAdd) + valueToAdd; } | |
Type operator-=(qptrdiff valueToSub) noexcept | |
{ return fetchAndSubOrdered(valueToSub) - valueToSub; } | |
QBasicAtomicPointer() = default; | |
constexpr QBasicAtomicPointer(Type value) noexcept : _q_value(value) {} | |
QBasicAtomicPointer(const QBasicAtomicPointer &) = delete; | |
QBasicAtomicPointer &operator=(const QBasicAtomicPointer &) = delete; | |
QBasicAtomicPointer &operator=(const QBasicAtomicPointer &) volatile = delete; | |
}; | |
# 260 "/usr/include/qt6/QtCore/qbasicatomic.h" 3 4 | |
#pragma GCC diagnostic pop | |
# 9 "/usr/include/qt6/QtCore/qatomic.h" 2 3 4 | |
# 12 "/usr/include/qt6/QtCore/qatomic.h" 3 4 | |
#pragma GCC diagnostic push | |
# 13 "/usr/include/qt6/QtCore/qatomic.h" 3 4 | |
#pragma GCC diagnostic ignored "-Wextra" | |
template <typename T> | |
class QAtomicInteger : public QBasicAtomicInteger<T> | |
{ | |
public: | |
constexpr QAtomicInteger(T value = 0) noexcept : QBasicAtomicInteger<T>(value) {} | |
inline QAtomicInteger(const QAtomicInteger &other) noexcept | |
: QBasicAtomicInteger<T>() | |
{ | |
this->storeRelease(other.loadAcquire()); | |
} | |
inline QAtomicInteger &operator=(const QAtomicInteger &other) noexcept | |
{ | |
this->storeRelease(other.loadAcquire()); | |
return *this; | |
} | |
# 109 "/usr/include/qt6/QtCore/qatomic.h" 3 4 | |
}; | |
class QAtomicInt : public QAtomicInteger<int> | |
{ | |
public: | |
constexpr QAtomicInt(int value = 0) noexcept : QAtomicInteger<int>(value) {} | |
}; | |
template <typename T> | |
class QAtomicPointer : public QBasicAtomicPointer<T> | |
{ | |
public: | |
constexpr QAtomicPointer(T *value = nullptr) noexcept : QBasicAtomicPointer<T>(value) {} | |
inline QAtomicPointer(const QAtomicPointer<T> &other) noexcept | |
: QBasicAtomicPointer<T>() | |
{ | |
this->storeRelease(other.loadAcquire()); | |
} | |
inline QAtomicPointer<T> &operator=(const QAtomicPointer<T> &other) noexcept | |
{ | |
this->storeRelease(other.loadAcquire()); | |
return *this; | |
} | |
# 169 "/usr/include/qt6/QtCore/qatomic.h" 3 4 | |
}; | |
# 171 "/usr/include/qt6/QtCore/qatomic.h" 3 4 | |
#pragma GCC diagnostic pop | |
template <typename T> | |
inline void qAtomicAssign(T *&d, T *x) | |
{ | |
if (d == x) | |
return; | |
x->ref.ref(); | |
if (!d->ref.deref()) | |
delete d; | |
d = x; | |
} | |
# 198 "/usr/include/qt6/QtCore/qatomic.h" 3 4 | |
template <typename T> | |
inline void qAtomicDetach(T *&d) | |
{ | |
if (d->ref.loadRelaxed() == 1) | |
return; | |
T *x = d; | |
d = new T(*d); | |
if (!x->ref.deref()) | |
delete x; | |
} | |
# 54 "/usr/include/qt6/QtCore/qglobal.h" 2 3 4 | |
# 1 "/usr/include/qt6/QtCore/qconstructormacros.h" 1 3 4 | |
# 55 "/usr/include/qt6/QtCore/qglobal.h" 2 3 4 | |
# 1 "/usr/include/qt6/QtCore/qdarwinhelpers.h" 1 3 4 | |
# 56 "/usr/include/qt6/QtCore/qglobal.h" 2 3 4 | |
# 1 "/usr/include/qt6/QtCore/qexceptionhandling.h" 1 3 4 | |
# 1 "/usr/include/qt6/QtCore/qcompilerdetection.h" 1 3 4 | |
# 9 "/usr/include/qt6/QtCore/qexceptionhandling.h" 2 3 4 | |
# 25 "/usr/include/qt6/QtCore/qexceptionhandling.h" 3 4 | |
[[noreturn]] __attribute__((cold)) __attribute__((visibility("default"))) void qTerminate() noexcept; | |
# 44 "/usr/include/qt6/QtCore/qexceptionhandling.h" 3 4 | |
# 57 "/usr/include/qt6/QtCore/qglobal.h" 2 3 4 | |
# 1 "/usr/include/qt6/QtCore/qforeach.h" 1 3 4 | |
# 11 "/usr/include/qt6/QtCore/qforeach.h" 3 4 | |
# 1 "/usr/include/qt6/QtCore/qttypetraits.h" 1 3 4 | |
# 18 "/usr/include/qt6/QtCore/qttypetraits.h" 3 4 | |
template <typename Enum> | |
constexpr std::underlying_type_t<Enum> qToUnderlying(Enum e) noexcept | |
{ | |
return static_cast<std::underlying_type_t<Enum>>(e); | |
} | |
# 56 "/usr/include/qt6/QtCore/qttypetraits.h" 3 4 | |
namespace QtPrivate { | |
template <typename T> struct type_dependent_false : std::false_type {}; | |
template <auto T> struct value_dependent_false : std::false_type {}; | |
} | |
# 12 "/usr/include/qt6/QtCore/qforeach.h" 2 3 4 | |
# 82 "/usr/include/qt6/QtCore/qforeach.h" 3 4 | |
# 58 "/usr/include/qt6/QtCore/qglobal.h" 2 3 4 | |
# 1 "/usr/include/qt6/QtCore/qfunctionpointer.h" 1 3 4 | |
# 15 "/usr/include/qt6/QtCore/qfunctionpointer.h" 3 4 | |
typedef void (*QFunctionPointer)(); | |
# 59 "/usr/include/qt6/QtCore/qglobal.h" 2 3 4 | |
# 1 "/usr/include/qt6/QtCore/qglobalstatic.h" 1 3 4 | |
# 14 "/usr/include/qt6/QtCore/qglobalstatic.h" 3 4 | |
namespace QtGlobalStatic { | |
enum GuardValues { | |
Destroyed = -2, | |
Initialized = -1, | |
Uninitialized = 0, | |
Initializing = 1 | |
}; | |
template <typename QGS> union Holder | |
{ | |
using Type = typename QGS::QGS_Type; | |
using PlainType = std::remove_cv_t<Type>; | |
static constexpr bool ConstructionIsNoexcept = noexcept(QGS::innerFunction(nullptr)); | |
__constinit static inline QBasicAtomicInteger<qint8> guard = { QtGlobalStatic::Uninitialized }; | |
PlainType storage; | |
Holder() noexcept(ConstructionIsNoexcept) | |
{ | |
QGS::innerFunction(pointer()); | |
guard.storeRelaxed(QtGlobalStatic::Initialized); | |
} | |
~Holder() | |
{ | |
# 46 "/usr/include/qt6/QtCore/qglobalstatic.h" 3 4 | |
#pragma GCC diagnostic push | |
# 48 "/usr/include/qt6/QtCore/qglobalstatic.h" 3 4 | |
#pragma GCC diagnostic ignored "-Wtsan" | |
std::atomic_thread_fence(std::memory_order_acquire); | |
# 52 "/usr/include/qt6/QtCore/qglobalstatic.h" 3 4 | |
#pragma GCC diagnostic pop | |
pointer()->~PlainType(); | |
guard.storeRelease(QtGlobalStatic::Destroyed); | |
} | |
PlainType *pointer() noexcept | |
{ | |
return &storage; | |
} | |
Holder(const Holder &) = delete; Holder &operator=(const Holder &) = delete; Holder(Holder &&) = delete; Holder &operator=(Holder &&) = delete; | |
}; | |
} | |
template <typename Holder> struct QGlobalStatic | |
{ | |
using Type = typename Holder::Type; | |
bool isDestroyed() const noexcept { return guardValue() <= QtGlobalStatic::Destroyed; } | |
bool exists() const noexcept { return guardValue() == QtGlobalStatic::Initialized; } | |
operator Type *() | |
{ | |
if (isDestroyed()) | |
return nullptr; | |
return instance(); | |
} | |
Type *operator()() | |
{ | |
if (isDestroyed()) | |
return nullptr; | |
return instance(); | |
} | |
Type *operator->() | |
{ | |
static_cast<void>(false && (!isDestroyed())) | |
; | |
return instance(); | |
} | |
Type &operator*() | |
{ | |
static_cast<void>(false && (!isDestroyed())) | |
; | |
return *instance(); | |
} | |
protected: | |
static Type *instance() noexcept(Holder::ConstructionIsNoexcept) | |
{ | |
static Holder holder; | |
return holder.pointer(); | |
} | |
static QtGlobalStatic::GuardValues guardValue() noexcept | |
{ | |
return QtGlobalStatic::GuardValues(Holder::guard.loadAcquire()); | |
} | |
}; | |
# 127 "/usr/include/qt6/QtCore/qglobalstatic.h" 3 4 | |
# 60 "/usr/include/qt6/QtCore/qglobal.h" 2 3 4 | |
# 1 "/usr/include/qt6/QtCore/qmalloc.h" 1 3 4 | |
# 1 "/usr/include/qt6/QtCore/qcompilerdetection.h" 1 3 4 | |
# 8 "/usr/include/qt6/QtCore/qmalloc.h" 2 3 4 | |
# 18 "/usr/include/qt6/QtCore/qmalloc.h" 3 4 | |
__attribute__((visibility("default"))) void *qMallocAligned(size_t size, size_t alignment) __attribute__((alloc_size(1))); | |
__attribute__((visibility("default"))) void *qReallocAligned(void *ptr, size_t size, size_t oldsize, size_t alignment) __attribute__((alloc_size(2))); | |
__attribute__((visibility("default"))) void qFreeAligned(void *ptr); | |
# 61 "/usr/include/qt6/QtCore/qglobal.h" 2 3 4 | |
# 1 "/usr/include/qt6/QtCore/qminmax.h" 1 3 4 | |
# 17 "/usr/include/qt6/QtCore/qminmax.h" 3 4 | |
namespace QTypeTraits { | |
namespace detail { | |
template<typename T, typename U, | |
typename = std::enable_if_t<std::is_arithmetic_v<T> && std::is_arithmetic_v<U> && | |
std::is_floating_point_v<T> == std::is_floating_point_v<U> && | |
std::is_signed_v<T> == std::is_signed_v<U> && | |
!std::is_same_v<T, bool> && !std::is_same_v<U, bool> && | |
!std::is_same_v<T, char> && !std::is_same_v<U, char>>> | |
struct Promoted | |
{ | |
using type = decltype(T() + U()); | |
}; | |
} | |
template <typename T, typename U> | |
using Promoted = typename detail::Promoted<T, U>::type; | |
} | |
template <typename T> | |
constexpr inline const T &qMin(const T &a, const T &b) { return (a < b) ? a : b; } | |
template <typename T> | |
constexpr inline const T &qMax(const T &a, const T &b) { return (a < b) ? b : a; } | |
template <typename T> | |
constexpr inline const T &qBound(const T &min, const T &val, const T &max) | |
{ | |
static_cast<void>(false && (!(max < min))); | |
return qMax(min, qMin(max, val)); | |
} | |
template <typename T, typename U> | |
constexpr inline QTypeTraits::Promoted<T, U> qMin(const T &a, const U &b) | |
{ | |
using P = QTypeTraits::Promoted<T, U>; | |
P _a = a; | |
P _b = b; | |
return (_a < _b) ? _a : _b; | |
} | |
template <typename T, typename U> | |
constexpr inline QTypeTraits::Promoted<T, U> qMax(const T &a, const U &b) | |
{ | |
using P = QTypeTraits::Promoted<T, U>; | |
P _a = a; | |
P _b = b; | |
return (_a < _b) ? _b : _a; | |
} | |
template <typename T, typename U> | |
constexpr inline QTypeTraits::Promoted<T, U> qBound(const T &min, const U &val, const T &max) | |
{ | |
static_cast<void>(false && (!(max < min))); | |
return qMax(min, qMin(max, val)); | |
} | |
template <typename T, typename U> | |
constexpr inline QTypeTraits::Promoted<T, U> qBound(const T &min, const T &val, const U &max) | |
{ | |
using P = QTypeTraits::Promoted<T, U>; | |
static_cast<void>(false && (!(P(max) < P(min)))); | |
return qMax(min, qMin(max, val)); | |
} | |
template <typename T, typename U> | |
constexpr inline QTypeTraits::Promoted<T, U> qBound(const U &min, const T &val, const T &max) | |
{ | |
using P = QTypeTraits::Promoted<T, U>; | |
static_cast<void>(false && (!(P(max) < P(min)))); | |
return qMax(min, qMin(max, val)); | |
} | |
# 62 "/usr/include/qt6/QtCore/qglobal.h" 2 3 4 | |
# 1 "/usr/include/qt6/QtCore/qnumeric.h" 1 3 4 | |
# 15 "/usr/include/qt6/QtCore/qnumeric.h" 3 4 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/cmath" 1 3 4 | |
# 39 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/cmath" 3 4 | |
# 40 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/cmath" 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/requires_hosted.h" 1 3 | |
# 42 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/cmath" 2 3 | |
# 1 "/usr/include/math.h" 1 3 4 | |
# 27 "/usr/include/math.h" 3 4 | |
# 1 "/usr/include/bits/libc-header-start.h" 1 3 4 | |
# 28 "/usr/include/math.h" 2 3 4 | |
extern "C" { | |
# 1 "/usr/include/bits/math-vector.h" 1 3 4 | |
# 25 "/usr/include/bits/math-vector.h" 3 4 | |
# 1 "/usr/include/bits/libm-simd-decl-stubs.h" 1 3 4 | |
# 26 "/usr/include/bits/math-vector.h" 2 3 4 | |
# 41 "/usr/include/math.h" 2 3 4 | |
# 1 "/usr/include/bits/floatn.h" 1 3 4 | |
# 119 "/usr/include/bits/floatn.h" 3 4 | |
# 1 "/usr/include/bits/floatn-common.h" 1 3 4 | |
# 24 "/usr/include/bits/floatn-common.h" 3 4 | |
# 1 "/usr/include/bits/long-double.h" 1 3 4 | |
# 25 "/usr/include/bits/floatn-common.h" 2 3 4 | |
# 120 "/usr/include/bits/floatn.h" 2 3 4 | |
# 44 "/usr/include/math.h" 2 3 4 | |
# 152 "/usr/include/math.h" 3 4 | |
# 1 "/usr/include/bits/flt-eval-method.h" 1 3 4 | |
# 153 "/usr/include/math.h" 2 3 4 | |
# 163 "/usr/include/math.h" 3 4 | |
typedef float float_t; | |
typedef double double_t; | |
# 204 "/usr/include/math.h" 3 4 | |
# 1 "/usr/include/bits/fp-logb.h" 1 3 4 | |
# 205 "/usr/include/math.h" 2 3 4 | |
# 247 "/usr/include/math.h" 3 4 | |
# 1 "/usr/include/bits/fp-fast.h" 1 3 4 | |
# 248 "/usr/include/math.h" 2 3 4 | |
enum | |
{ | |
FP_INT_UPWARD = | |
0, | |
FP_INT_DOWNWARD = | |
1, | |
FP_INT_TOWARDZERO = | |
2, | |
FP_INT_TONEARESTFROMZERO = | |
3, | |
FP_INT_TONEAREST = | |
4, | |
}; | |
# 312 "/usr/include/math.h" 3 4 | |
# 1 "/usr/include/bits/mathcalls-helper-functions.h" 1 3 4 | |
# 20 "/usr/include/bits/mathcalls-helper-functions.h" 3 4 | |
extern int __fpclassify (double __value) noexcept (true) | |
__attribute__ ((__const__)); | |
extern int __signbit (double __value) noexcept (true) | |
__attribute__ ((__const__)); | |
extern int __isinf (double __value) noexcept (true) | |
__attribute__ ((__const__)); | |
extern int __finite (double __value) noexcept (true) | |
__attribute__ ((__const__)); | |
extern int __isnan (double __value) noexcept (true) | |
__attribute__ ((__const__)); | |
extern int __iseqsig (double __x, double __y) noexcept (true); | |
extern int __issignaling (double __value) noexcept (true) | |
__attribute__ ((__const__)); | |
# 313 "/usr/include/math.h" 2 3 4 | |
# 1 "/usr/include/bits/mathcalls.h" 1 3 4 | |
# 53 "/usr/include/bits/mathcalls.h" 3 4 | |
extern double acos (double __x) noexcept (true); extern double __acos (double __x) noexcept (true); | |
extern double asin (double __x) noexcept (true); extern double __asin (double __x) noexcept (true); | |
extern double atan (double __x) noexcept (true); extern double __atan (double __x) noexcept (true); | |
extern double atan2 (double __y, double __x) noexcept (true); extern double __atan2 (double __y, double __x) noexcept (true); | |
extern double cos (double __x) noexcept (true); extern double __cos (double __x) noexcept (true); | |
extern double sin (double __x) noexcept (true); extern double __sin (double __x) noexcept (true); | |
extern double tan (double __x) noexcept (true); extern double __tan (double __x) noexcept (true); | |
extern double cosh (double __x) noexcept (true); extern double __cosh (double __x) noexcept (true); | |
extern double sinh (double __x) noexcept (true); extern double __sinh (double __x) noexcept (true); | |
extern double tanh (double __x) noexcept (true); extern double __tanh (double __x) noexcept (true); | |
extern void sincos (double __x, double *__sinx, double *__cosx) noexcept (true); extern void __sincos (double __x, double *__sinx, double *__cosx) noexcept (true) | |
; | |
extern double acosh (double __x) noexcept (true); extern double __acosh (double __x) noexcept (true); | |
extern double asinh (double __x) noexcept (true); extern double __asinh (double __x) noexcept (true); | |
extern double atanh (double __x) noexcept (true); extern double __atanh (double __x) noexcept (true); | |
extern double exp (double __x) noexcept (true); extern double __exp (double __x) noexcept (true); | |
extern double frexp (double __x, int *__exponent) noexcept (true); extern double __frexp (double __x, int *__exponent) noexcept (true); | |
extern double ldexp (double __x, int __exponent) noexcept (true); extern double __ldexp (double __x, int __exponent) noexcept (true); | |
extern double log (double __x) noexcept (true); extern double __log (double __x) noexcept (true); | |
extern double log10 (double __x) noexcept (true); extern double __log10 (double __x) noexcept (true); | |
extern double modf (double __x, double *__iptr) noexcept (true); extern double __modf (double __x, double *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); | |
extern double exp10 (double __x) noexcept (true); extern double __exp10 (double __x) noexcept (true); | |
extern double expm1 (double __x) noexcept (true); extern double __expm1 (double __x) noexcept (true); | |
extern double log1p (double __x) noexcept (true); extern double __log1p (double __x) noexcept (true); | |
extern double logb (double __x) noexcept (true); extern double __logb (double __x) noexcept (true); | |
extern double exp2 (double __x) noexcept (true); extern double __exp2 (double __x) noexcept (true); | |
extern double log2 (double __x) noexcept (true); extern double __log2 (double __x) noexcept (true); | |
extern double pow (double __x, double __y) noexcept (true); extern double __pow (double __x, double __y) noexcept (true); | |
extern double sqrt (double __x) noexcept (true); extern double __sqrt (double __x) noexcept (true); | |
extern double hypot (double __x, double __y) noexcept (true); extern double __hypot (double __x, double __y) noexcept (true); | |
extern double cbrt (double __x) noexcept (true); extern double __cbrt (double __x) noexcept (true); | |
extern double ceil (double __x) noexcept (true) __attribute__ ((__const__)); extern double __ceil (double __x) noexcept (true) __attribute__ ((__const__)); | |
extern double fabs (double __x) noexcept (true) __attribute__ ((__const__)); extern double __fabs (double __x) noexcept (true) __attribute__ ((__const__)); | |
extern double floor (double __x) noexcept (true) __attribute__ ((__const__)); extern double __floor (double __x) noexcept (true) __attribute__ ((__const__)); | |
extern double fmod (double __x, double __y) noexcept (true); extern double __fmod (double __x, double __y) noexcept (true); | |
# 183 "/usr/include/bits/mathcalls.h" 3 4 | |
extern int finite (double __value) noexcept (true) | |
__attribute__ ((__const__)); | |
extern double drem (double __x, double __y) noexcept (true); extern double __drem (double __x, double __y) noexcept (true); | |
extern double significand (double __x) noexcept (true); extern double __significand (double __x) noexcept (true); | |
extern double copysign (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __copysign (double __x, double __y) noexcept (true) __attribute__ ((__const__)); | |
extern double nan (const char *__tagb) noexcept (true); extern double __nan (const char *__tagb) noexcept (true); | |
# 220 "/usr/include/bits/mathcalls.h" 3 4 | |
extern double j0 (double) noexcept (true); extern double __j0 (double) noexcept (true); | |
extern double j1 (double) noexcept (true); extern double __j1 (double) noexcept (true); | |
extern double jn (int, double) noexcept (true); extern double __jn (int, double) noexcept (true); | |
extern double y0 (double) noexcept (true); extern double __y0 (double) noexcept (true); | |
extern double y1 (double) noexcept (true); extern double __y1 (double) noexcept (true); | |
extern double yn (int, double) noexcept (true); extern double __yn (int, double) noexcept (true); | |
extern double erf (double) noexcept (true); extern double __erf (double) noexcept (true); | |
extern double erfc (double) noexcept (true); extern double __erfc (double) noexcept (true); | |
extern double lgamma (double) noexcept (true); extern double __lgamma (double) noexcept (true); | |
extern double tgamma (double) noexcept (true); extern double __tgamma (double) noexcept (true); | |
extern double gamma (double) noexcept (true); extern double __gamma (double) noexcept (true); | |
extern double lgamma_r (double, int *__signgamp) noexcept (true); extern double __lgamma_r (double, int *__signgamp) noexcept (true); | |
extern double rint (double __x) noexcept (true); extern double __rint (double __x) noexcept (true); | |
extern double nextafter (double __x, double __y) noexcept (true); extern double __nextafter (double __x, double __y) noexcept (true); | |
extern double nexttoward (double __x, long double __y) noexcept (true); extern double __nexttoward (double __x, long double __y) noexcept (true); | |
extern double nextdown (double __x) noexcept (true); extern double __nextdown (double __x) noexcept (true); | |
extern double nextup (double __x) noexcept (true); extern double __nextup (double __x) noexcept (true); | |
extern double remainder (double __x, double __y) noexcept (true); extern double __remainder (double __x, double __y) noexcept (true); | |
extern double scalbn (double __x, int __n) noexcept (true); extern double __scalbn (double __x, int __n) noexcept (true); | |
extern int ilogb (double __x) noexcept (true); extern int __ilogb (double __x) noexcept (true); | |
extern long int llogb (double __x) noexcept (true); extern long int __llogb (double __x) noexcept (true); | |
extern double scalbln (double __x, long int __n) noexcept (true); extern double __scalbln (double __x, long int __n) noexcept (true); | |
extern double nearbyint (double __x) noexcept (true); extern double __nearbyint (double __x) noexcept (true); | |
extern double round (double __x) noexcept (true) __attribute__ ((__const__)); extern double __round (double __x) noexcept (true) __attribute__ ((__const__)); | |
extern double trunc (double __x) noexcept (true) __attribute__ ((__const__)); extern double __trunc (double __x) noexcept (true) __attribute__ ((__const__)); | |
extern double remquo (double __x, double __y, int *__quo) noexcept (true); extern double __remquo (double __x, double __y, int *__quo) noexcept (true); | |
extern long int lrint (double __x) noexcept (true); extern long int __lrint (double __x) noexcept (true); | |
__extension__ | |
extern long long int llrint (double __x) noexcept (true); extern long long int __llrint (double __x) noexcept (true); | |
extern long int lround (double __x) noexcept (true); extern long int __lround (double __x) noexcept (true); | |
__extension__ | |
extern long long int llround (double __x) noexcept (true); extern long long int __llround (double __x) noexcept (true); | |
extern double fdim (double __x, double __y) noexcept (true); extern double __fdim (double __x, double __y) noexcept (true); | |
extern double fmax (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmax (double __x, double __y) noexcept (true) __attribute__ ((__const__)); | |
extern double fmin (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmin (double __x, double __y) noexcept (true) __attribute__ ((__const__)); | |
extern double fma (double __x, double __y, double __z) noexcept (true); extern double __fma (double __x, double __y, double __z) noexcept (true); | |
extern double roundeven (double __x) noexcept (true) __attribute__ ((__const__)); extern double __roundeven (double __x) noexcept (true) __attribute__ ((__const__)); | |
extern __intmax_t fromfp (double __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfp (double __x, int __round, unsigned int __width) noexcept (true) | |
; | |
extern __uintmax_t ufromfp (double __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfp (double __x, int __round, unsigned int __width) noexcept (true) | |
; | |
extern __intmax_t fromfpx (double __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpx (double __x, int __round, unsigned int __width) noexcept (true) | |
; | |
extern __uintmax_t ufromfpx (double __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpx (double __x, int __round, unsigned int __width) noexcept (true) | |
; | |
extern int canonicalize (double *__cx, const double *__x) noexcept (true); | |
extern double fmaxmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaxmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); | |
extern double fminmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); | |
extern double fmaximum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); | |
extern double fminimum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); | |
extern double fmaximum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); | |
extern double fminimum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); | |
extern double fmaximum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); | |
extern double fminimum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); | |
extern double fmaximum_mag_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum_mag_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); | |
extern double fminimum_mag_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum_mag_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); | |
extern int totalorder (const double *__x, const double *__y) noexcept (true) | |
__attribute__ ((__pure__)); | |
extern int totalordermag (const double *__x, const double *__y) noexcept (true) | |
__attribute__ ((__pure__)); | |
extern double getpayload (const double *__x) noexcept (true); extern double __getpayload (const double *__x) noexcept (true); | |
extern int setpayload (double *__x, double __payload) noexcept (true); | |
extern int setpayloadsig (double *__x, double __payload) noexcept (true); | |
extern double scalb (double __x, double __n) noexcept (true); extern double __scalb (double __x, double __n) noexcept (true); | |
# 314 "/usr/include/math.h" 2 3 4 | |
# 329 "/usr/include/math.h" 3 4 | |
# 1 "/usr/include/bits/mathcalls-helper-functions.h" 1 3 4 | |
# 20 "/usr/include/bits/mathcalls-helper-functions.h" 3 4 | |
extern int __fpclassifyf (float __value) noexcept (true) | |
__attribute__ ((__const__)); | |
extern int __signbitf (float __value) noexcept (true) | |
__attribute__ ((__const__)); | |
extern int __isinff (float __value) noexcept (true) | |
__attribute__ ((__const__)); | |
extern int __finitef (float __value) noexcept (true) | |
__attribute__ ((__const__)); | |
extern int __isnanf (float __value) noexcept (true) | |
__attribute__ ((__const__)); | |
extern int __iseqsigf (float __x, float __y) noexcept (true); | |
extern int __issignalingf (float __value) noexcept (true) | |
__attribute__ ((__const__)); | |
# 330 "/usr/include/math.h" 2 3 4 | |
# 1 "/usr/include/bits/mathcalls.h" 1 3 4 | |
# 53 "/usr/include/bits/mathcalls.h" 3 4 | |
extern float acosf (float __x) noexcept (true); extern float __acosf (float __x) noexcept (true); | |
extern float asinf (float __x) noexcept (true); extern float __asinf (float __x) noexcept (true); | |
extern float atanf (float __x) noexcept (true); extern float __atanf (float __x) noexcept (true); | |
extern float atan2f (float __y, float __x) noexcept (true); extern float __atan2f (float __y, float __x) noexcept (true); | |
extern float cosf (float __x) noexcept (true); extern float __cosf (float __x) noexcept (true); | |
extern float sinf (float __x) noexcept (true); extern float __sinf (float __x) noexcept (true); | |
extern float tanf (float __x) noexcept (true); extern float __tanf (float __x) noexcept (true); | |
extern float coshf (float __x) noexcept (true); extern float __coshf (float __x) noexcept (true); | |
extern float sinhf (float __x) noexcept (true); extern float __sinhf (float __x) noexcept (true); | |
extern float tanhf (float __x) noexcept (true); extern float __tanhf (float __x) noexcept (true); | |
extern void sincosf (float __x, float *__sinx, float *__cosx) noexcept (true); extern void __sincosf (float __x, float *__sinx, float *__cosx) noexcept (true) | |
; | |
extern float acoshf (float __x) noexcept (true); extern float __acoshf (float __x) noexcept (true); | |
extern float asinhf (float __x) noexcept (true); extern float __asinhf (float __x) noexcept (true); | |
extern float atanhf (float __x) noexcept (true); extern float __atanhf (float __x) noexcept (true); | |
extern float expf (float __x) noexcept (true); extern float __expf (float __x) noexcept (true); | |
extern float frexpf (float __x, int *__exponent) noexcept (true); extern float __frexpf (float __x, int *__exponent) noexcept (true); | |
extern float ldexpf (float __x, int __exponent) noexcept (true); extern float __ldexpf (float __x, int __exponent) noexcept (true); | |
extern float logf (float __x) noexcept (true); extern float __logf (float __x) noexcept (true); | |
extern float log10f (float __x) noexcept (true); extern float __log10f (float __x) noexcept (true); | |
extern float modff (float __x, float *__iptr) noexcept (true); extern float __modff (float __x, float *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); | |
extern float exp10f (float __x) noexcept (true); extern float __exp10f (float __x) noexcept (true); | |
extern float expm1f (float __x) noexcept (true); extern float __expm1f (float __x) noexcept (true); | |
extern float log1pf (float __x) noexcept (true); extern float __log1pf (float __x) noexcept (true); | |
extern float logbf (float __x) noexcept (true); extern float __logbf (float __x) noexcept (true); | |
extern float exp2f (float __x) noexcept (true); extern float __exp2f (float __x) noexcept (true); | |
extern float log2f (float __x) noexcept (true); extern float __log2f (float __x) noexcept (true); | |
extern float powf (float __x, float __y) noexcept (true); extern float __powf (float __x, float __y) noexcept (true); | |
extern float sqrtf (float __x) noexcept (true); extern float __sqrtf (float __x) noexcept (true); | |
extern float hypotf (float __x, float __y) noexcept (true); extern float __hypotf (float __x, float __y) noexcept (true); | |
extern float cbrtf (float __x) noexcept (true); extern float __cbrtf (float __x) noexcept (true); | |
extern float ceilf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __ceilf (float __x) noexcept (true) __attribute__ ((__const__)); | |
extern float fabsf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __fabsf (float __x) noexcept (true) __attribute__ ((__const__)); | |
extern float floorf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __floorf (float __x) noexcept (true) __attribute__ ((__const__)); | |
extern float fmodf (float __x, float __y) noexcept (true); extern float __fmodf (float __x, float __y) noexcept (true); | |
# 177 "/usr/include/bits/mathcalls.h" 3 4 | |
extern int isinff (float __value) noexcept (true) | |
__attribute__ ((__const__)); | |
extern int finitef (float __value) noexcept (true) | |
__attribute__ ((__const__)); | |
extern float dremf (float __x, float __y) noexcept (true); extern float __dremf (float __x, float __y) noexcept (true); | |
extern float significandf (float __x) noexcept (true); extern float __significandf (float __x) noexcept (true); | |
extern float copysignf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __copysignf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); | |
extern float nanf (const char *__tagb) noexcept (true); extern float __nanf (const char *__tagb) noexcept (true); | |
# 213 "/usr/include/bits/mathcalls.h" 3 4 | |
extern int isnanf (float __value) noexcept (true) | |
__attribute__ ((__const__)); | |
extern float j0f (float) noexcept (true); extern float __j0f (float) noexcept (true); | |
extern float j1f (float) noexcept (true); extern float __j1f (float) noexcept (true); | |
extern float jnf (int, float) noexcept (true); extern float __jnf (int, float) noexcept (true); | |
extern float y0f (float) noexcept (true); extern float __y0f (float) noexcept (true); | |
extern float y1f (float) noexcept (true); extern float __y1f (float) noexcept (true); | |
extern float ynf (int, float) noexcept (true); extern float __ynf (int, float) noexcept (true); | |
extern float erff (float) noexcept (true); extern float __erff (float) noexcept (true); | |
extern float erfcf (float) noexcept (true); extern float __erfcf (float) noexcept (true); | |
extern float lgammaf (float) noexcept (true); extern float __lgammaf (float) noexcept (true); | |
extern float tgammaf (float) noexcept (true); extern float __tgammaf (float) noexcept (true); | |
extern float gammaf (float) noexcept (true); extern float __gammaf (float) noexcept (true); | |
extern float lgammaf_r (float, int *__signgamp) noexcept (true); extern float __lgammaf_r (float, int *__signgamp) noexcept (true); | |
extern float rintf (float __x) noexcept (true); extern float __rintf (float __x) noexcept (true); | |
extern float nextafterf (float __x, float __y) noexcept (true); extern float __nextafterf (float __x, float __y) noexcept (true); | |
extern float nexttowardf (float __x, long double __y) noexcept (true); extern float __nexttowardf (float __x, long double __y) noexcept (true); | |
extern float nextdownf (float __x) noexcept (true); extern float __nextdownf (float __x) noexcept (true); | |
extern float nextupf (float __x) noexcept (true); extern float __nextupf (float __x) noexcept (true); | |
extern float remainderf (float __x, float __y) noexcept (true); extern float __remainderf (float __x, float __y) noexcept (true); | |
extern float scalbnf (float __x, int __n) noexcept (true); extern float __scalbnf (float __x, int __n) noexcept (true); | |
extern int ilogbf (float __x) noexcept (true); extern int __ilogbf (float __x) noexcept (true); | |
extern long int llogbf (float __x) noexcept (true); extern long int __llogbf (float __x) noexcept (true); | |
extern float scalblnf (float __x, long int __n) noexcept (true); extern float __scalblnf (float __x, long int __n) noexcept (true); | |
extern float nearbyintf (float __x) noexcept (true); extern float __nearbyintf (float __x) noexcept (true); | |
extern float roundf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __roundf (float __x) noexcept (true) __attribute__ ((__const__)); | |
extern float truncf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __truncf (float __x) noexcept (true) __attribute__ ((__const__)); | |
extern float remquof (float __x, float __y, int *__quo) noexcept (true); extern float __remquof (float __x, float __y, int *__quo) noexcept (true); | |
extern long int lrintf (float __x) noexcept (true); extern long int __lrintf (float __x) noexcept (true); | |
__extension__ | |
extern long long int llrintf (float __x) noexcept (true); extern long long int __llrintf (float __x) noexcept (true); | |
extern long int lroundf (float __x) noexcept (true); extern long int __lroundf (float __x) noexcept (true); | |
__extension__ | |
extern long long int llroundf (float __x) noexcept (true); extern long long int __llroundf (float __x) noexcept (true); | |
extern float fdimf (float __x, float __y) noexcept (true); extern float __fdimf (float __x, float __y) noexcept (true); | |
extern float fmaxf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaxf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); | |
extern float fminf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); | |
extern float fmaf (float __x, float __y, float __z) noexcept (true); extern float __fmaf (float __x, float __y, float __z) noexcept (true); | |
extern float roundevenf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __roundevenf (float __x) noexcept (true) __attribute__ ((__const__)); | |
extern __intmax_t fromfpf (float __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpf (float __x, int __round, unsigned int __width) noexcept (true) | |
; | |
extern __uintmax_t ufromfpf (float __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpf (float __x, int __round, unsigned int __width) noexcept (true) | |
; | |
extern __intmax_t fromfpxf (float __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpxf (float __x, int __round, unsigned int __width) noexcept (true) | |
; | |
extern __uintmax_t ufromfpxf (float __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpxf (float __x, int __round, unsigned int __width) noexcept (true) | |
; | |
extern int canonicalizef (float *__cx, const float *__x) noexcept (true); | |
extern float fmaxmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaxmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); | |
extern float fminmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); | |
extern float fmaximumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); | |
extern float fminimumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); | |
extern float fmaximum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); | |
extern float fminimum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); | |
extern float fmaximum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); | |
extern float fminimum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); | |
extern float fmaximum_mag_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximum_mag_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); | |
extern float fminimum_mag_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimum_mag_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); | |
extern int totalorderf (const float *__x, const float *__y) noexcept (true) | |
__attribute__ ((__pure__)); | |
extern int totalordermagf (const float *__x, const float *__y) noexcept (true) | |
__attribute__ ((__pure__)); | |
extern float getpayloadf (const float *__x) noexcept (true); extern float __getpayloadf (const float *__x) noexcept (true); | |
extern int setpayloadf (float *__x, float __payload) noexcept (true); | |
extern int setpayloadsigf (float *__x, float __payload) noexcept (true); | |
extern float scalbf (float __x, float __n) noexcept (true); extern float __scalbf (float __x, float __n) noexcept (true); | |
# 331 "/usr/include/math.h" 2 3 4 | |
# 398 "/usr/include/math.h" 3 4 | |
# 1 "/usr/include/bits/mathcalls-helper-functions.h" 1 3 4 | |
# 20 "/usr/include/bits/mathcalls-helper-functions.h" 3 4 | |
extern int __fpclassifyl (long double __value) noexcept (true) | |
__attribute__ ((__const__)); | |
extern int __signbitl (long double __value) noexcept (true) | |
__attribute__ ((__const__)); | |
extern int __isinfl (long double __value) noexcept (true) | |
__attribute__ ((__const__)); | |
extern int __finitel (long double __value) noexcept (true) | |
__attribute__ ((__const__)); | |
extern int __isnanl (long double __value) noexcept (true) | |
__attribute__ ((__const__)); | |
extern int __iseqsigl (long double __x, long double __y) noexcept (true); | |
extern int __issignalingl (long double __value) noexcept (true) | |
__attribute__ ((__const__)); | |
# 399 "/usr/include/math.h" 2 3 4 | |
# 1 "/usr/include/bits/mathcalls.h" 1 3 4 | |
# 53 "/usr/include/bits/mathcalls.h" 3 4 | |
extern long double acosl (long double __x) noexcept (true); extern long double __acosl (long double __x) noexcept (true); | |
extern long double asinl (long double __x) noexcept (true); extern long double __asinl (long double __x) noexcept (true); | |
extern long double atanl (long double __x) noexcept (true); extern long double __atanl (long double __x) noexcept (true); | |
extern long double atan2l (long double __y, long double __x) noexcept (true); extern long double __atan2l (long double __y, long double __x) noexcept (true); | |
extern long double cosl (long double __x) noexcept (true); extern long double __cosl (long double __x) noexcept (true); | |
extern long double sinl (long double __x) noexcept (true); extern long double __sinl (long double __x) noexcept (true); | |
extern long double tanl (long double __x) noexcept (true); extern long double __tanl (long double __x) noexcept (true); | |
extern long double coshl (long double __x) noexcept (true); extern long double __coshl (long double __x) noexcept (true); | |
extern long double sinhl (long double __x) noexcept (true); extern long double __sinhl (long double __x) noexcept (true); | |
extern long double tanhl (long double __x) noexcept (true); extern long double __tanhl (long double __x) noexcept (true); | |
extern void sincosl (long double __x, long double *__sinx, long double *__cosx) noexcept (true); extern void __sincosl (long double __x, long double *__sinx, long double *__cosx) noexcept (true) | |
; | |
extern long double acoshl (long double __x) noexcept (true); extern long double __acoshl (long double __x) noexcept (true); | |
extern long double asinhl (long double __x) noexcept (true); extern long double __asinhl (long double __x) noexcept (true); | |
extern long double atanhl (long double __x) noexcept (true); extern long double __atanhl (long double __x) noexcept (true); | |
extern long double expl (long double __x) noexcept (true); extern long double __expl (long double __x) noexcept (true); | |
extern long double frexpl (long double __x, int *__exponent) noexcept (true); extern long double __frexpl (long double __x, int *__exponent) noexcept (true); | |
extern long double ldexpl (long double __x, int __exponent) noexcept (true); extern long double __ldexpl (long double __x, int __exponent) noexcept (true); | |
extern long double logl (long double __x) noexcept (true); extern long double __logl (long double __x) noexcept (true); | |
extern long double log10l (long double __x) noexcept (true); extern long double __log10l (long double __x) noexcept (true); | |
extern long double modfl (long double __x, long double *__iptr) noexcept (true); extern long double __modfl (long double __x, long double *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); | |
extern long double exp10l (long double __x) noexcept (true); extern long double __exp10l (long double __x) noexcept (true); | |
extern long double expm1l (long double __x) noexcept (true); extern long double __expm1l (long double __x) noexcept (true); | |
extern long double log1pl (long double __x) noexcept (true); extern long double __log1pl (long double __x) noexcept (true); | |
extern long double logbl (long double __x) noexcept (true); extern long double __logbl (long double __x) noexcept (true); | |
extern long double exp2l (long double __x) noexcept (true); extern long double __exp2l (long double __x) noexcept (true); | |
extern long double log2l (long double __x) noexcept (true); extern long double __log2l (long double __x) noexcept (true); | |
extern long double powl (long double __x, long double __y) noexcept (true); extern long double __powl (long double __x, long double __y) noexcept (true); | |
extern long double sqrtl (long double __x) noexcept (true); extern long double __sqrtl (long double __x) noexcept (true); | |
extern long double hypotl (long double __x, long double __y) noexcept (true); extern long double __hypotl (long double __x, long double __y) noexcept (true); | |
extern long double cbrtl (long double __x) noexcept (true); extern long double __cbrtl (long double __x) noexcept (true); | |
extern long double ceill (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __ceill (long double __x) noexcept (true) __attribute__ ((__const__)); | |
extern long double fabsl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __fabsl (long double __x) noexcept (true) __attribute__ ((__const__)); | |
extern long double floorl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __floorl (long double __x) noexcept (true) __attribute__ ((__const__)); | |
extern long double fmodl (long double __x, long double __y) noexcept (true); extern long double __fmodl (long double __x, long double __y) noexcept (true); | |
# 177 "/usr/include/bits/mathcalls.h" 3 4 | |
extern int isinfl (long double __value) noexcept (true) | |
__attribute__ ((__const__)); | |
extern int finitel (long double __value) noexcept (true) | |
__attribute__ ((__const__)); | |
extern long double dreml (long double __x, long double __y) noexcept (true); extern long double __dreml (long double __x, long double __y) noexcept (true); | |
extern long double significandl (long double __x) noexcept (true); extern long double __significandl (long double __x) noexcept (true); | |
extern long double copysignl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __copysignl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); | |
extern long double nanl (const char *__tagb) noexcept (true); extern long double __nanl (const char *__tagb) noexcept (true); | |
# 213 "/usr/include/bits/mathcalls.h" 3 4 | |
extern int isnanl (long double __value) noexcept (true) | |
__attribute__ ((__const__)); | |
extern long double j0l (long double) noexcept (true); extern long double __j0l (long double) noexcept (true); | |
extern long double j1l (long double) noexcept (true); extern long double __j1l (long double) noexcept (true); | |
extern long double jnl (int, long double) noexcept (true); extern long double __jnl (int, long double) noexcept (true); | |
extern long double y0l (long double) noexcept (true); extern long double __y0l (long double) noexcept (true); | |
extern long double y1l (long double) noexcept (true); extern long double __y1l (long double) noexcept (true); | |
extern long double ynl (int, long double) noexcept (true); extern long double __ynl (int, long double) noexcept (true); | |
extern long double erfl (long double) noexcept (true); extern long double __erfl (long double) noexcept (true); | |
extern long double erfcl (long double) noexcept (true); extern long double __erfcl (long double) noexcept (true); | |
extern long double lgammal (long double) noexcept (true); extern long double __lgammal (long double) noexcept (true); | |
extern long double tgammal (long double) noexcept (true); extern long double __tgammal (long double) noexcept (true); | |
extern long double gammal (long double) noexcept (true); extern long double __gammal (long double) noexcept (true); | |
extern long double lgammal_r (long double, int *__signgamp) noexcept (true); extern long double __lgammal_r (long double, int *__signgamp) noexcept (true); | |
extern long double rintl (long double __x) noexcept (true); extern long double __rintl (long double __x) noexcept (true); | |
extern long double nextafterl (long double __x, long double __y) noexcept (true); extern long double __nextafterl (long double __x, long double __y) noexcept (true); | |
extern long double nexttowardl (long double __x, long double __y) noexcept (true); extern long double __nexttowardl (long double __x, long double __y) noexcept (true); | |
extern long double nextdownl (long double __x) noexcept (true); extern long double __nextdownl (long double __x) noexcept (true); | |
extern long double nextupl (long double __x) noexcept (true); extern long double __nextupl (long double __x) noexcept (true); | |
extern long double remainderl (long double __x, long double __y) noexcept (true); extern long double __remainderl (long double __x, long double __y) noexcept (true); | |
extern long double scalbnl (long double __x, int __n) noexcept (true); extern long double __scalbnl (long double __x, int __n) noexcept (true); | |
extern int ilogbl (long double __x) noexcept (true); extern int __ilogbl (long double __x) noexcept (true); | |
extern long int llogbl (long double __x) noexcept (true); extern long int __llogbl (long double __x) noexcept (true); | |
extern long double scalblnl (long double __x, long int __n) noexcept (true); extern long double __scalblnl (long double __x, long int __n) noexcept (true); | |
extern long double nearbyintl (long double __x) noexcept (true); extern long double __nearbyintl (long double __x) noexcept (true); | |
extern long double roundl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __roundl (long double __x) noexcept (true) __attribute__ ((__const__)); | |
extern long double truncl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __truncl (long double __x) noexcept (true) __attribute__ ((__const__)); | |
extern long double remquol (long double __x, long double __y, int *__quo) noexcept (true); extern long double __remquol (long double __x, long double __y, int *__quo) noexcept (true); | |
extern long int lrintl (long double __x) noexcept (true); extern long int __lrintl (long double __x) noexcept (true); | |
__extension__ | |
extern long long int llrintl (long double __x) noexcept (true); extern long long int __llrintl (long double __x) noexcept (true); | |
extern long int lroundl (long double __x) noexcept (true); extern long int __lroundl (long double __x) noexcept (true); | |
__extension__ | |
extern long long int llroundl (long double __x) noexcept (true); extern long long int __llroundl (long double __x) noexcept (true); | |
extern long double fdiml (long double __x, long double __y) noexcept (true); extern long double __fdiml (long double __x, long double __y) noexcept (true); | |
extern long double fmaxl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fmaxl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); | |
extern long double fminl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fminl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); | |
extern long double fmal (long double __x, long double __y, long double __z) noexcept (true); extern long double __fmal (long double __x, long double __y, long double __z) noexcept (true); | |
extern long double roundevenl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __roundevenl (long double __x) noexcept (true) __attribute__ ((__const__)); | |
extern __intmax_t fromfpl (long double __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpl (long double __x, int __round, unsigned int __width) noexcept (true) | |
; | |
extern __uintmax_t ufromfpl (long double __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpl (long double __x, int __round, unsigned int __width) noexcept (true) | |
; | |
extern __intmax_t fromfpxl (long double __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpxl (long double __x, int __round, unsigned int __width) noexcept (true) | |
; | |
extern __uintmax_t ufromfpxl (long double __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpxl (long double __x, int __round, unsigned int __width) noexcept (true) | |
; | |
extern int canonicalizel (long double *__cx, const long double *__x) noexcept (true); | |
extern long double fmaxmagl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fmaxmagl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); | |
extern long double fminmagl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fminmagl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); | |
extern long double fmaximuml (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fmaximuml (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); | |
extern long double fminimuml (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fminimuml (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); | |
extern long double fmaximum_numl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fmaximum_numl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); | |
extern long double fminimum_numl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fminimum_numl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); | |
extern long double fmaximum_magl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fmaximum_magl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); | |
extern long double fminimum_magl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fminimum_magl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); | |
extern long double fmaximum_mag_numl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fmaximum_mag_numl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); | |
extern long double fminimum_mag_numl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fminimum_mag_numl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); | |
extern int totalorderl (const long double *__x, const long double *__y) noexcept (true) | |
__attribute__ ((__pure__)); | |
extern int totalordermagl (const long double *__x, const long double *__y) noexcept (true) | |
__attribute__ ((__pure__)); | |
extern long double getpayloadl (const long double *__x) noexcept (true); extern long double __getpayloadl (const long double *__x) noexcept (true); | |
extern int setpayloadl (long double *__x, long double __payload) noexcept (true); | |
extern int setpayloadsigl (long double *__x, long double __payload) noexcept (true); | |
extern long double scalbl (long double __x, long double __n) noexcept (true); extern long double __scalbl (long double __x, long double __n) noexcept (true); | |
# 400 "/usr/include/math.h" 2 3 4 | |
# 450 "/usr/include/math.h" 3 4 | |
# 1 "/usr/include/bits/mathcalls.h" 1 3 4 | |
# 53 "/usr/include/bits/mathcalls.h" 3 4 | |
extern _Float32 acosf32 (_Float32 __x) noexcept (true); extern _Float32 __acosf32 (_Float32 __x) noexcept (true); | |
extern _Float32 asinf32 (_Float32 __x) noexcept (true); extern _Float32 __asinf32 (_Float32 __x) noexcept (true); | |
extern _Float32 atanf32 (_Float32 __x) noexcept (true); extern _Float32 __atanf32 (_Float32 __x) noexcept (true); | |
extern _Float32 atan2f32 (_Float32 __y, _Float32 __x) noexcept (true); extern _Float32 __atan2f32 (_Float32 __y, _Float32 __x) noexcept (true); | |
extern _Float32 cosf32 (_Float32 __x) noexcept (true); extern _Float32 __cosf32 (_Float32 __x) noexcept (true); | |
extern _Float32 sinf32 (_Float32 __x) noexcept (true); extern _Float32 __sinf32 (_Float32 __x) noexcept (true); | |
extern _Float32 tanf32 (_Float32 __x) noexcept (true); extern _Float32 __tanf32 (_Float32 __x) noexcept (true); | |
extern _Float32 coshf32 (_Float32 __x) noexcept (true); extern _Float32 __coshf32 (_Float32 __x) noexcept (true); | |
extern _Float32 sinhf32 (_Float32 __x) noexcept (true); extern _Float32 __sinhf32 (_Float32 __x) noexcept (true); | |
extern _Float32 tanhf32 (_Float32 __x) noexcept (true); extern _Float32 __tanhf32 (_Float32 __x) noexcept (true); | |
extern void sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) noexcept (true); extern void __sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) noexcept (true) | |
; | |
extern _Float32 acoshf32 (_Float32 __x) noexcept (true); extern _Float32 __acoshf32 (_Float32 __x) noexcept (true); | |
extern _Float32 asinhf32 (_Float32 __x) noexcept (true); extern _Float32 __asinhf32 (_Float32 __x) noexcept (true); | |
extern _Float32 atanhf32 (_Float32 __x) noexcept (true); extern _Float32 __atanhf32 (_Float32 __x) noexcept (true); | |
extern _Float32 expf32 (_Float32 __x) noexcept (true); extern _Float32 __expf32 (_Float32 __x) noexcept (true); | |
extern _Float32 frexpf32 (_Float32 __x, int *__exponent) noexcept (true); extern _Float32 __frexpf32 (_Float32 __x, int *__exponent) noexcept (true); | |
extern _Float32 ldexpf32 (_Float32 __x, int __exponent) noexcept (true); extern _Float32 __ldexpf32 (_Float32 __x, int __exponent) noexcept (true); | |
extern _Float32 logf32 (_Float32 __x) noexcept (true); extern _Float32 __logf32 (_Float32 __x) noexcept (true); | |
extern _Float32 log10f32 (_Float32 __x) noexcept (true); extern _Float32 __log10f32 (_Float32 __x) noexcept (true); | |
extern _Float32 modff32 (_Float32 __x, _Float32 *__iptr) noexcept (true); extern _Float32 __modff32 (_Float32 __x, _Float32 *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); | |
extern _Float32 exp10f32 (_Float32 __x) noexcept (true); extern _Float32 __exp10f32 (_Float32 __x) noexcept (true); | |
extern _Float32 expm1f32 (_Float32 __x) noexcept (true); extern _Float32 __expm1f32 (_Float32 __x) noexcept (true); | |
extern _Float32 log1pf32 (_Float32 __x) noexcept (true); extern _Float32 __log1pf32 (_Float32 __x) noexcept (true); | |
extern _Float32 logbf32 (_Float32 __x) noexcept (true); extern _Float32 __logbf32 (_Float32 __x) noexcept (true); | |
extern _Float32 exp2f32 (_Float32 __x) noexcept (true); extern _Float32 __exp2f32 (_Float32 __x) noexcept (true); | |
extern _Float32 log2f32 (_Float32 __x) noexcept (true); extern _Float32 __log2f32 (_Float32 __x) noexcept (true); | |
extern _Float32 powf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __powf32 (_Float32 __x, _Float32 __y) noexcept (true); | |
extern _Float32 sqrtf32 (_Float32 __x) noexcept (true); extern _Float32 __sqrtf32 (_Float32 __x) noexcept (true); | |
extern _Float32 hypotf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __hypotf32 (_Float32 __x, _Float32 __y) noexcept (true); | |
extern _Float32 cbrtf32 (_Float32 __x) noexcept (true); extern _Float32 __cbrtf32 (_Float32 __x) noexcept (true); | |
extern _Float32 ceilf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __ceilf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); | |
extern _Float32 fabsf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fabsf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); | |
extern _Float32 floorf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __floorf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); | |
extern _Float32 fmodf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __fmodf32 (_Float32 __x, _Float32 __y) noexcept (true); | |
# 198 "/usr/include/bits/mathcalls.h" 3 4 | |
extern _Float32 copysignf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __copysignf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float32 nanf32 (const char *__tagb) noexcept (true); extern _Float32 __nanf32 (const char *__tagb) noexcept (true); | |
# 220 "/usr/include/bits/mathcalls.h" 3 4 | |
extern _Float32 j0f32 (_Float32) noexcept (true); extern _Float32 __j0f32 (_Float32) noexcept (true); | |
extern _Float32 j1f32 (_Float32) noexcept (true); extern _Float32 __j1f32 (_Float32) noexcept (true); | |
extern _Float32 jnf32 (int, _Float32) noexcept (true); extern _Float32 __jnf32 (int, _Float32) noexcept (true); | |
extern _Float32 y0f32 (_Float32) noexcept (true); extern _Float32 __y0f32 (_Float32) noexcept (true); | |
extern _Float32 y1f32 (_Float32) noexcept (true); extern _Float32 __y1f32 (_Float32) noexcept (true); | |
extern _Float32 ynf32 (int, _Float32) noexcept (true); extern _Float32 __ynf32 (int, _Float32) noexcept (true); | |
extern _Float32 erff32 (_Float32) noexcept (true); extern _Float32 __erff32 (_Float32) noexcept (true); | |
extern _Float32 erfcf32 (_Float32) noexcept (true); extern _Float32 __erfcf32 (_Float32) noexcept (true); | |
extern _Float32 lgammaf32 (_Float32) noexcept (true); extern _Float32 __lgammaf32 (_Float32) noexcept (true); | |
extern _Float32 tgammaf32 (_Float32) noexcept (true); extern _Float32 __tgammaf32 (_Float32) noexcept (true); | |
# 252 "/usr/include/bits/mathcalls.h" 3 4 | |
extern _Float32 lgammaf32_r (_Float32, int *__signgamp) noexcept (true); extern _Float32 __lgammaf32_r (_Float32, int *__signgamp) noexcept (true); | |
extern _Float32 rintf32 (_Float32 __x) noexcept (true); extern _Float32 __rintf32 (_Float32 __x) noexcept (true); | |
extern _Float32 nextafterf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __nextafterf32 (_Float32 __x, _Float32 __y) noexcept (true); | |
extern _Float32 nextdownf32 (_Float32 __x) noexcept (true); extern _Float32 __nextdownf32 (_Float32 __x) noexcept (true); | |
extern _Float32 nextupf32 (_Float32 __x) noexcept (true); extern _Float32 __nextupf32 (_Float32 __x) noexcept (true); | |
extern _Float32 remainderf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __remainderf32 (_Float32 __x, _Float32 __y) noexcept (true); | |
extern _Float32 scalbnf32 (_Float32 __x, int __n) noexcept (true); extern _Float32 __scalbnf32 (_Float32 __x, int __n) noexcept (true); | |
extern int ilogbf32 (_Float32 __x) noexcept (true); extern int __ilogbf32 (_Float32 __x) noexcept (true); | |
extern long int llogbf32 (_Float32 __x) noexcept (true); extern long int __llogbf32 (_Float32 __x) noexcept (true); | |
extern _Float32 scalblnf32 (_Float32 __x, long int __n) noexcept (true); extern _Float32 __scalblnf32 (_Float32 __x, long int __n) noexcept (true); | |
extern _Float32 nearbyintf32 (_Float32 __x) noexcept (true); extern _Float32 __nearbyintf32 (_Float32 __x) noexcept (true); | |
extern _Float32 roundf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __roundf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); | |
extern _Float32 truncf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __truncf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); | |
extern _Float32 remquof32 (_Float32 __x, _Float32 __y, int *__quo) noexcept (true); extern _Float32 __remquof32 (_Float32 __x, _Float32 __y, int *__quo) noexcept (true); | |
extern long int lrintf32 (_Float32 __x) noexcept (true); extern long int __lrintf32 (_Float32 __x) noexcept (true); | |
__extension__ | |
extern long long int llrintf32 (_Float32 __x) noexcept (true); extern long long int __llrintf32 (_Float32 __x) noexcept (true); | |
extern long int lroundf32 (_Float32 __x) noexcept (true); extern long int __lroundf32 (_Float32 __x) noexcept (true); | |
__extension__ | |
extern long long int llroundf32 (_Float32 __x) noexcept (true); extern long long int __llroundf32 (_Float32 __x) noexcept (true); | |
extern _Float32 fdimf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __fdimf32 (_Float32 __x, _Float32 __y) noexcept (true); | |
extern _Float32 fmaxf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaxf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float32 fminf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float32 fmaf32 (_Float32 __x, _Float32 __y, _Float32 __z) noexcept (true); extern _Float32 __fmaf32 (_Float32 __x, _Float32 __y, _Float32 __z) noexcept (true); | |
extern _Float32 roundevenf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __roundevenf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); | |
extern __intmax_t fromfpf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true) | |
; | |
extern __uintmax_t ufromfpf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true) | |
; | |
extern __intmax_t fromfpxf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpxf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true) | |
; | |
extern __uintmax_t ufromfpxf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpxf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true) | |
; | |
extern int canonicalizef32 (_Float32 *__cx, const _Float32 *__x) noexcept (true); | |
extern _Float32 fmaxmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaxmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float32 fminmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float32 fmaximumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float32 fminimumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float32 fmaximum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float32 fminimum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float32 fmaximum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float32 fminimum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float32 fmaximum_mag_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximum_mag_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float32 fminimum_mag_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimum_mag_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); | |
extern int totalorderf32 (const _Float32 *__x, const _Float32 *__y) noexcept (true) | |
__attribute__ ((__pure__)); | |
extern int totalordermagf32 (const _Float32 *__x, const _Float32 *__y) noexcept (true) | |
__attribute__ ((__pure__)); | |
extern _Float32 getpayloadf32 (const _Float32 *__x) noexcept (true); extern _Float32 __getpayloadf32 (const _Float32 *__x) noexcept (true); | |
extern int setpayloadf32 (_Float32 *__x, _Float32 __payload) noexcept (true); | |
extern int setpayloadsigf32 (_Float32 *__x, _Float32 __payload) noexcept (true); | |
# 451 "/usr/include/math.h" 2 3 4 | |
# 467 "/usr/include/math.h" 3 4 | |
# 1 "/usr/include/bits/mathcalls.h" 1 3 4 | |
# 53 "/usr/include/bits/mathcalls.h" 3 4 | |
extern _Float64 acosf64 (_Float64 __x) noexcept (true); extern _Float64 __acosf64 (_Float64 __x) noexcept (true); | |
extern _Float64 asinf64 (_Float64 __x) noexcept (true); extern _Float64 __asinf64 (_Float64 __x) noexcept (true); | |
extern _Float64 atanf64 (_Float64 __x) noexcept (true); extern _Float64 __atanf64 (_Float64 __x) noexcept (true); | |
extern _Float64 atan2f64 (_Float64 __y, _Float64 __x) noexcept (true); extern _Float64 __atan2f64 (_Float64 __y, _Float64 __x) noexcept (true); | |
extern _Float64 cosf64 (_Float64 __x) noexcept (true); extern _Float64 __cosf64 (_Float64 __x) noexcept (true); | |
extern _Float64 sinf64 (_Float64 __x) noexcept (true); extern _Float64 __sinf64 (_Float64 __x) noexcept (true); | |
extern _Float64 tanf64 (_Float64 __x) noexcept (true); extern _Float64 __tanf64 (_Float64 __x) noexcept (true); | |
extern _Float64 coshf64 (_Float64 __x) noexcept (true); extern _Float64 __coshf64 (_Float64 __x) noexcept (true); | |
extern _Float64 sinhf64 (_Float64 __x) noexcept (true); extern _Float64 __sinhf64 (_Float64 __x) noexcept (true); | |
extern _Float64 tanhf64 (_Float64 __x) noexcept (true); extern _Float64 __tanhf64 (_Float64 __x) noexcept (true); | |
extern void sincosf64 (_Float64 __x, _Float64 *__sinx, _Float64 *__cosx) noexcept (true); extern void __sincosf64 (_Float64 __x, _Float64 *__sinx, _Float64 *__cosx) noexcept (true) | |
; | |
extern _Float64 acoshf64 (_Float64 __x) noexcept (true); extern _Float64 __acoshf64 (_Float64 __x) noexcept (true); | |
extern _Float64 asinhf64 (_Float64 __x) noexcept (true); extern _Float64 __asinhf64 (_Float64 __x) noexcept (true); | |
extern _Float64 atanhf64 (_Float64 __x) noexcept (true); extern _Float64 __atanhf64 (_Float64 __x) noexcept (true); | |
extern _Float64 expf64 (_Float64 __x) noexcept (true); extern _Float64 __expf64 (_Float64 __x) noexcept (true); | |
extern _Float64 frexpf64 (_Float64 __x, int *__exponent) noexcept (true); extern _Float64 __frexpf64 (_Float64 __x, int *__exponent) noexcept (true); | |
extern _Float64 ldexpf64 (_Float64 __x, int __exponent) noexcept (true); extern _Float64 __ldexpf64 (_Float64 __x, int __exponent) noexcept (true); | |
extern _Float64 logf64 (_Float64 __x) noexcept (true); extern _Float64 __logf64 (_Float64 __x) noexcept (true); | |
extern _Float64 log10f64 (_Float64 __x) noexcept (true); extern _Float64 __log10f64 (_Float64 __x) noexcept (true); | |
extern _Float64 modff64 (_Float64 __x, _Float64 *__iptr) noexcept (true); extern _Float64 __modff64 (_Float64 __x, _Float64 *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); | |
extern _Float64 exp10f64 (_Float64 __x) noexcept (true); extern _Float64 __exp10f64 (_Float64 __x) noexcept (true); | |
extern _Float64 expm1f64 (_Float64 __x) noexcept (true); extern _Float64 __expm1f64 (_Float64 __x) noexcept (true); | |
extern _Float64 log1pf64 (_Float64 __x) noexcept (true); extern _Float64 __log1pf64 (_Float64 __x) noexcept (true); | |
extern _Float64 logbf64 (_Float64 __x) noexcept (true); extern _Float64 __logbf64 (_Float64 __x) noexcept (true); | |
extern _Float64 exp2f64 (_Float64 __x) noexcept (true); extern _Float64 __exp2f64 (_Float64 __x) noexcept (true); | |
extern _Float64 log2f64 (_Float64 __x) noexcept (true); extern _Float64 __log2f64 (_Float64 __x) noexcept (true); | |
extern _Float64 powf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __powf64 (_Float64 __x, _Float64 __y) noexcept (true); | |
extern _Float64 sqrtf64 (_Float64 __x) noexcept (true); extern _Float64 __sqrtf64 (_Float64 __x) noexcept (true); | |
extern _Float64 hypotf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __hypotf64 (_Float64 __x, _Float64 __y) noexcept (true); | |
extern _Float64 cbrtf64 (_Float64 __x) noexcept (true); extern _Float64 __cbrtf64 (_Float64 __x) noexcept (true); | |
extern _Float64 ceilf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __ceilf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); | |
extern _Float64 fabsf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fabsf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); | |
extern _Float64 floorf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __floorf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); | |
extern _Float64 fmodf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __fmodf64 (_Float64 __x, _Float64 __y) noexcept (true); | |
# 198 "/usr/include/bits/mathcalls.h" 3 4 | |
extern _Float64 copysignf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __copysignf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float64 nanf64 (const char *__tagb) noexcept (true); extern _Float64 __nanf64 (const char *__tagb) noexcept (true); | |
# 220 "/usr/include/bits/mathcalls.h" 3 4 | |
extern _Float64 j0f64 (_Float64) noexcept (true); extern _Float64 __j0f64 (_Float64) noexcept (true); | |
extern _Float64 j1f64 (_Float64) noexcept (true); extern _Float64 __j1f64 (_Float64) noexcept (true); | |
extern _Float64 jnf64 (int, _Float64) noexcept (true); extern _Float64 __jnf64 (int, _Float64) noexcept (true); | |
extern _Float64 y0f64 (_Float64) noexcept (true); extern _Float64 __y0f64 (_Float64) noexcept (true); | |
extern _Float64 y1f64 (_Float64) noexcept (true); extern _Float64 __y1f64 (_Float64) noexcept (true); | |
extern _Float64 ynf64 (int, _Float64) noexcept (true); extern _Float64 __ynf64 (int, _Float64) noexcept (true); | |
extern _Float64 erff64 (_Float64) noexcept (true); extern _Float64 __erff64 (_Float64) noexcept (true); | |
extern _Float64 erfcf64 (_Float64) noexcept (true); extern _Float64 __erfcf64 (_Float64) noexcept (true); | |
extern _Float64 lgammaf64 (_Float64) noexcept (true); extern _Float64 __lgammaf64 (_Float64) noexcept (true); | |
extern _Float64 tgammaf64 (_Float64) noexcept (true); extern _Float64 __tgammaf64 (_Float64) noexcept (true); | |
# 252 "/usr/include/bits/mathcalls.h" 3 4 | |
extern _Float64 lgammaf64_r (_Float64, int *__signgamp) noexcept (true); extern _Float64 __lgammaf64_r (_Float64, int *__signgamp) noexcept (true); | |
extern _Float64 rintf64 (_Float64 __x) noexcept (true); extern _Float64 __rintf64 (_Float64 __x) noexcept (true); | |
extern _Float64 nextafterf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __nextafterf64 (_Float64 __x, _Float64 __y) noexcept (true); | |
extern _Float64 nextdownf64 (_Float64 __x) noexcept (true); extern _Float64 __nextdownf64 (_Float64 __x) noexcept (true); | |
extern _Float64 nextupf64 (_Float64 __x) noexcept (true); extern _Float64 __nextupf64 (_Float64 __x) noexcept (true); | |
extern _Float64 remainderf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __remainderf64 (_Float64 __x, _Float64 __y) noexcept (true); | |
extern _Float64 scalbnf64 (_Float64 __x, int __n) noexcept (true); extern _Float64 __scalbnf64 (_Float64 __x, int __n) noexcept (true); | |
extern int ilogbf64 (_Float64 __x) noexcept (true); extern int __ilogbf64 (_Float64 __x) noexcept (true); | |
extern long int llogbf64 (_Float64 __x) noexcept (true); extern long int __llogbf64 (_Float64 __x) noexcept (true); | |
extern _Float64 scalblnf64 (_Float64 __x, long int __n) noexcept (true); extern _Float64 __scalblnf64 (_Float64 __x, long int __n) noexcept (true); | |
extern _Float64 nearbyintf64 (_Float64 __x) noexcept (true); extern _Float64 __nearbyintf64 (_Float64 __x) noexcept (true); | |
extern _Float64 roundf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __roundf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); | |
extern _Float64 truncf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __truncf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); | |
extern _Float64 remquof64 (_Float64 __x, _Float64 __y, int *__quo) noexcept (true); extern _Float64 __remquof64 (_Float64 __x, _Float64 __y, int *__quo) noexcept (true); | |
extern long int lrintf64 (_Float64 __x) noexcept (true); extern long int __lrintf64 (_Float64 __x) noexcept (true); | |
__extension__ | |
extern long long int llrintf64 (_Float64 __x) noexcept (true); extern long long int __llrintf64 (_Float64 __x) noexcept (true); | |
extern long int lroundf64 (_Float64 __x) noexcept (true); extern long int __lroundf64 (_Float64 __x) noexcept (true); | |
__extension__ | |
extern long long int llroundf64 (_Float64 __x) noexcept (true); extern long long int __llroundf64 (_Float64 __x) noexcept (true); | |
extern _Float64 fdimf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __fdimf64 (_Float64 __x, _Float64 __y) noexcept (true); | |
extern _Float64 fmaxf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaxf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float64 fminf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float64 fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); extern _Float64 __fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); | |
extern _Float64 roundevenf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __roundevenf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); | |
extern __intmax_t fromfpf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true) | |
; | |
extern __uintmax_t ufromfpf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true) | |
; | |
extern __intmax_t fromfpxf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpxf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true) | |
; | |
extern __uintmax_t ufromfpxf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpxf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true) | |
; | |
extern int canonicalizef64 (_Float64 *__cx, const _Float64 *__x) noexcept (true); | |
extern _Float64 fmaxmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaxmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float64 fminmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float64 fmaximumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float64 fminimumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float64 fmaximum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float64 fminimum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float64 fmaximum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float64 fminimum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float64 fmaximum_mag_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximum_mag_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float64 fminimum_mag_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimum_mag_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); | |
extern int totalorderf64 (const _Float64 *__x, const _Float64 *__y) noexcept (true) | |
__attribute__ ((__pure__)); | |
extern int totalordermagf64 (const _Float64 *__x, const _Float64 *__y) noexcept (true) | |
__attribute__ ((__pure__)); | |
extern _Float64 getpayloadf64 (const _Float64 *__x) noexcept (true); extern _Float64 __getpayloadf64 (const _Float64 *__x) noexcept (true); | |
extern int setpayloadf64 (_Float64 *__x, _Float64 __payload) noexcept (true); | |
extern int setpayloadsigf64 (_Float64 *__x, _Float64 __payload) noexcept (true); | |
# 468 "/usr/include/math.h" 2 3 4 | |
# 481 "/usr/include/math.h" 3 4 | |
# 1 "/usr/include/bits/mathcalls-helper-functions.h" 1 3 4 | |
# 20 "/usr/include/bits/mathcalls-helper-functions.h" 3 4 | |
extern int __fpclassifyf128 (_Float128 __value) noexcept (true) | |
__attribute__ ((__const__)); | |
extern int __signbitf128 (_Float128 __value) noexcept (true) | |
__attribute__ ((__const__)); | |
extern int __isinff128 (_Float128 __value) noexcept (true) | |
__attribute__ ((__const__)); | |
extern int __finitef128 (_Float128 __value) noexcept (true) | |
__attribute__ ((__const__)); | |
extern int __isnanf128 (_Float128 __value) noexcept (true) | |
__attribute__ ((__const__)); | |
extern int __iseqsigf128 (_Float128 __x, _Float128 __y) noexcept (true); | |
extern int __issignalingf128 (_Float128 __value) noexcept (true) | |
__attribute__ ((__const__)); | |
# 482 "/usr/include/math.h" 2 3 4 | |
# 1 "/usr/include/bits/mathcalls.h" 1 3 4 | |
# 53 "/usr/include/bits/mathcalls.h" 3 4 | |
extern _Float128 acosf128 (_Float128 __x) noexcept (true); extern _Float128 __acosf128 (_Float128 __x) noexcept (true); | |
extern _Float128 asinf128 (_Float128 __x) noexcept (true); extern _Float128 __asinf128 (_Float128 __x) noexcept (true); | |
extern _Float128 atanf128 (_Float128 __x) noexcept (true); extern _Float128 __atanf128 (_Float128 __x) noexcept (true); | |
extern _Float128 atan2f128 (_Float128 __y, _Float128 __x) noexcept (true); extern _Float128 __atan2f128 (_Float128 __y, _Float128 __x) noexcept (true); | |
extern _Float128 cosf128 (_Float128 __x) noexcept (true); extern _Float128 __cosf128 (_Float128 __x) noexcept (true); | |
extern _Float128 sinf128 (_Float128 __x) noexcept (true); extern _Float128 __sinf128 (_Float128 __x) noexcept (true); | |
extern _Float128 tanf128 (_Float128 __x) noexcept (true); extern _Float128 __tanf128 (_Float128 __x) noexcept (true); | |
extern _Float128 coshf128 (_Float128 __x) noexcept (true); extern _Float128 __coshf128 (_Float128 __x) noexcept (true); | |
extern _Float128 sinhf128 (_Float128 __x) noexcept (true); extern _Float128 __sinhf128 (_Float128 __x) noexcept (true); | |
extern _Float128 tanhf128 (_Float128 __x) noexcept (true); extern _Float128 __tanhf128 (_Float128 __x) noexcept (true); | |
extern void sincosf128 (_Float128 __x, _Float128 *__sinx, _Float128 *__cosx) noexcept (true); extern void __sincosf128 (_Float128 __x, _Float128 *__sinx, _Float128 *__cosx) noexcept (true) | |
; | |
extern _Float128 acoshf128 (_Float128 __x) noexcept (true); extern _Float128 __acoshf128 (_Float128 __x) noexcept (true); | |
extern _Float128 asinhf128 (_Float128 __x) noexcept (true); extern _Float128 __asinhf128 (_Float128 __x) noexcept (true); | |
extern _Float128 atanhf128 (_Float128 __x) noexcept (true); extern _Float128 __atanhf128 (_Float128 __x) noexcept (true); | |
extern _Float128 expf128 (_Float128 __x) noexcept (true); extern _Float128 __expf128 (_Float128 __x) noexcept (true); | |
extern _Float128 frexpf128 (_Float128 __x, int *__exponent) noexcept (true); extern _Float128 __frexpf128 (_Float128 __x, int *__exponent) noexcept (true); | |
extern _Float128 ldexpf128 (_Float128 __x, int __exponent) noexcept (true); extern _Float128 __ldexpf128 (_Float128 __x, int __exponent) noexcept (true); | |
extern _Float128 logf128 (_Float128 __x) noexcept (true); extern _Float128 __logf128 (_Float128 __x) noexcept (true); | |
extern _Float128 log10f128 (_Float128 __x) noexcept (true); extern _Float128 __log10f128 (_Float128 __x) noexcept (true); | |
extern _Float128 modff128 (_Float128 __x, _Float128 *__iptr) noexcept (true); extern _Float128 __modff128 (_Float128 __x, _Float128 *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); | |
extern _Float128 exp10f128 (_Float128 __x) noexcept (true); extern _Float128 __exp10f128 (_Float128 __x) noexcept (true); | |
extern _Float128 expm1f128 (_Float128 __x) noexcept (true); extern _Float128 __expm1f128 (_Float128 __x) noexcept (true); | |
extern _Float128 log1pf128 (_Float128 __x) noexcept (true); extern _Float128 __log1pf128 (_Float128 __x) noexcept (true); | |
extern _Float128 logbf128 (_Float128 __x) noexcept (true); extern _Float128 __logbf128 (_Float128 __x) noexcept (true); | |
extern _Float128 exp2f128 (_Float128 __x) noexcept (true); extern _Float128 __exp2f128 (_Float128 __x) noexcept (true); | |
extern _Float128 log2f128 (_Float128 __x) noexcept (true); extern _Float128 __log2f128 (_Float128 __x) noexcept (true); | |
extern _Float128 powf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float128 __powf128 (_Float128 __x, _Float128 __y) noexcept (true); | |
extern _Float128 sqrtf128 (_Float128 __x) noexcept (true); extern _Float128 __sqrtf128 (_Float128 __x) noexcept (true); | |
extern _Float128 hypotf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float128 __hypotf128 (_Float128 __x, _Float128 __y) noexcept (true); | |
extern _Float128 cbrtf128 (_Float128 __x) noexcept (true); extern _Float128 __cbrtf128 (_Float128 __x) noexcept (true); | |
extern _Float128 ceilf128 (_Float128 __x) noexcept (true) __attribute__ ((__const__)); extern _Float128 __ceilf128 (_Float128 __x) noexcept (true) __attribute__ ((__const__)); | |
extern _Float128 fabsf128 (_Float128 __x) noexcept (true) __attribute__ ((__const__)); extern _Float128 __fabsf128 (_Float128 __x) noexcept (true) __attribute__ ((__const__)); | |
extern _Float128 floorf128 (_Float128 __x) noexcept (true) __attribute__ ((__const__)); extern _Float128 __floorf128 (_Float128 __x) noexcept (true) __attribute__ ((__const__)); | |
extern _Float128 fmodf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float128 __fmodf128 (_Float128 __x, _Float128 __y) noexcept (true); | |
# 198 "/usr/include/bits/mathcalls.h" 3 4 | |
extern _Float128 copysignf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 __copysignf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float128 nanf128 (const char *__tagb) noexcept (true); extern _Float128 __nanf128 (const char *__tagb) noexcept (true); | |
# 220 "/usr/include/bits/mathcalls.h" 3 4 | |
extern _Float128 j0f128 (_Float128) noexcept (true); extern _Float128 __j0f128 (_Float128) noexcept (true); | |
extern _Float128 j1f128 (_Float128) noexcept (true); extern _Float128 __j1f128 (_Float128) noexcept (true); | |
extern _Float128 jnf128 (int, _Float128) noexcept (true); extern _Float128 __jnf128 (int, _Float128) noexcept (true); | |
extern _Float128 y0f128 (_Float128) noexcept (true); extern _Float128 __y0f128 (_Float128) noexcept (true); | |
extern _Float128 y1f128 (_Float128) noexcept (true); extern _Float128 __y1f128 (_Float128) noexcept (true); | |
extern _Float128 ynf128 (int, _Float128) noexcept (true); extern _Float128 __ynf128 (int, _Float128) noexcept (true); | |
extern _Float128 erff128 (_Float128) noexcept (true); extern _Float128 __erff128 (_Float128) noexcept (true); | |
extern _Float128 erfcf128 (_Float128) noexcept (true); extern _Float128 __erfcf128 (_Float128) noexcept (true); | |
extern _Float128 lgammaf128 (_Float128) noexcept (true); extern _Float128 __lgammaf128 (_Float128) noexcept (true); | |
extern _Float128 tgammaf128 (_Float128) noexcept (true); extern _Float128 __tgammaf128 (_Float128) noexcept (true); | |
# 252 "/usr/include/bits/mathcalls.h" 3 4 | |
extern _Float128 lgammaf128_r (_Float128, int *__signgamp) noexcept (true); extern _Float128 __lgammaf128_r (_Float128, int *__signgamp) noexcept (true); | |
extern _Float128 rintf128 (_Float128 __x) noexcept (true); extern _Float128 __rintf128 (_Float128 __x) noexcept (true); | |
extern _Float128 nextafterf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float128 __nextafterf128 (_Float128 __x, _Float128 __y) noexcept (true); | |
extern _Float128 nextdownf128 (_Float128 __x) noexcept (true); extern _Float128 __nextdownf128 (_Float128 __x) noexcept (true); | |
extern _Float128 nextupf128 (_Float128 __x) noexcept (true); extern _Float128 __nextupf128 (_Float128 __x) noexcept (true); | |
extern _Float128 remainderf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float128 __remainderf128 (_Float128 __x, _Float128 __y) noexcept (true); | |
extern _Float128 scalbnf128 (_Float128 __x, int __n) noexcept (true); extern _Float128 __scalbnf128 (_Float128 __x, int __n) noexcept (true); | |
extern int ilogbf128 (_Float128 __x) noexcept (true); extern int __ilogbf128 (_Float128 __x) noexcept (true); | |
extern long int llogbf128 (_Float128 __x) noexcept (true); extern long int __llogbf128 (_Float128 __x) noexcept (true); | |
extern _Float128 scalblnf128 (_Float128 __x, long int __n) noexcept (true); extern _Float128 __scalblnf128 (_Float128 __x, long int __n) noexcept (true); | |
extern _Float128 nearbyintf128 (_Float128 __x) noexcept (true); extern _Float128 __nearbyintf128 (_Float128 __x) noexcept (true); | |
extern _Float128 roundf128 (_Float128 __x) noexcept (true) __attribute__ ((__const__)); extern _Float128 __roundf128 (_Float128 __x) noexcept (true) __attribute__ ((__const__)); | |
extern _Float128 truncf128 (_Float128 __x) noexcept (true) __attribute__ ((__const__)); extern _Float128 __truncf128 (_Float128 __x) noexcept (true) __attribute__ ((__const__)); | |
extern _Float128 remquof128 (_Float128 __x, _Float128 __y, int *__quo) noexcept (true); extern _Float128 __remquof128 (_Float128 __x, _Float128 __y, int *__quo) noexcept (true); | |
extern long int lrintf128 (_Float128 __x) noexcept (true); extern long int __lrintf128 (_Float128 __x) noexcept (true); | |
__extension__ | |
extern long long int llrintf128 (_Float128 __x) noexcept (true); extern long long int __llrintf128 (_Float128 __x) noexcept (true); | |
extern long int lroundf128 (_Float128 __x) noexcept (true); extern long int __lroundf128 (_Float128 __x) noexcept (true); | |
__extension__ | |
extern long long int llroundf128 (_Float128 __x) noexcept (true); extern long long int __llroundf128 (_Float128 __x) noexcept (true); | |
extern _Float128 fdimf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float128 __fdimf128 (_Float128 __x, _Float128 __y) noexcept (true); | |
extern _Float128 fmaxf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 __fmaxf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float128 fminf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 __fminf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float128 fmaf128 (_Float128 __x, _Float128 __y, _Float128 __z) noexcept (true); extern _Float128 __fmaf128 (_Float128 __x, _Float128 __y, _Float128 __z) noexcept (true); | |
extern _Float128 roundevenf128 (_Float128 __x) noexcept (true) __attribute__ ((__const__)); extern _Float128 __roundevenf128 (_Float128 __x) noexcept (true) __attribute__ ((__const__)); | |
extern __intmax_t fromfpf128 (_Float128 __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpf128 (_Float128 __x, int __round, unsigned int __width) noexcept (true) | |
; | |
extern __uintmax_t ufromfpf128 (_Float128 __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpf128 (_Float128 __x, int __round, unsigned int __width) noexcept (true) | |
; | |
extern __intmax_t fromfpxf128 (_Float128 __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpxf128 (_Float128 __x, int __round, unsigned int __width) noexcept (true) | |
; | |
extern __uintmax_t ufromfpxf128 (_Float128 __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpxf128 (_Float128 __x, int __round, unsigned int __width) noexcept (true) | |
; | |
extern int canonicalizef128 (_Float128 *__cx, const _Float128 *__x) noexcept (true); | |
extern _Float128 fmaxmagf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 __fmaxmagf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float128 fminmagf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 __fminmagf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float128 fmaximumf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 __fmaximumf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float128 fminimumf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 __fminimumf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float128 fmaximum_numf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 __fmaximum_numf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float128 fminimum_numf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 __fminimum_numf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float128 fmaximum_magf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 __fmaximum_magf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float128 fminimum_magf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 __fminimum_magf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float128 fmaximum_mag_numf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 __fmaximum_mag_numf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float128 fminimum_mag_numf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 __fminimum_mag_numf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); | |
extern int totalorderf128 (const _Float128 *__x, const _Float128 *__y) noexcept (true) | |
__attribute__ ((__pure__)); | |
extern int totalordermagf128 (const _Float128 *__x, const _Float128 *__y) noexcept (true) | |
__attribute__ ((__pure__)); | |
extern _Float128 getpayloadf128 (const _Float128 *__x) noexcept (true); extern _Float128 __getpayloadf128 (const _Float128 *__x) noexcept (true); | |
extern int setpayloadf128 (_Float128 *__x, _Float128 __payload) noexcept (true); | |
extern int setpayloadsigf128 (_Float128 *__x, _Float128 __payload) noexcept (true); | |
# 485 "/usr/include/math.h" 2 3 4 | |
# 501 "/usr/include/math.h" 3 4 | |
# 1 "/usr/include/bits/mathcalls.h" 1 3 4 | |
# 53 "/usr/include/bits/mathcalls.h" 3 4 | |
extern _Float32x acosf32x (_Float32x __x) noexcept (true); extern _Float32x __acosf32x (_Float32x __x) noexcept (true); | |
extern _Float32x asinf32x (_Float32x __x) noexcept (true); extern _Float32x __asinf32x (_Float32x __x) noexcept (true); | |
extern _Float32x atanf32x (_Float32x __x) noexcept (true); extern _Float32x __atanf32x (_Float32x __x) noexcept (true); | |
extern _Float32x atan2f32x (_Float32x __y, _Float32x __x) noexcept (true); extern _Float32x __atan2f32x (_Float32x __y, _Float32x __x) noexcept (true); | |
extern _Float32x cosf32x (_Float32x __x) noexcept (true); extern _Float32x __cosf32x (_Float32x __x) noexcept (true); | |
extern _Float32x sinf32x (_Float32x __x) noexcept (true); extern _Float32x __sinf32x (_Float32x __x) noexcept (true); | |
extern _Float32x tanf32x (_Float32x __x) noexcept (true); extern _Float32x __tanf32x (_Float32x __x) noexcept (true); | |
extern _Float32x coshf32x (_Float32x __x) noexcept (true); extern _Float32x __coshf32x (_Float32x __x) noexcept (true); | |
extern _Float32x sinhf32x (_Float32x __x) noexcept (true); extern _Float32x __sinhf32x (_Float32x __x) noexcept (true); | |
extern _Float32x tanhf32x (_Float32x __x) noexcept (true); extern _Float32x __tanhf32x (_Float32x __x) noexcept (true); | |
extern void sincosf32x (_Float32x __x, _Float32x *__sinx, _Float32x *__cosx) noexcept (true); extern void __sincosf32x (_Float32x __x, _Float32x *__sinx, _Float32x *__cosx) noexcept (true) | |
; | |
extern _Float32x acoshf32x (_Float32x __x) noexcept (true); extern _Float32x __acoshf32x (_Float32x __x) noexcept (true); | |
extern _Float32x asinhf32x (_Float32x __x) noexcept (true); extern _Float32x __asinhf32x (_Float32x __x) noexcept (true); | |
extern _Float32x atanhf32x (_Float32x __x) noexcept (true); extern _Float32x __atanhf32x (_Float32x __x) noexcept (true); | |
extern _Float32x expf32x (_Float32x __x) noexcept (true); extern _Float32x __expf32x (_Float32x __x) noexcept (true); | |
extern _Float32x frexpf32x (_Float32x __x, int *__exponent) noexcept (true); extern _Float32x __frexpf32x (_Float32x __x, int *__exponent) noexcept (true); | |
extern _Float32x ldexpf32x (_Float32x __x, int __exponent) noexcept (true); extern _Float32x __ldexpf32x (_Float32x __x, int __exponent) noexcept (true); | |
extern _Float32x logf32x (_Float32x __x) noexcept (true); extern _Float32x __logf32x (_Float32x __x) noexcept (true); | |
extern _Float32x log10f32x (_Float32x __x) noexcept (true); extern _Float32x __log10f32x (_Float32x __x) noexcept (true); | |
extern _Float32x modff32x (_Float32x __x, _Float32x *__iptr) noexcept (true); extern _Float32x __modff32x (_Float32x __x, _Float32x *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); | |
extern _Float32x exp10f32x (_Float32x __x) noexcept (true); extern _Float32x __exp10f32x (_Float32x __x) noexcept (true); | |
extern _Float32x expm1f32x (_Float32x __x) noexcept (true); extern _Float32x __expm1f32x (_Float32x __x) noexcept (true); | |
extern _Float32x log1pf32x (_Float32x __x) noexcept (true); extern _Float32x __log1pf32x (_Float32x __x) noexcept (true); | |
extern _Float32x logbf32x (_Float32x __x) noexcept (true); extern _Float32x __logbf32x (_Float32x __x) noexcept (true); | |
extern _Float32x exp2f32x (_Float32x __x) noexcept (true); extern _Float32x __exp2f32x (_Float32x __x) noexcept (true); | |
extern _Float32x log2f32x (_Float32x __x) noexcept (true); extern _Float32x __log2f32x (_Float32x __x) noexcept (true); | |
extern _Float32x powf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __powf32x (_Float32x __x, _Float32x __y) noexcept (true); | |
extern _Float32x sqrtf32x (_Float32x __x) noexcept (true); extern _Float32x __sqrtf32x (_Float32x __x) noexcept (true); | |
extern _Float32x hypotf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __hypotf32x (_Float32x __x, _Float32x __y) noexcept (true); | |
extern _Float32x cbrtf32x (_Float32x __x) noexcept (true); extern _Float32x __cbrtf32x (_Float32x __x) noexcept (true); | |
extern _Float32x ceilf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __ceilf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); | |
extern _Float32x fabsf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fabsf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); | |
extern _Float32x floorf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __floorf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); | |
extern _Float32x fmodf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __fmodf32x (_Float32x __x, _Float32x __y) noexcept (true); | |
# 198 "/usr/include/bits/mathcalls.h" 3 4 | |
extern _Float32x copysignf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __copysignf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float32x nanf32x (const char *__tagb) noexcept (true); extern _Float32x __nanf32x (const char *__tagb) noexcept (true); | |
# 220 "/usr/include/bits/mathcalls.h" 3 4 | |
extern _Float32x j0f32x (_Float32x) noexcept (true); extern _Float32x __j0f32x (_Float32x) noexcept (true); | |
extern _Float32x j1f32x (_Float32x) noexcept (true); extern _Float32x __j1f32x (_Float32x) noexcept (true); | |
extern _Float32x jnf32x (int, _Float32x) noexcept (true); extern _Float32x __jnf32x (int, _Float32x) noexcept (true); | |
extern _Float32x y0f32x (_Float32x) noexcept (true); extern _Float32x __y0f32x (_Float32x) noexcept (true); | |
extern _Float32x y1f32x (_Float32x) noexcept (true); extern _Float32x __y1f32x (_Float32x) noexcept (true); | |
extern _Float32x ynf32x (int, _Float32x) noexcept (true); extern _Float32x __ynf32x (int, _Float32x) noexcept (true); | |
extern _Float32x erff32x (_Float32x) noexcept (true); extern _Float32x __erff32x (_Float32x) noexcept (true); | |
extern _Float32x erfcf32x (_Float32x) noexcept (true); extern _Float32x __erfcf32x (_Float32x) noexcept (true); | |
extern _Float32x lgammaf32x (_Float32x) noexcept (true); extern _Float32x __lgammaf32x (_Float32x) noexcept (true); | |
extern _Float32x tgammaf32x (_Float32x) noexcept (true); extern _Float32x __tgammaf32x (_Float32x) noexcept (true); | |
# 252 "/usr/include/bits/mathcalls.h" 3 4 | |
extern _Float32x lgammaf32x_r (_Float32x, int *__signgamp) noexcept (true); extern _Float32x __lgammaf32x_r (_Float32x, int *__signgamp) noexcept (true); | |
extern _Float32x rintf32x (_Float32x __x) noexcept (true); extern _Float32x __rintf32x (_Float32x __x) noexcept (true); | |
extern _Float32x nextafterf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __nextafterf32x (_Float32x __x, _Float32x __y) noexcept (true); | |
extern _Float32x nextdownf32x (_Float32x __x) noexcept (true); extern _Float32x __nextdownf32x (_Float32x __x) noexcept (true); | |
extern _Float32x nextupf32x (_Float32x __x) noexcept (true); extern _Float32x __nextupf32x (_Float32x __x) noexcept (true); | |
extern _Float32x remainderf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __remainderf32x (_Float32x __x, _Float32x __y) noexcept (true); | |
extern _Float32x scalbnf32x (_Float32x __x, int __n) noexcept (true); extern _Float32x __scalbnf32x (_Float32x __x, int __n) noexcept (true); | |
extern int ilogbf32x (_Float32x __x) noexcept (true); extern int __ilogbf32x (_Float32x __x) noexcept (true); | |
extern long int llogbf32x (_Float32x __x) noexcept (true); extern long int __llogbf32x (_Float32x __x) noexcept (true); | |
extern _Float32x scalblnf32x (_Float32x __x, long int __n) noexcept (true); extern _Float32x __scalblnf32x (_Float32x __x, long int __n) noexcept (true); | |
extern _Float32x nearbyintf32x (_Float32x __x) noexcept (true); extern _Float32x __nearbyintf32x (_Float32x __x) noexcept (true); | |
extern _Float32x roundf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __roundf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); | |
extern _Float32x truncf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __truncf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); | |
extern _Float32x remquof32x (_Float32x __x, _Float32x __y, int *__quo) noexcept (true); extern _Float32x __remquof32x (_Float32x __x, _Float32x __y, int *__quo) noexcept (true); | |
extern long int lrintf32x (_Float32x __x) noexcept (true); extern long int __lrintf32x (_Float32x __x) noexcept (true); | |
__extension__ | |
extern long long int llrintf32x (_Float32x __x) noexcept (true); extern long long int __llrintf32x (_Float32x __x) noexcept (true); | |
extern long int lroundf32x (_Float32x __x) noexcept (true); extern long int __lroundf32x (_Float32x __x) noexcept (true); | |
__extension__ | |
extern long long int llroundf32x (_Float32x __x) noexcept (true); extern long long int __llroundf32x (_Float32x __x) noexcept (true); | |
extern _Float32x fdimf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __fdimf32x (_Float32x __x, _Float32x __y) noexcept (true); | |
extern _Float32x fmaxf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaxf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float32x fminf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float32x fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); extern _Float32x __fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); | |
extern _Float32x roundevenf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __roundevenf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); | |
extern __intmax_t fromfpf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true) | |
; | |
extern __uintmax_t ufromfpf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true) | |
; | |
extern __intmax_t fromfpxf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpxf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true) | |
; | |
extern __uintmax_t ufromfpxf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpxf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true) | |
; | |
extern int canonicalizef32x (_Float32x *__cx, const _Float32x *__x) noexcept (true); | |
extern _Float32x fmaxmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaxmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float32x fminmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float32x fmaximumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float32x fminimumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float32x fmaximum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float32x fminimum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float32x fmaximum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float32x fminimum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float32x fmaximum_mag_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximum_mag_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float32x fminimum_mag_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimum_mag_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); | |
extern int totalorderf32x (const _Float32x *__x, const _Float32x *__y) noexcept (true) | |
__attribute__ ((__pure__)); | |
extern int totalordermagf32x (const _Float32x *__x, const _Float32x *__y) noexcept (true) | |
__attribute__ ((__pure__)); | |
extern _Float32x getpayloadf32x (const _Float32x *__x) noexcept (true); extern _Float32x __getpayloadf32x (const _Float32x *__x) noexcept (true); | |
extern int setpayloadf32x (_Float32x *__x, _Float32x __payload) noexcept (true); | |
extern int setpayloadsigf32x (_Float32x *__x, _Float32x __payload) noexcept (true); | |
# 502 "/usr/include/math.h" 2 3 4 | |
# 518 "/usr/include/math.h" 3 4 | |
# 1 "/usr/include/bits/mathcalls.h" 1 3 4 | |
# 53 "/usr/include/bits/mathcalls.h" 3 4 | |
extern _Float64x acosf64x (_Float64x __x) noexcept (true); extern _Float64x __acosf64x (_Float64x __x) noexcept (true); | |
extern _Float64x asinf64x (_Float64x __x) noexcept (true); extern _Float64x __asinf64x (_Float64x __x) noexcept (true); | |
extern _Float64x atanf64x (_Float64x __x) noexcept (true); extern _Float64x __atanf64x (_Float64x __x) noexcept (true); | |
extern _Float64x atan2f64x (_Float64x __y, _Float64x __x) noexcept (true); extern _Float64x __atan2f64x (_Float64x __y, _Float64x __x) noexcept (true); | |
extern _Float64x cosf64x (_Float64x __x) noexcept (true); extern _Float64x __cosf64x (_Float64x __x) noexcept (true); | |
extern _Float64x sinf64x (_Float64x __x) noexcept (true); extern _Float64x __sinf64x (_Float64x __x) noexcept (true); | |
extern _Float64x tanf64x (_Float64x __x) noexcept (true); extern _Float64x __tanf64x (_Float64x __x) noexcept (true); | |
extern _Float64x coshf64x (_Float64x __x) noexcept (true); extern _Float64x __coshf64x (_Float64x __x) noexcept (true); | |
extern _Float64x sinhf64x (_Float64x __x) noexcept (true); extern _Float64x __sinhf64x (_Float64x __x) noexcept (true); | |
extern _Float64x tanhf64x (_Float64x __x) noexcept (true); extern _Float64x __tanhf64x (_Float64x __x) noexcept (true); | |
extern void sincosf64x (_Float64x __x, _Float64x *__sinx, _Float64x *__cosx) noexcept (true); extern void __sincosf64x (_Float64x __x, _Float64x *__sinx, _Float64x *__cosx) noexcept (true) | |
; | |
extern _Float64x acoshf64x (_Float64x __x) noexcept (true); extern _Float64x __acoshf64x (_Float64x __x) noexcept (true); | |
extern _Float64x asinhf64x (_Float64x __x) noexcept (true); extern _Float64x __asinhf64x (_Float64x __x) noexcept (true); | |
extern _Float64x atanhf64x (_Float64x __x) noexcept (true); extern _Float64x __atanhf64x (_Float64x __x) noexcept (true); | |
extern _Float64x expf64x (_Float64x __x) noexcept (true); extern _Float64x __expf64x (_Float64x __x) noexcept (true); | |
extern _Float64x frexpf64x (_Float64x __x, int *__exponent) noexcept (true); extern _Float64x __frexpf64x (_Float64x __x, int *__exponent) noexcept (true); | |
extern _Float64x ldexpf64x (_Float64x __x, int __exponent) noexcept (true); extern _Float64x __ldexpf64x (_Float64x __x, int __exponent) noexcept (true); | |
extern _Float64x logf64x (_Float64x __x) noexcept (true); extern _Float64x __logf64x (_Float64x __x) noexcept (true); | |
extern _Float64x log10f64x (_Float64x __x) noexcept (true); extern _Float64x __log10f64x (_Float64x __x) noexcept (true); | |
extern _Float64x modff64x (_Float64x __x, _Float64x *__iptr) noexcept (true); extern _Float64x __modff64x (_Float64x __x, _Float64x *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); | |
extern _Float64x exp10f64x (_Float64x __x) noexcept (true); extern _Float64x __exp10f64x (_Float64x __x) noexcept (true); | |
extern _Float64x expm1f64x (_Float64x __x) noexcept (true); extern _Float64x __expm1f64x (_Float64x __x) noexcept (true); | |
extern _Float64x log1pf64x (_Float64x __x) noexcept (true); extern _Float64x __log1pf64x (_Float64x __x) noexcept (true); | |
extern _Float64x logbf64x (_Float64x __x) noexcept (true); extern _Float64x __logbf64x (_Float64x __x) noexcept (true); | |
extern _Float64x exp2f64x (_Float64x __x) noexcept (true); extern _Float64x __exp2f64x (_Float64x __x) noexcept (true); | |
extern _Float64x log2f64x (_Float64x __x) noexcept (true); extern _Float64x __log2f64x (_Float64x __x) noexcept (true); | |
extern _Float64x powf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float64x __powf64x (_Float64x __x, _Float64x __y) noexcept (true); | |
extern _Float64x sqrtf64x (_Float64x __x) noexcept (true); extern _Float64x __sqrtf64x (_Float64x __x) noexcept (true); | |
extern _Float64x hypotf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float64x __hypotf64x (_Float64x __x, _Float64x __y) noexcept (true); | |
extern _Float64x cbrtf64x (_Float64x __x) noexcept (true); extern _Float64x __cbrtf64x (_Float64x __x) noexcept (true); | |
extern _Float64x ceilf64x (_Float64x __x) noexcept (true) __attribute__ ((__const__)); extern _Float64x __ceilf64x (_Float64x __x) noexcept (true) __attribute__ ((__const__)); | |
extern _Float64x fabsf64x (_Float64x __x) noexcept (true) __attribute__ ((__const__)); extern _Float64x __fabsf64x (_Float64x __x) noexcept (true) __attribute__ ((__const__)); | |
extern _Float64x floorf64x (_Float64x __x) noexcept (true) __attribute__ ((__const__)); extern _Float64x __floorf64x (_Float64x __x) noexcept (true) __attribute__ ((__const__)); | |
extern _Float64x fmodf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float64x __fmodf64x (_Float64x __x, _Float64x __y) noexcept (true); | |
# 198 "/usr/include/bits/mathcalls.h" 3 4 | |
extern _Float64x copysignf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x __copysignf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float64x nanf64x (const char *__tagb) noexcept (true); extern _Float64x __nanf64x (const char *__tagb) noexcept (true); | |
# 220 "/usr/include/bits/mathcalls.h" 3 4 | |
extern _Float64x j0f64x (_Float64x) noexcept (true); extern _Float64x __j0f64x (_Float64x) noexcept (true); | |
extern _Float64x j1f64x (_Float64x) noexcept (true); extern _Float64x __j1f64x (_Float64x) noexcept (true); | |
extern _Float64x jnf64x (int, _Float64x) noexcept (true); extern _Float64x __jnf64x (int, _Float64x) noexcept (true); | |
extern _Float64x y0f64x (_Float64x) noexcept (true); extern _Float64x __y0f64x (_Float64x) noexcept (true); | |
extern _Float64x y1f64x (_Float64x) noexcept (true); extern _Float64x __y1f64x (_Float64x) noexcept (true); | |
extern _Float64x ynf64x (int, _Float64x) noexcept (true); extern _Float64x __ynf64x (int, _Float64x) noexcept (true); | |
extern _Float64x erff64x (_Float64x) noexcept (true); extern _Float64x __erff64x (_Float64x) noexcept (true); | |
extern _Float64x erfcf64x (_Float64x) noexcept (true); extern _Float64x __erfcf64x (_Float64x) noexcept (true); | |
extern _Float64x lgammaf64x (_Float64x) noexcept (true); extern _Float64x __lgammaf64x (_Float64x) noexcept (true); | |
extern _Float64x tgammaf64x (_Float64x) noexcept (true); extern _Float64x __tgammaf64x (_Float64x) noexcept (true); | |
# 252 "/usr/include/bits/mathcalls.h" 3 4 | |
extern _Float64x lgammaf64x_r (_Float64x, int *__signgamp) noexcept (true); extern _Float64x __lgammaf64x_r (_Float64x, int *__signgamp) noexcept (true); | |
extern _Float64x rintf64x (_Float64x __x) noexcept (true); extern _Float64x __rintf64x (_Float64x __x) noexcept (true); | |
extern _Float64x nextafterf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float64x __nextafterf64x (_Float64x __x, _Float64x __y) noexcept (true); | |
extern _Float64x nextdownf64x (_Float64x __x) noexcept (true); extern _Float64x __nextdownf64x (_Float64x __x) noexcept (true); | |
extern _Float64x nextupf64x (_Float64x __x) noexcept (true); extern _Float64x __nextupf64x (_Float64x __x) noexcept (true); | |
extern _Float64x remainderf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float64x __remainderf64x (_Float64x __x, _Float64x __y) noexcept (true); | |
extern _Float64x scalbnf64x (_Float64x __x, int __n) noexcept (true); extern _Float64x __scalbnf64x (_Float64x __x, int __n) noexcept (true); | |
extern int ilogbf64x (_Float64x __x) noexcept (true); extern int __ilogbf64x (_Float64x __x) noexcept (true); | |
extern long int llogbf64x (_Float64x __x) noexcept (true); extern long int __llogbf64x (_Float64x __x) noexcept (true); | |
extern _Float64x scalblnf64x (_Float64x __x, long int __n) noexcept (true); extern _Float64x __scalblnf64x (_Float64x __x, long int __n) noexcept (true); | |
extern _Float64x nearbyintf64x (_Float64x __x) noexcept (true); extern _Float64x __nearbyintf64x (_Float64x __x) noexcept (true); | |
extern _Float64x roundf64x (_Float64x __x) noexcept (true) __attribute__ ((__const__)); extern _Float64x __roundf64x (_Float64x __x) noexcept (true) __attribute__ ((__const__)); | |
extern _Float64x truncf64x (_Float64x __x) noexcept (true) __attribute__ ((__const__)); extern _Float64x __truncf64x (_Float64x __x) noexcept (true) __attribute__ ((__const__)); | |
extern _Float64x remquof64x (_Float64x __x, _Float64x __y, int *__quo) noexcept (true); extern _Float64x __remquof64x (_Float64x __x, _Float64x __y, int *__quo) noexcept (true); | |
extern long int lrintf64x (_Float64x __x) noexcept (true); extern long int __lrintf64x (_Float64x __x) noexcept (true); | |
__extension__ | |
extern long long int llrintf64x (_Float64x __x) noexcept (true); extern long long int __llrintf64x (_Float64x __x) noexcept (true); | |
extern long int lroundf64x (_Float64x __x) noexcept (true); extern long int __lroundf64x (_Float64x __x) noexcept (true); | |
__extension__ | |
extern long long int llroundf64x (_Float64x __x) noexcept (true); extern long long int __llroundf64x (_Float64x __x) noexcept (true); | |
extern _Float64x fdimf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float64x __fdimf64x (_Float64x __x, _Float64x __y) noexcept (true); | |
extern _Float64x fmaxf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x __fmaxf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float64x fminf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x __fminf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float64x fmaf64x (_Float64x __x, _Float64x __y, _Float64x __z) noexcept (true); extern _Float64x __fmaf64x (_Float64x __x, _Float64x __y, _Float64x __z) noexcept (true); | |
extern _Float64x roundevenf64x (_Float64x __x) noexcept (true) __attribute__ ((__const__)); extern _Float64x __roundevenf64x (_Float64x __x) noexcept (true) __attribute__ ((__const__)); | |
extern __intmax_t fromfpf64x (_Float64x __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpf64x (_Float64x __x, int __round, unsigned int __width) noexcept (true) | |
; | |
extern __uintmax_t ufromfpf64x (_Float64x __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpf64x (_Float64x __x, int __round, unsigned int __width) noexcept (true) | |
; | |
extern __intmax_t fromfpxf64x (_Float64x __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpxf64x (_Float64x __x, int __round, unsigned int __width) noexcept (true) | |
; | |
extern __uintmax_t ufromfpxf64x (_Float64x __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpxf64x (_Float64x __x, int __round, unsigned int __width) noexcept (true) | |
; | |
extern int canonicalizef64x (_Float64x *__cx, const _Float64x *__x) noexcept (true); | |
extern _Float64x fmaxmagf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x __fmaxmagf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float64x fminmagf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x __fminmagf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float64x fmaximumf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x __fmaximumf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float64x fminimumf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x __fminimumf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float64x fmaximum_numf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x __fmaximum_numf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float64x fminimum_numf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x __fminimum_numf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float64x fmaximum_magf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x __fmaximum_magf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float64x fminimum_magf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x __fminimum_magf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float64x fmaximum_mag_numf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x __fmaximum_mag_numf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); | |
extern _Float64x fminimum_mag_numf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x __fminimum_mag_numf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); | |
extern int totalorderf64x (const _Float64x *__x, const _Float64x *__y) noexcept (true) | |
__attribute__ ((__pure__)); | |
extern int totalordermagf64x (const _Float64x *__x, const _Float64x *__y) noexcept (true) | |
__attribute__ ((__pure__)); | |
extern _Float64x getpayloadf64x (const _Float64x *__x) noexcept (true); extern _Float64x __getpayloadf64x (const _Float64x *__x) noexcept (true); | |
extern int setpayloadf64x (_Float64x *__x, _Float64x __payload) noexcept (true); | |
extern int setpayloadsigf64x (_Float64x *__x, _Float64x __payload) noexcept (true); | |
# 519 "/usr/include/math.h" 2 3 4 | |
# 566 "/usr/include/math.h" 3 4 | |
# 1 "/usr/include/bits/mathcalls-narrow.h" 1 3 4 | |
# 24 "/usr/include/bits/mathcalls-narrow.h" 3 4 | |
extern float fadd (double __x, double __y) noexcept (true); | |
extern float fdiv (double __x, double __y) noexcept (true); | |
extern float ffma (double __x, double __y, double __z) noexcept (true); | |
extern float fmul (double __x, double __y) noexcept (true); | |
extern float fsqrt (double __x) noexcept (true); | |
extern float fsub (double __x, double __y) noexcept (true); | |
# 567 "/usr/include/math.h" 2 3 4 | |
# 587 "/usr/include/math.h" 3 4 | |
# 1 "/usr/include/bits/mathcalls-narrow.h" 1 3 4 | |
# 24 "/usr/include/bits/mathcalls-narrow.h" 3 4 | |
extern float faddl (long double __x, long double __y) noexcept (true); | |
extern float fdivl (long double __x, long double __y) noexcept (true); | |
extern float ffmal (long double __x, long double __y, long double __z) noexcept (true); | |
extern float fmull (long double __x, long double __y) noexcept (true); | |
extern float fsqrtl (long double __x) noexcept (true); | |
extern float fsubl (long double __x, long double __y) noexcept (true); | |
# 588 "/usr/include/math.h" 2 3 4 | |
# 616 "/usr/include/math.h" 3 4 | |
# 1 "/usr/include/bits/mathcalls-narrow.h" 1 3 4 | |
# 24 "/usr/include/bits/mathcalls-narrow.h" 3 4 | |
extern double daddl (long double __x, long double __y) noexcept (true); | |
extern double ddivl (long double __x, long double __y) noexcept (true); | |
extern double dfmal (long double __x, long double __y, long double __z) noexcept (true); | |
extern double dmull (long double __x, long double __y) noexcept (true); | |
extern double dsqrtl (long double __x) noexcept (true); | |
extern double dsubl (long double __x, long double __y) noexcept (true); | |
# 617 "/usr/include/math.h" 2 3 4 | |
# 697 "/usr/include/math.h" 3 4 | |
# 1 "/usr/include/bits/mathcalls-narrow.h" 1 3 4 | |
# 24 "/usr/include/bits/mathcalls-narrow.h" 3 4 | |
extern _Float32 f32addf32x (_Float32x __x, _Float32x __y) noexcept (true); | |
extern _Float32 f32divf32x (_Float32x __x, _Float32x __y) noexcept (true); | |
extern _Float32 f32fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); | |
extern _Float32 f32mulf32x (_Float32x __x, _Float32x __y) noexcept (true); | |
extern _Float32 f32sqrtf32x (_Float32x __x) noexcept (true); | |
extern _Float32 f32subf32x (_Float32x __x, _Float32x __y) noexcept (true); | |
# 698 "/usr/include/math.h" 2 3 4 | |
# 707 "/usr/include/math.h" 3 4 | |
# 1 "/usr/include/bits/mathcalls-narrow.h" 1 3 4 | |
# 24 "/usr/include/bits/mathcalls-narrow.h" 3 4 | |
extern _Float32 f32addf64 (_Float64 __x, _Float64 __y) noexcept (true); | |
extern _Float32 f32divf64 (_Float64 __x, _Float64 __y) noexcept (true); | |
extern _Float32 f32fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); | |
extern _Float32 f32mulf64 (_Float64 __x, _Float64 __y) noexcept (true); | |
extern _Float32 f32sqrtf64 (_Float64 __x) noexcept (true); | |
extern _Float32 f32subf64 (_Float64 __x, _Float64 __y) noexcept (true); | |
# 708 "/usr/include/math.h" 2 3 4 | |
# 717 "/usr/include/math.h" 3 4 | |
# 1 "/usr/include/bits/mathcalls-narrow.h" 1 3 4 | |
# 24 "/usr/include/bits/mathcalls-narrow.h" 3 4 | |
extern _Float32 f32addf64x (_Float64x __x, _Float64x __y) noexcept (true); | |
extern _Float32 f32divf64x (_Float64x __x, _Float64x __y) noexcept (true); | |
extern _Float32 f32fmaf64x (_Float64x __x, _Float64x __y, _Float64x __z) noexcept (true); | |
extern _Float32 f32mulf64x (_Float64x __x, _Float64x __y) noexcept (true); | |
extern _Float32 f32sqrtf64x (_Float64x __x) noexcept (true); | |
extern _Float32 f32subf64x (_Float64x __x, _Float64x __y) noexcept (true); | |
# 718 "/usr/include/math.h" 2 3 4 | |
# 727 "/usr/include/math.h" 3 4 | |
# 1 "/usr/include/bits/mathcalls-narrow.h" 1 3 4 | |
# 24 "/usr/include/bits/mathcalls-narrow.h" 3 4 | |
extern _Float32 f32addf128 (_Float128 __x, _Float128 __y) noexcept (true); | |
extern _Float32 f32divf128 (_Float128 __x, _Float128 __y) noexcept (true); | |
extern _Float32 f32fmaf128 (_Float128 __x, _Float128 __y, _Float128 __z) noexcept (true); | |
extern _Float32 f32mulf128 (_Float128 __x, _Float128 __y) noexcept (true); | |
extern _Float32 f32sqrtf128 (_Float128 __x) noexcept (true); | |
extern _Float32 f32subf128 (_Float128 __x, _Float128 __y) noexcept (true); | |
# 728 "/usr/include/math.h" 2 3 4 | |
# 747 "/usr/include/math.h" 3 4 | |
# 1 "/usr/include/bits/mathcalls-narrow.h" 1 3 4 | |
# 24 "/usr/include/bits/mathcalls-narrow.h" 3 4 | |
extern _Float32x f32xaddf64 (_Float64 __x, _Float64 __y) noexcept (true); | |
extern _Float32x f32xdivf64 (_Float64 __x, _Float64 __y) noexcept (true); | |
extern _Float32x f32xfmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); | |
extern _Float32x f32xmulf64 (_Float64 __x, _Float64 __y) noexcept (true); | |
extern _Float32x f32xsqrtf64 (_Float64 __x) noexcept (true); | |
extern _Float32x f32xsubf64 (_Float64 __x, _Float64 __y) noexcept (true); | |
# 748 "/usr/include/math.h" 2 3 4 | |
# 757 "/usr/include/math.h" 3 4 | |
# 1 "/usr/include/bits/mathcalls-narrow.h" 1 3 4 | |
# 24 "/usr/include/bits/mathcalls-narrow.h" 3 4 | |
extern _Float32x f32xaddf64x (_Float64x __x, _Float64x __y) noexcept (true); | |
extern _Float32x f32xdivf64x (_Float64x __x, _Float64x __y) noexcept (true); | |
extern _Float32x f32xfmaf64x (_Float64x __x, _Float64x __y, _Float64x __z) noexcept (true); | |
extern _Float32x f32xmulf64x (_Float64x __x, _Float64x __y) noexcept (true); | |
extern _Float32x f32xsqrtf64x (_Float64x __x) noexcept (true); | |
extern _Float32x f32xsubf64x (_Float64x __x, _Float64x __y) noexcept (true); | |
# 758 "/usr/include/math.h" 2 3 4 | |
# 767 "/usr/include/math.h" 3 4 | |
# 1 "/usr/include/bits/mathcalls-narrow.h" 1 3 4 | |
# 24 "/usr/include/bits/mathcalls-narrow.h" 3 4 | |
extern _Float32x f32xaddf128 (_Float128 __x, _Float128 __y) noexcept (true); | |
extern _Float32x f32xdivf128 (_Float128 __x, _Float128 __y) noexcept (true); | |
extern _Float32x f32xfmaf128 (_Float128 __x, _Float128 __y, _Float128 __z) noexcept (true); | |
extern _Float32x f32xmulf128 (_Float128 __x, _Float128 __y) noexcept (true); | |
extern _Float32x f32xsqrtf128 (_Float128 __x) noexcept (true); | |
extern _Float32x f32xsubf128 (_Float128 __x, _Float128 __y) noexcept (true); | |
# 768 "/usr/include/math.h" 2 3 4 | |
# 787 "/usr/include/math.h" 3 4 | |
# 1 "/usr/include/bits/mathcalls-narrow.h" 1 3 4 | |
# 24 "/usr/include/bits/mathcalls-narrow.h" 3 4 | |
extern _Float64 f64addf64x (_Float64x __x, _Float64x __y) noexcept (true); | |
extern _Float64 f64divf64x (_Float64x __x, _Float64x __y) noexcept (true); | |
extern _Float64 f64fmaf64x (_Float64x __x, _Float64x __y, _Float64x __z) noexcept (true); | |
extern _Float64 f64mulf64x (_Float64x __x, _Float64x __y) noexcept (true); | |
extern _Float64 f64sqrtf64x (_Float64x __x) noexcept (true); | |
extern _Float64 f64subf64x (_Float64x __x, _Float64x __y) noexcept (true); | |
# 788 "/usr/include/math.h" 2 3 4 | |
# 797 "/usr/include/math.h" 3 4 | |
# 1 "/usr/include/bits/mathcalls-narrow.h" 1 3 4 | |
# 24 "/usr/include/bits/mathcalls-narrow.h" 3 4 | |
extern _Float64 f64addf128 (_Float128 __x, _Float128 __y) noexcept (true); | |
extern _Float64 f64divf128 (_Float128 __x, _Float128 __y) noexcept (true); | |
extern _Float64 f64fmaf128 (_Float128 __x, _Float128 __y, _Float128 __z) noexcept (true); | |
extern _Float64 f64mulf128 (_Float128 __x, _Float128 __y) noexcept (true); | |
extern _Float64 f64sqrtf128 (_Float128 __x) noexcept (true); | |
extern _Float64 f64subf128 (_Float128 __x, _Float128 __y) noexcept (true); | |
# 798 "/usr/include/math.h" 2 3 4 | |
# 817 "/usr/include/math.h" 3 4 | |
# 1 "/usr/include/bits/mathcalls-narrow.h" 1 3 4 | |
# 24 "/usr/include/bits/mathcalls-narrow.h" 3 4 | |
extern _Float64x f64xaddf128 (_Float128 __x, _Float128 __y) noexcept (true); | |
extern _Float64x f64xdivf128 (_Float128 __x, _Float128 __y) noexcept (true); | |
extern _Float64x f64xfmaf128 (_Float128 __x, _Float128 __y, _Float128 __z) noexcept (true); | |
extern _Float64x f64xmulf128 (_Float128 __x, _Float128 __y) noexcept (true); | |
extern _Float64x f64xsqrtf128 (_Float128 __x) noexcept (true); | |
extern _Float64x f64xsubf128 (_Float128 __x, _Float128 __y) noexcept (true); | |
# 818 "/usr/include/math.h" 2 3 4 | |
# 854 "/usr/include/math.h" 3 4 | |
extern int signgam; | |
# 934 "/usr/include/math.h" 3 4 | |
enum | |
{ | |
FP_NAN = | |
0, | |
FP_INFINITE = | |
1, | |
FP_ZERO = | |
2, | |
FP_SUBNORMAL = | |
3, | |
FP_NORMAL = | |
4 | |
}; | |
# 1055 "/usr/include/math.h" 3 4 | |
# 1 "/usr/include/bits/iscanonical.h" 1 3 4 | |
# 23 "/usr/include/bits/iscanonical.h" 3 4 | |
extern int __iscanonicall (long double __x) | |
noexcept (true) __attribute__ ((__const__)); | |
# 46 "/usr/include/bits/iscanonical.h" 3 4 | |
extern "C++" { | |
inline int iscanonical (float __val) { return ((void) (__typeof (__val)) (__val), 1); } | |
inline int iscanonical (double __val) { return ((void) (__typeof (__val)) (__val), 1); } | |
inline int iscanonical (long double __val) { return __iscanonicall (__val); } | |
inline int iscanonical (_Float128 __val) { return ((void) (__typeof (__val)) (__val), 1); } | |
} | |
# 1056 "/usr/include/math.h" 2 3 4 | |
# 1067 "/usr/include/math.h" 3 4 | |
extern "C++" { | |
inline int issignaling (float __val) { return __issignalingf (__val); } | |
inline int issignaling (double __val) { return __issignaling (__val); } | |
inline int | |
issignaling (long double __val) | |
{ | |
return __issignalingl (__val); | |
} | |
inline int issignaling (_Float128 __val) { return __issignalingf128 (__val); } | |
} | |
# 1098 "/usr/include/math.h" 3 4 | |
extern "C++" { | |
# 1129 "/usr/include/math.h" 3 4 | |
template <class __T> inline bool | |
iszero (__T __val) | |
{ | |
return __val == 0; | |
} | |
} | |
# 1364 "/usr/include/math.h" 3 4 | |
extern "C++" { | |
template<typename> struct __iseqsig_type; | |
template<> struct __iseqsig_type<float> | |
{ | |
static int __call (float __x, float __y) throw () | |
{ | |
return __iseqsigf (__x, __y); | |
} | |
}; | |
template<> struct __iseqsig_type<double> | |
{ | |
static int __call (double __x, double __y) throw () | |
{ | |
return __iseqsig (__x, __y); | |
} | |
}; | |
template<> struct __iseqsig_type<long double> | |
{ | |
static int __call (long double __x, long double __y) throw () | |
{ | |
return __iseqsigl (__x, __y); | |
} | |
}; | |
template<> struct __iseqsig_type<_Float32> | |
{ | |
static int __call (_Float32 __x, _Float32 __y) throw () | |
{ | |
return __iseqsigf (__x, __y); | |
} | |
}; | |
template<> struct __iseqsig_type<_Float64> | |
{ | |
static int __call (_Float64 __x, _Float64 __y) throw () | |
{ | |
return __iseqsig (__x, __y); | |
} | |
}; | |
template<> struct __iseqsig_type<_Float128> | |
{ | |
static int __call (_Float128 __x, _Float128 __y) throw () | |
{ | |
return __iseqsigf128 (__x, __y); | |
} | |
}; | |
template<> struct __iseqsig_type<_Float32x> | |
{ | |
static int __call (_Float32x __x, _Float32x __y) throw () | |
{ | |
return __iseqsig (__x, __y); | |
} | |
}; | |
template<> struct __iseqsig_type<_Float64x> | |
{ | |
static int __call (_Float64x __x, _Float64x __y) throw () | |
{ | |
return __iseqsigl (__x, __y); | |
} | |
}; | |
template<typename _T1, typename _T2> | |
inline int | |
iseqsig (_T1 __x, _T2 __y) throw () | |
{ | |
typedef decltype (((__x) + (__y) + 0.0f)) _T3; | |
return __iseqsig_type<_T3>::__call (__x, __y); | |
} | |
} | |
} | |
# 48 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/cmath" 2 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/std_abs.h" 1 3 | |
# 33 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/std_abs.h" 3 | |
# 34 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/std_abs.h" 3 | |
# 1 "/usr/include/stdlib.h" 1 3 4 | |
# 26 "/usr/include/stdlib.h" 3 4 | |
# 1 "/usr/include/bits/libc-header-start.h" 1 3 4 | |
# 27 "/usr/include/stdlib.h" 2 3 4 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/stddef.h" 1 3 4 | |
# 33 "/usr/include/stdlib.h" 2 3 4 | |
extern "C" { | |
# 1 "/usr/include/bits/waitflags.h" 1 3 4 | |
# 41 "/usr/include/stdlib.h" 2 3 4 | |
# 1 "/usr/include/bits/waitstatus.h" 1 3 4 | |
# 42 "/usr/include/stdlib.h" 2 3 4 | |
# 59 "/usr/include/stdlib.h" 3 4 | |
typedef struct | |
{ | |
int quot; | |
int rem; | |
} div_t; | |
typedef struct | |
{ | |
long int quot; | |
long int rem; | |
} ldiv_t; | |
__extension__ typedef struct | |
{ | |
long long int quot; | |
long long int rem; | |
} lldiv_t; | |
# 98 "/usr/include/stdlib.h" 3 4 | |
extern size_t __ctype_get_mb_cur_max (void) noexcept (true) __attribute__ ((__warn_unused_result__)); | |
extern double atof (const char *__nptr) | |
noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
extern int atoi (const char *__nptr) | |
noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
extern long int atol (const char *__nptr) | |
noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
__extension__ extern long long int atoll (const char *__nptr) | |
noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
extern double strtod (const char *__restrict __nptr, | |
char **__restrict __endptr) | |
noexcept (true) __attribute__ ((__nonnull__ (1))); | |
extern float strtof (const char *__restrict __nptr, | |
char **__restrict __endptr) noexcept (true) __attribute__ ((__nonnull__ (1))); | |
extern long double strtold (const char *__restrict __nptr, | |
char **__restrict __endptr) | |
noexcept (true) __attribute__ ((__nonnull__ (1))); | |
# 141 "/usr/include/stdlib.h" 3 4 | |
extern _Float32 strtof32 (const char *__restrict __nptr, | |
char **__restrict __endptr) | |
noexcept (true) __attribute__ ((__nonnull__ (1))); | |
extern _Float64 strtof64 (const char *__restrict __nptr, | |
char **__restrict __endptr) | |
noexcept (true) __attribute__ ((__nonnull__ (1))); | |
extern _Float128 strtof128 (const char *__restrict __nptr, | |
char **__restrict __endptr) | |
noexcept (true) __attribute__ ((__nonnull__ (1))); | |
extern _Float32x strtof32x (const char *__restrict __nptr, | |
char **__restrict __endptr) | |
noexcept (true) __attribute__ ((__nonnull__ (1))); | |
extern _Float64x strtof64x (const char *__restrict __nptr, | |
char **__restrict __endptr) | |
noexcept (true) __attribute__ ((__nonnull__ (1))); | |
# 177 "/usr/include/stdlib.h" 3 4 | |
extern long int strtol (const char *__restrict __nptr, | |
char **__restrict __endptr, int __base) | |
noexcept (true) __attribute__ ((__nonnull__ (1))); | |
extern unsigned long int strtoul (const char *__restrict __nptr, | |
char **__restrict __endptr, int __base) | |
noexcept (true) __attribute__ ((__nonnull__ (1))); | |
__extension__ | |
extern long long int strtoq (const char *__restrict __nptr, | |
char **__restrict __endptr, int __base) | |
noexcept (true) __attribute__ ((__nonnull__ (1))); | |
__extension__ | |
extern unsigned long long int strtouq (const char *__restrict __nptr, | |
char **__restrict __endptr, int __base) | |
noexcept (true) __attribute__ ((__nonnull__ (1))); | |
__extension__ | |
extern long long int strtoll (const char *__restrict __nptr, | |
char **__restrict __endptr, int __base) | |
noexcept (true) __attribute__ ((__nonnull__ (1))); | |
__extension__ | |
extern unsigned long long int strtoull (const char *__restrict __nptr, | |
char **__restrict __endptr, int __base) | |
noexcept (true) __attribute__ ((__nonnull__ (1))); | |
extern long int strtol (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtol") | |
__attribute__ ((__nonnull__ (1))); | |
extern unsigned long int strtoul (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoul") | |
__attribute__ ((__nonnull__ (1))); | |
__extension__ | |
extern long long int strtoq (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoll") | |
__attribute__ ((__nonnull__ (1))); | |
__extension__ | |
extern unsigned long long int strtouq (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoull") | |
__attribute__ ((__nonnull__ (1))); | |
__extension__ | |
extern long long int strtoll (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoll") | |
__attribute__ ((__nonnull__ (1))); | |
__extension__ | |
extern unsigned long long int strtoull (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoull") | |
__attribute__ ((__nonnull__ (1))); | |
# 278 "/usr/include/stdlib.h" 3 4 | |
extern int strfromd (char *__dest, size_t __size, const char *__format, | |
double __f) | |
noexcept (true) __attribute__ ((__nonnull__ (3))); | |
extern int strfromf (char *__dest, size_t __size, const char *__format, | |
float __f) | |
noexcept (true) __attribute__ ((__nonnull__ (3))); | |
extern int strfroml (char *__dest, size_t __size, const char *__format, | |
long double __f) | |
noexcept (true) __attribute__ ((__nonnull__ (3))); | |
# 298 "/usr/include/stdlib.h" 3 4 | |
extern int strfromf32 (char *__dest, size_t __size, const char * __format, | |
_Float32 __f) | |
noexcept (true) __attribute__ ((__nonnull__ (3))); | |
extern int strfromf64 (char *__dest, size_t __size, const char * __format, | |
_Float64 __f) | |
noexcept (true) __attribute__ ((__nonnull__ (3))); | |
extern int strfromf128 (char *__dest, size_t __size, const char * __format, | |
_Float128 __f) | |
noexcept (true) __attribute__ ((__nonnull__ (3))); | |
extern int strfromf32x (char *__dest, size_t __size, const char * __format, | |
_Float32x __f) | |
noexcept (true) __attribute__ ((__nonnull__ (3))); | |
extern int strfromf64x (char *__dest, size_t __size, const char * __format, | |
_Float64x __f) | |
noexcept (true) __attribute__ ((__nonnull__ (3))); | |
# 338 "/usr/include/stdlib.h" 3 4 | |
# 1 "/usr/include/bits/types/locale_t.h" 1 3 4 | |
# 22 "/usr/include/bits/types/locale_t.h" 3 4 | |
# 1 "/usr/include/bits/types/__locale_t.h" 1 3 4 | |
# 27 "/usr/include/bits/types/__locale_t.h" 3 4 | |
struct __locale_struct | |
{ | |
struct __locale_data *__locales[13]; | |
const unsigned short int *__ctype_b; | |
const int *__ctype_tolower; | |
const int *__ctype_toupper; | |
const char *__names[13]; | |
}; | |
typedef struct __locale_struct *__locale_t; | |
# 23 "/usr/include/bits/types/locale_t.h" 2 3 4 | |
typedef __locale_t locale_t; | |
# 339 "/usr/include/stdlib.h" 2 3 4 | |
extern long int strtol_l (const char *__restrict __nptr, | |
char **__restrict __endptr, int __base, | |
locale_t __loc) noexcept (true) __attribute__ ((__nonnull__ (1, 4))); | |
extern unsigned long int strtoul_l (const char *__restrict __nptr, | |
char **__restrict __endptr, | |
int __base, locale_t __loc) | |
noexcept (true) __attribute__ ((__nonnull__ (1, 4))); | |
__extension__ | |
extern long long int strtoll_l (const char *__restrict __nptr, | |
char **__restrict __endptr, int __base, | |
locale_t __loc) | |
noexcept (true) __attribute__ ((__nonnull__ (1, 4))); | |
__extension__ | |
extern unsigned long long int strtoull_l (const char *__restrict __nptr, | |
char **__restrict __endptr, | |
int __base, locale_t __loc) | |
noexcept (true) __attribute__ ((__nonnull__ (1, 4))); | |
extern long int strtol_l (const char *__restrict __nptr, char **__restrict __endptr, int __base, locale_t __loc) noexcept (true) __asm__ ("" "__isoc23_strtol_l") | |
__attribute__ ((__nonnull__ (1, 4))); | |
extern unsigned long int strtoul_l (const char *__restrict __nptr, char **__restrict __endptr, int __base, locale_t __loc) noexcept (true) __asm__ ("" "__isoc23_strtoul_l") | |
__attribute__ ((__nonnull__ (1, 4))); | |
__extension__ | |
extern long long int strtoll_l (const char *__restrict __nptr, char **__restrict __endptr, int __base, locale_t __loc) noexcept (true) __asm__ ("" "__isoc23_strtoll_l") | |
__attribute__ ((__nonnull__ (1, 4))); | |
__extension__ | |
extern unsigned long long int strtoull_l (const char *__restrict __nptr, char **__restrict __endptr, int __base, locale_t __loc) noexcept (true) __asm__ ("" "__isoc23_strtoull_l") | |
__attribute__ ((__nonnull__ (1, 4))); | |
# 415 "/usr/include/stdlib.h" 3 4 | |
extern double strtod_l (const char *__restrict __nptr, | |
char **__restrict __endptr, locale_t __loc) | |
noexcept (true) __attribute__ ((__nonnull__ (1, 3))); | |
extern float strtof_l (const char *__restrict __nptr, | |
char **__restrict __endptr, locale_t __loc) | |
noexcept (true) __attribute__ ((__nonnull__ (1, 3))); | |
extern long double strtold_l (const char *__restrict __nptr, | |
char **__restrict __endptr, | |
locale_t __loc) | |
noexcept (true) __attribute__ ((__nonnull__ (1, 3))); | |
# 436 "/usr/include/stdlib.h" 3 4 | |
extern _Float32 strtof32_l (const char *__restrict __nptr, | |
char **__restrict __endptr, | |
locale_t __loc) | |
noexcept (true) __attribute__ ((__nonnull__ (1, 3))); | |
extern _Float64 strtof64_l (const char *__restrict __nptr, | |
char **__restrict __endptr, | |
locale_t __loc) | |
noexcept (true) __attribute__ ((__nonnull__ (1, 3))); | |
extern _Float128 strtof128_l (const char *__restrict __nptr, | |
char **__restrict __endptr, | |
locale_t __loc) | |
noexcept (true) __attribute__ ((__nonnull__ (1, 3))); | |
extern _Float32x strtof32x_l (const char *__restrict __nptr, | |
char **__restrict __endptr, | |
locale_t __loc) | |
noexcept (true) __attribute__ ((__nonnull__ (1, 3))); | |
extern _Float64x strtof64x_l (const char *__restrict __nptr, | |
char **__restrict __endptr, | |
locale_t __loc) | |
noexcept (true) __attribute__ ((__nonnull__ (1, 3))); | |
# 480 "/usr/include/stdlib.h" 3 4 | |
extern __inline __attribute__ ((__gnu_inline__)) int | |
__attribute__ ((__leaf__)) atoi (const char *__nptr) noexcept (true) | |
{ | |
return (int) strtol (__nptr, (char **) __null, 10); | |
} | |
extern __inline __attribute__ ((__gnu_inline__)) long int | |
__attribute__ ((__leaf__)) atol (const char *__nptr) noexcept (true) | |
{ | |
return strtol (__nptr, (char **) __null, 10); | |
} | |
__extension__ extern __inline __attribute__ ((__gnu_inline__)) long long int | |
__attribute__ ((__leaf__)) atoll (const char *__nptr) noexcept (true) | |
{ | |
return strtoll (__nptr, (char **) __null, 10); | |
} | |
# 505 "/usr/include/stdlib.h" 3 4 | |
extern char *l64a (long int __n) noexcept (true) __attribute__ ((__warn_unused_result__)); | |
extern long int a64l (const char *__s) | |
noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
# 1 "/usr/include/sys/types.h" 1 3 4 | |
# 27 "/usr/include/sys/types.h" 3 4 | |
extern "C" { | |
typedef __u_char u_char; | |
typedef __u_short u_short; | |
typedef __u_int u_int; | |
typedef __u_long u_long; | |
typedef __quad_t quad_t; | |
typedef __u_quad_t u_quad_t; | |
typedef __fsid_t fsid_t; | |
typedef __loff_t loff_t; | |
typedef __ino_t ino_t; | |
typedef __ino64_t ino64_t; | |
typedef __dev_t dev_t; | |
typedef __gid_t gid_t; | |
typedef __mode_t mode_t; | |
typedef __nlink_t nlink_t; | |
typedef __uid_t uid_t; | |
typedef __off_t off_t; | |
typedef __off64_t off64_t; | |
typedef __pid_t pid_t; | |
typedef __id_t id_t; | |
typedef __ssize_t ssize_t; | |
typedef __daddr_t daddr_t; | |
typedef __caddr_t caddr_t; | |
typedef __key_t key_t; | |
# 1 "/usr/include/bits/types/clock_t.h" 1 3 4 | |
typedef __clock_t clock_t; | |
# 127 "/usr/include/sys/types.h" 2 3 4 | |
# 1 "/usr/include/bits/types/clockid_t.h" 1 3 4 | |
typedef __clockid_t clockid_t; | |
# 129 "/usr/include/sys/types.h" 2 3 4 | |
# 1 "/usr/include/bits/types/time_t.h" 1 3 4 | |
# 10 "/usr/include/bits/types/time_t.h" 3 4 | |
typedef __time_t time_t; | |
# 130 "/usr/include/sys/types.h" 2 3 4 | |
# 1 "/usr/include/bits/types/timer_t.h" 1 3 4 | |
typedef __timer_t timer_t; | |
# 131 "/usr/include/sys/types.h" 2 3 4 | |
typedef __useconds_t useconds_t; | |
typedef __suseconds_t suseconds_t; | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/stddef.h" 1 3 4 | |
# 145 "/usr/include/sys/types.h" 2 3 4 | |
typedef unsigned long int ulong; | |
typedef unsigned short int ushort; | |
typedef unsigned int uint; | |
typedef __uint8_t u_int8_t; | |
typedef __uint16_t u_int16_t; | |
typedef __uint32_t u_int32_t; | |
typedef __uint64_t u_int64_t; | |
typedef int register_t __attribute__ ((__mode__ (__word__))); | |
# 176 "/usr/include/sys/types.h" 3 4 | |
# 1 "/usr/include/endian.h" 1 3 4 | |
# 24 "/usr/include/endian.h" 3 4 | |
# 1 "/usr/include/bits/endian.h" 1 3 4 | |
# 35 "/usr/include/bits/endian.h" 3 4 | |
# 1 "/usr/include/bits/endianness.h" 1 3 4 | |
# 36 "/usr/include/bits/endian.h" 2 3 4 | |
# 25 "/usr/include/endian.h" 2 3 4 | |
# 35 "/usr/include/endian.h" 3 4 | |
# 1 "/usr/include/bits/byteswap.h" 1 3 4 | |
# 33 "/usr/include/bits/byteswap.h" 3 4 | |
static __inline __uint16_t | |
__bswap_16 (__uint16_t __bsx) | |
{ | |
return __builtin_bswap16 (__bsx); | |
} | |
static __inline __uint32_t | |
__bswap_32 (__uint32_t __bsx) | |
{ | |
return __builtin_bswap32 (__bsx); | |
} | |
# 69 "/usr/include/bits/byteswap.h" 3 4 | |
__extension__ static __inline __uint64_t | |
__bswap_64 (__uint64_t __bsx) | |
{ | |
return __builtin_bswap64 (__bsx); | |
} | |
# 36 "/usr/include/endian.h" 2 3 4 | |
# 1 "/usr/include/bits/uintn-identity.h" 1 3 4 | |
# 32 "/usr/include/bits/uintn-identity.h" 3 4 | |
static __inline __uint16_t | |
__uint16_identity (__uint16_t __x) | |
{ | |
return __x; | |
} | |
static __inline __uint32_t | |
__uint32_identity (__uint32_t __x) | |
{ | |
return __x; | |
} | |
static __inline __uint64_t | |
__uint64_identity (__uint64_t __x) | |
{ | |
return __x; | |
} | |
# 37 "/usr/include/endian.h" 2 3 4 | |
# 177 "/usr/include/sys/types.h" 2 3 4 | |
# 1 "/usr/include/sys/select.h" 1 3 4 | |
# 30 "/usr/include/sys/select.h" 3 4 | |
# 1 "/usr/include/bits/select.h" 1 3 4 | |
# 31 "/usr/include/sys/select.h" 2 3 4 | |
# 1 "/usr/include/bits/types/sigset_t.h" 1 3 4 | |
# 1 "/usr/include/bits/types/__sigset_t.h" 1 3 4 | |
typedef struct | |
{ | |
unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; | |
} __sigset_t; | |
# 5 "/usr/include/bits/types/sigset_t.h" 2 3 4 | |
typedef __sigset_t sigset_t; | |
# 34 "/usr/include/sys/select.h" 2 3 4 | |
# 1 "/usr/include/bits/types/struct_timeval.h" 1 3 4 | |
struct timeval | |
{ | |
__time_t tv_sec; | |
__suseconds_t tv_usec; | |
}; | |
# 38 "/usr/include/sys/select.h" 2 3 4 | |
# 1 "/usr/include/bits/types/struct_timespec.h" 1 3 4 | |
# 11 "/usr/include/bits/types/struct_timespec.h" 3 4 | |
struct timespec | |
{ | |
__time_t tv_sec; | |
__syscall_slong_t tv_nsec; | |
# 31 "/usr/include/bits/types/struct_timespec.h" 3 4 | |
}; | |
# 40 "/usr/include/sys/select.h" 2 3 4 | |
# 49 "/usr/include/sys/select.h" 3 4 | |
typedef long int __fd_mask; | |
# 59 "/usr/include/sys/select.h" 3 4 | |
typedef struct | |
{ | |
__fd_mask fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; | |
} fd_set; | |
typedef __fd_mask fd_mask; | |
# 91 "/usr/include/sys/select.h" 3 4 | |
extern "C" { | |
# 102 "/usr/include/sys/select.h" 3 4 | |
extern int select (int __nfds, fd_set *__restrict __readfds, | |
fd_set *__restrict __writefds, | |
fd_set *__restrict __exceptfds, | |
struct timeval *__restrict __timeout); | |
# 127 "/usr/include/sys/select.h" 3 4 | |
extern int pselect (int __nfds, fd_set *__restrict __readfds, | |
fd_set *__restrict __writefds, | |
fd_set *__restrict __exceptfds, | |
const struct timespec *__restrict __timeout, | |
const __sigset_t *__restrict __sigmask); | |
# 150 "/usr/include/sys/select.h" 3 4 | |
# 1 "/usr/include/bits/select2.h" 1 3 4 | |
# 23 "/usr/include/bits/select2.h" 3 4 | |
# 1 "/usr/include/bits/select-decl.h" 1 3 4 | |
# 27 "/usr/include/bits/select-decl.h" 3 4 | |
extern long int __fdelt_chk (long int __d); | |
extern long int __fdelt_warn (long int __d) | |
__attribute__((__warning__ ("bit outside of fd_set selected"))); | |
# 24 "/usr/include/bits/select2.h" 2 3 4 | |
# 151 "/usr/include/sys/select.h" 2 3 4 | |
} | |
# 180 "/usr/include/sys/types.h" 2 3 4 | |
typedef __blksize_t blksize_t; | |
typedef __blkcnt_t blkcnt_t; | |
typedef __fsblkcnt_t fsblkcnt_t; | |
typedef __fsfilcnt_t fsfilcnt_t; | |
# 219 "/usr/include/sys/types.h" 3 4 | |
typedef __blkcnt64_t blkcnt64_t; | |
typedef __fsblkcnt64_t fsblkcnt64_t; | |
typedef __fsfilcnt64_t fsfilcnt64_t; | |
# 1 "/usr/include/bits/pthreadtypes.h" 1 3 4 | |
# 23 "/usr/include/bits/pthreadtypes.h" 3 4 | |
# 1 "/usr/include/bits/thread-shared-types.h" 1 3 4 | |
# 44 "/usr/include/bits/thread-shared-types.h" 3 4 | |
# 1 "/usr/include/bits/pthreadtypes-arch.h" 1 3 4 | |
# 21 "/usr/include/bits/pthreadtypes-arch.h" 3 4 | |
# 1 "/usr/include/bits/wordsize.h" 1 3 4 | |
# 22 "/usr/include/bits/pthreadtypes-arch.h" 2 3 4 | |
# 45 "/usr/include/bits/thread-shared-types.h" 2 3 4 | |
# 1 "/usr/include/bits/atomic_wide_counter.h" 1 3 4 | |
# 25 "/usr/include/bits/atomic_wide_counter.h" 3 4 | |
typedef union | |
{ | |
__extension__ unsigned long long int __value64; | |
struct | |
{ | |
unsigned int __low; | |
unsigned int __high; | |
} __value32; | |
} __atomic_wide_counter; | |
# 47 "/usr/include/bits/thread-shared-types.h" 2 3 4 | |
typedef struct __pthread_internal_list | |
{ | |
struct __pthread_internal_list *__prev; | |
struct __pthread_internal_list *__next; | |
} __pthread_list_t; | |
typedef struct __pthread_internal_slist | |
{ | |
struct __pthread_internal_slist *__next; | |
} __pthread_slist_t; | |
# 76 "/usr/include/bits/thread-shared-types.h" 3 4 | |
# 1 "/usr/include/bits/struct_mutex.h" 1 3 4 | |
# 22 "/usr/include/bits/struct_mutex.h" 3 4 | |
struct __pthread_mutex_s | |
{ | |
int __lock; | |
unsigned int __count; | |
int __owner; | |
unsigned int __nusers; | |
int __kind; | |
short __spins; | |
short __elision; | |
__pthread_list_t __list; | |
# 53 "/usr/include/bits/struct_mutex.h" 3 4 | |
}; | |
# 77 "/usr/include/bits/thread-shared-types.h" 2 3 4 | |
# 89 "/usr/include/bits/thread-shared-types.h" 3 4 | |
# 1 "/usr/include/bits/struct_rwlock.h" 1 3 4 | |
# 23 "/usr/include/bits/struct_rwlock.h" 3 4 | |
struct __pthread_rwlock_arch_t | |
{ | |
unsigned int __readers; | |
unsigned int __writers; | |
unsigned int __wrphase_futex; | |
unsigned int __writers_futex; | |
unsigned int __pad3; | |
unsigned int __pad4; | |
int __cur_writer; | |
int __shared; | |
signed char __rwelision; | |
unsigned char __pad1[7]; | |
unsigned long int __pad2; | |
unsigned int __flags; | |
# 55 "/usr/include/bits/struct_rwlock.h" 3 4 | |
}; | |
# 90 "/usr/include/bits/thread-shared-types.h" 2 3 4 | |
struct __pthread_cond_s | |
{ | |
__atomic_wide_counter __wseq; | |
__atomic_wide_counter __g1_start; | |
unsigned int __g_refs[2] ; | |
unsigned int __g_size[2]; | |
unsigned int __g1_orig_size; | |
unsigned int __wrefs; | |
unsigned int __g_signals[2]; | |
}; | |
typedef unsigned int __tss_t; | |
typedef unsigned long int __thrd_t; | |
typedef struct | |
{ | |
int __data ; | |
} __once_flag; | |
# 24 "/usr/include/bits/pthreadtypes.h" 2 3 4 | |
typedef unsigned long int pthread_t; | |
typedef union | |
{ | |
char __size[4]; | |
int __align; | |
} pthread_mutexattr_t; | |
typedef union | |
{ | |
char __size[4]; | |
int __align; | |
} pthread_condattr_t; | |
typedef unsigned int pthread_key_t; | |
typedef int pthread_once_t; | |
union pthread_attr_t | |
{ | |
char __size[56]; | |
long int __align; | |
}; | |
typedef union pthread_attr_t pthread_attr_t; | |
typedef union | |
{ | |
struct __pthread_mutex_s __data; | |
char __size[40]; | |
long int __align; | |
} pthread_mutex_t; | |
typedef union | |
{ | |
struct __pthread_cond_s __data; | |
char __size[48]; | |
__extension__ long long int __align; | |
} pthread_cond_t; | |
typedef union | |
{ | |
struct __pthread_rwlock_arch_t __data; | |
char __size[56]; | |
long int __align; | |
} pthread_rwlock_t; | |
typedef union | |
{ | |
char __size[8]; | |
long int __align; | |
} pthread_rwlockattr_t; | |
typedef volatile int pthread_spinlock_t; | |
typedef union | |
{ | |
char __size[32]; | |
long int __align; | |
} pthread_barrier_t; | |
typedef union | |
{ | |
char __size[4]; | |
int __align; | |
} pthread_barrierattr_t; | |
# 228 "/usr/include/sys/types.h" 2 3 4 | |
} | |
# 515 "/usr/include/stdlib.h" 2 3 4 | |
extern long int random (void) noexcept (true); | |
extern void srandom (unsigned int __seed) noexcept (true); | |
extern char *initstate (unsigned int __seed, char *__statebuf, | |
size_t __statelen) noexcept (true) __attribute__ ((__nonnull__ (2))); | |
extern char *setstate (char *__statebuf) noexcept (true) __attribute__ ((__nonnull__ (1))); | |
struct random_data | |
{ | |
int32_t *fptr; | |
int32_t *rptr; | |
int32_t *state; | |
int rand_type; | |
int rand_deg; | |
int rand_sep; | |
int32_t *end_ptr; | |
}; | |
extern int random_r (struct random_data *__restrict __buf, | |
int32_t *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); | |
extern int srandom_r (unsigned int __seed, struct random_data *__buf) | |
noexcept (true) __attribute__ ((__nonnull__ (2))); | |
extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, | |
size_t __statelen, | |
struct random_data *__restrict __buf) | |
noexcept (true) __attribute__ ((__nonnull__ (2, 4))); | |
extern int setstate_r (char *__restrict __statebuf, | |
struct random_data *__restrict __buf) | |
noexcept (true) __attribute__ ((__nonnull__ (1, 2))); | |
extern int rand (void) noexcept (true); | |
extern void srand (unsigned int __seed) noexcept (true); | |
extern int rand_r (unsigned int *__seed) noexcept (true); | |
extern double drand48 (void) noexcept (true); | |
extern double erand48 (unsigned short int __xsubi[3]) noexcept (true) __attribute__ ((__nonnull__ (1))); | |
extern long int lrand48 (void) noexcept (true); | |
extern long int nrand48 (unsigned short int __xsubi[3]) | |
noexcept (true) __attribute__ ((__nonnull__ (1))); | |
extern long int mrand48 (void) noexcept (true); | |
extern long int jrand48 (unsigned short int __xsubi[3]) | |
noexcept (true) __attribute__ ((__nonnull__ (1))); | |
extern void srand48 (long int __seedval) noexcept (true); | |
extern unsigned short int *seed48 (unsigned short int __seed16v[3]) | |
noexcept (true) __attribute__ ((__nonnull__ (1))); | |
extern void lcong48 (unsigned short int __param[7]) noexcept (true) __attribute__ ((__nonnull__ (1))); | |
struct drand48_data | |
{ | |
unsigned short int __x[3]; | |
unsigned short int __old_x[3]; | |
unsigned short int __c; | |
unsigned short int __init; | |
__extension__ unsigned long long int __a; | |
}; | |
extern int drand48_r (struct drand48_data *__restrict __buffer, | |
double *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); | |
extern int erand48_r (unsigned short int __xsubi[3], | |
struct drand48_data *__restrict __buffer, | |
double *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); | |
extern int lrand48_r (struct drand48_data *__restrict __buffer, | |
long int *__restrict __result) | |
noexcept (true) __attribute__ ((__nonnull__ (1, 2))); | |
extern int nrand48_r (unsigned short int __xsubi[3], | |
struct drand48_data *__restrict __buffer, | |
long int *__restrict __result) | |
noexcept (true) __attribute__ ((__nonnull__ (1, 2))); | |
extern int mrand48_r (struct drand48_data *__restrict __buffer, | |
long int *__restrict __result) | |
noexcept (true) __attribute__ ((__nonnull__ (1, 2))); | |
extern int jrand48_r (unsigned short int __xsubi[3], | |
struct drand48_data *__restrict __buffer, | |
long int *__restrict __result) | |
noexcept (true) __attribute__ ((__nonnull__ (1, 2))); | |
extern int srand48_r (long int __seedval, struct drand48_data *__buffer) | |
noexcept (true) __attribute__ ((__nonnull__ (2))); | |
extern int seed48_r (unsigned short int __seed16v[3], | |
struct drand48_data *__buffer) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); | |
extern int lcong48_r (unsigned short int __param[7], | |
struct drand48_data *__buffer) | |
noexcept (true) __attribute__ ((__nonnull__ (1, 2))); | |
extern __uint32_t arc4random (void) | |
noexcept (true) __attribute__ ((__warn_unused_result__)); | |
extern void arc4random_buf (void *__buf, size_t __size) | |
noexcept (true) __attribute__ ((__nonnull__ (1))); | |
extern __uint32_t arc4random_uniform (__uint32_t __upper_bound) | |
noexcept (true) __attribute__ ((__warn_unused_result__)); | |
extern void *malloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) | |
__attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)); | |
extern void *calloc (size_t __nmemb, size_t __size) | |
noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_size__ (1, 2))) __attribute__ ((__warn_unused_result__)); | |
extern void *realloc (void *__ptr, size_t __size) | |
noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__alloc_size__ (2))); | |
extern void free (void *__ptr) noexcept (true); | |
extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) | |
noexcept (true) __attribute__ ((__warn_unused_result__)) | |
__attribute__ ((__alloc_size__ (2, 3))) | |
__attribute__ ((__malloc__ (__builtin_free, 1))); | |
extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) | |
noexcept (true) __attribute__ ((__malloc__ (reallocarray, 1))); | |
# 1 "/usr/include/alloca.h" 1 3 4 | |
# 24 "/usr/include/alloca.h" 3 4 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/stddef.h" 1 3 4 | |
# 25 "/usr/include/alloca.h" 2 3 4 | |
extern "C" { | |
extern void *alloca (size_t __size) noexcept (true); | |
} | |
# 707 "/usr/include/stdlib.h" 2 3 4 | |
extern void *valloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) | |
__attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)); | |
extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) | |
noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
extern void *aligned_alloc (size_t __alignment, size_t __size) | |
noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_align__ (1))) | |
__attribute__ ((__alloc_size__ (2))) __attribute__ ((__warn_unused_result__)); | |
extern void abort (void) noexcept (true) __attribute__ ((__noreturn__)); | |
extern int atexit (void (*__func) (void)) noexcept (true) __attribute__ ((__nonnull__ (1))); | |
extern "C++" int at_quick_exit (void (*__func) (void)) | |
noexcept (true) __asm ("at_quick_exit") __attribute__ ((__nonnull__ (1))); | |
# 749 "/usr/include/stdlib.h" 3 4 | |
extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) | |
noexcept (true) __attribute__ ((__nonnull__ (1))); | |
extern void exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); | |
extern void quick_exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); | |
extern void _Exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); | |
extern char *getenv (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
extern char *secure_getenv (const char *__name) | |
noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
extern int putenv (char *__string) noexcept (true) __attribute__ ((__nonnull__ (1))); | |
extern int setenv (const char *__name, const char *__value, int __replace) | |
noexcept (true) __attribute__ ((__nonnull__ (2))); | |
extern int unsetenv (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))); | |
extern int clearenv (void) noexcept (true); | |
# 814 "/usr/include/stdlib.h" 3 4 | |
extern char *mktemp (char *__template) noexcept (true) __attribute__ ((__nonnull__ (1))); | |
# 827 "/usr/include/stdlib.h" 3 4 | |
extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
# 837 "/usr/include/stdlib.h" 3 4 | |
extern int mkstemp64 (char *__template) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
# 849 "/usr/include/stdlib.h" 3 4 | |
extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
# 859 "/usr/include/stdlib.h" 3 4 | |
extern int mkstemps64 (char *__template, int __suffixlen) | |
__attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
# 870 "/usr/include/stdlib.h" 3 4 | |
extern char *mkdtemp (char *__template) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
# 881 "/usr/include/stdlib.h" 3 4 | |
extern int mkostemp (char *__template, int __flags) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
# 891 "/usr/include/stdlib.h" 3 4 | |
extern int mkostemp64 (char *__template, int __flags) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
# 901 "/usr/include/stdlib.h" 3 4 | |
extern int mkostemps (char *__template, int __suffixlen, int __flags) | |
__attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
# 913 "/usr/include/stdlib.h" 3 4 | |
extern int mkostemps64 (char *__template, int __suffixlen, int __flags) | |
__attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
# 923 "/usr/include/stdlib.h" 3 4 | |
extern int system (const char *__command) __attribute__ ((__warn_unused_result__)); | |
extern char *canonicalize_file_name (const char *__name) | |
noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__malloc__)) | |
__attribute__ ((__malloc__ (__builtin_free, 1))) __attribute__ ((__warn_unused_result__)); | |
# 940 "/usr/include/stdlib.h" 3 4 | |
extern char *realpath (const char *__restrict __name, | |
char *__restrict __resolved) noexcept (true) __attribute__ ((__warn_unused_result__)); | |
typedef int (*__compar_fn_t) (const void *, const void *); | |
typedef __compar_fn_t comparison_fn_t; | |
typedef int (*__compar_d_fn_t) (const void *, const void *, void *); | |
extern void *bsearch (const void *__key, const void *__base, | |
size_t __nmemb, size_t __size, __compar_fn_t __compar) | |
__attribute__ ((__nonnull__ (1, 2, 5))) __attribute__ ((__warn_unused_result__)); | |
# 1 "/usr/include/bits/stdlib-bsearch.h" 1 3 4 | |
# 19 "/usr/include/bits/stdlib-bsearch.h" 3 4 | |
extern __inline __attribute__ ((__gnu_inline__)) void * | |
bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size, | |
__compar_fn_t __compar) | |
{ | |
size_t __l, __u, __idx; | |
const void *__p; | |
int __comparison; | |
__l = 0; | |
__u = __nmemb; | |
while (__l < __u) | |
{ | |
__idx = (__l + __u) / 2; | |
__p = (const void *) (((const char *) __base) + (__idx * __size)); | |
__comparison = (*__compar) (__key, __p); | |
if (__comparison < 0) | |
__u = __idx; | |
else if (__comparison > 0) | |
__l = __idx + 1; | |
else | |
{ | |
#pragma GCC diagnostic push | |
#pragma GCC diagnostic ignored "-Wcast-qual" | |
return (void *) __p; | |
#pragma GCC diagnostic pop | |
} | |
} | |
return __null; | |
} | |
# 966 "/usr/include/stdlib.h" 2 3 4 | |
extern void qsort (void *__base, size_t __nmemb, size_t __size, | |
__compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); | |
extern void qsort_r (void *__base, size_t __nmemb, size_t __size, | |
__compar_d_fn_t __compar, void *__arg) | |
__attribute__ ((__nonnull__ (1, 4))); | |
extern int abs (int __x) noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); | |
extern long int labs (long int __x) noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); | |
__extension__ extern long long int llabs (long long int __x) | |
noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); | |
extern div_t div (int __numer, int __denom) | |
noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); | |
extern ldiv_t ldiv (long int __numer, long int __denom) | |
noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); | |
__extension__ extern lldiv_t lldiv (long long int __numer, | |
long long int __denom) | |
noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); | |
# 1012 "/usr/include/stdlib.h" 3 4 | |
extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, | |
int *__restrict __sign) noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); | |
extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, | |
int *__restrict __sign) noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); | |
extern char *gcvt (double __value, int __ndigit, char *__buf) | |
noexcept (true) __attribute__ ((__nonnull__ (3))) __attribute__ ((__warn_unused_result__)); | |
extern char *qecvt (long double __value, int __ndigit, | |
int *__restrict __decpt, int *__restrict __sign) | |
noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); | |
extern char *qfcvt (long double __value, int __ndigit, | |
int *__restrict __decpt, int *__restrict __sign) | |
noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); | |
extern char *qgcvt (long double __value, int __ndigit, char *__buf) | |
noexcept (true) __attribute__ ((__nonnull__ (3))) __attribute__ ((__warn_unused_result__)); | |
extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, | |
int *__restrict __sign, char *__restrict __buf, | |
size_t __len) noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); | |
extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, | |
int *__restrict __sign, char *__restrict __buf, | |
size_t __len) noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); | |
extern int qecvt_r (long double __value, int __ndigit, | |
int *__restrict __decpt, int *__restrict __sign, | |
char *__restrict __buf, size_t __len) | |
noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); | |
extern int qfcvt_r (long double __value, int __ndigit, | |
int *__restrict __decpt, int *__restrict __sign, | |
char *__restrict __buf, size_t __len) | |
noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); | |
extern int mblen (const char *__s, size_t __n) noexcept (true); | |
extern int mbtowc (wchar_t *__restrict __pwc, | |
const char *__restrict __s, size_t __n) noexcept (true); | |
extern int wctomb (char *__s, wchar_t __wchar) noexcept (true); | |
extern size_t mbstowcs (wchar_t *__restrict __pwcs, | |
const char *__restrict __s, size_t __n) noexcept (true) | |
__attribute__ ((__access__ (__read_only__, 2))); | |
extern size_t wcstombs (char *__restrict __s, | |
const wchar_t *__restrict __pwcs, size_t __n) | |
noexcept (true) | |
__attribute__ ((__access__ (__write_only__, 1, 3))) | |
__attribute__ ((__access__ (__read_only__, 2))); | |
extern int rpmatch (const char *__response) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
# 1099 "/usr/include/stdlib.h" 3 4 | |
extern int getsubopt (char **__restrict __optionp, | |
char *const *__restrict __tokens, | |
char **__restrict __valuep) | |
noexcept (true) __attribute__ ((__nonnull__ (1, 2, 3))) __attribute__ ((__warn_unused_result__)); | |
extern int posix_openpt (int __oflag) __attribute__ ((__warn_unused_result__)); | |
extern int grantpt (int __fd) noexcept (true); | |
extern int unlockpt (int __fd) noexcept (true); | |
extern char *ptsname (int __fd) noexcept (true) __attribute__ ((__warn_unused_result__)); | |
extern int ptsname_r (int __fd, char *__buf, size_t __buflen) | |
noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 2, 3))); | |
extern int getpt (void); | |
extern int getloadavg (double __loadavg[], int __nelem) | |
noexcept (true) __attribute__ ((__nonnull__ (1))); | |
# 1155 "/usr/include/stdlib.h" 3 4 | |
# 1 "/usr/include/bits/stdlib-float.h" 1 3 4 | |
# 24 "/usr/include/bits/stdlib-float.h" 3 4 | |
extern __inline __attribute__ ((__gnu_inline__)) double | |
__attribute__ ((__leaf__)) atof (const char *__nptr) noexcept (true) | |
{ | |
return strtod (__nptr, (char **) __null); | |
} | |
# 1156 "/usr/include/stdlib.h" 2 3 4 | |
# 1 "/usr/include/bits/stdlib.h" 1 3 4 | |
# 23 "/usr/include/bits/stdlib.h" 3 4 | |
extern char *__realpath_chk (const char *__restrict __name, | |
char *__restrict __resolved, | |
size_t __resolvedlen) noexcept (true) __attribute__ ((__warn_unused_result__)); | |
extern char *__realpath_alias (const char *__restrict __name, char *__restrict __resolved) noexcept (true) __asm__ ("" "realpath") | |
__attribute__ ((__warn_unused_result__)); | |
extern char *__realpath_chk_warn (const char *__restrict __name, char *__restrict __resolved, size_t __resolvedlen) noexcept (true) __asm__ ("" "__realpath_chk") | |
__attribute__ ((__warn_unused_result__)) | |
__attribute__((__warning__ ("second argument of realpath must be either NULL or at " "least PATH_MAX bytes long buffer"))) | |
; | |
extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) char * | |
__attribute__ ((__leaf__)) realpath (const char *__restrict __name, char *__restrict __resolved) noexcept (true) | |
{ | |
size_t sz = __builtin_object_size (__resolved, 2 > 1); | |
if (sz == (size_t) -1) | |
return __realpath_alias (__name, __resolved); | |
return __realpath_chk (__name, __resolved, sz); | |
} | |
extern int __ptsname_r_chk (int __fd, char *__buf, size_t __buflen, | |
size_t __nreal) noexcept (true) __attribute__ ((__nonnull__ (2))) | |
__attribute__ ((__access__ (__write_only__, 2, 3))); | |
extern int __ptsname_r_alias (int __fd, char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "ptsname_r") | |
__attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 2, 3))); | |
extern int __ptsname_r_chk_warn (int __fd, char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__ptsname_r_chk") | |
__attribute__ ((__nonnull__ (2))) __attribute__((__warning__ ("ptsname_r called with buflen bigger than " "size of buf"))) | |
; | |
extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int | |
__attribute__ ((__leaf__)) ptsname_r (int __fd, char *__buf, size_t __buflen) noexcept (true) | |
{ | |
return (((__builtin_constant_p (__builtin_object_size (__buf, 2 > 1)) && (__builtin_object_size (__buf, 2 > 1)) == (long unsigned int) -1) || (((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((long unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char))))) && (((long unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char)))))) ? __ptsname_r_alias (__fd, __buf, __buflen) : ((((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((long unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) && !(((long unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) ? __ptsname_r_chk_warn (__fd, __buf, __buflen, __builtin_object_size (__buf, 2 > 1)) : __ptsname_r_chk (__fd, __buf, __buflen, __builtin_object_size (__buf, 2 > 1)))) | |
; | |
} | |
extern int __wctomb_chk (char *__s, wchar_t __wchar, size_t __buflen) | |
noexcept (true) __attribute__ ((__warn_unused_result__)); | |
extern int __wctomb_alias (char *__s, wchar_t __wchar) noexcept (true) __asm__ ("" "wctomb") | |
__attribute__ ((__warn_unused_result__)); | |
extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) int | |
__attribute__ ((__leaf__)) wctomb (char *__s, wchar_t __wchar) noexcept (true) | |
{ | |
if (__builtin_object_size (__s, 2 > 1) != (size_t) -1 | |
&& 16 > __builtin_object_size (__s, 2 > 1)) | |
return __wctomb_chk (__s, __wchar, __builtin_object_size (__s, 2 > 1)); | |
return __wctomb_alias (__s, __wchar); | |
} | |
extern size_t __mbstowcs_chk (wchar_t *__restrict __dst, | |
const char *__restrict __src, | |
size_t __len, size_t __dstlen) noexcept (true) | |
__attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); | |
extern size_t __mbstowcs_nulldst (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) noexcept (true) __asm__ ("" "mbstowcs") | |
__attribute__ ((__access__ (__read_only__, 2))); | |
extern size_t __mbstowcs_alias (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) noexcept (true) __asm__ ("" "mbstowcs") | |
__attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); | |
extern size_t __mbstowcs_chk_warn (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, size_t __dstlen) noexcept (true) __asm__ ("" "__mbstowcs_chk") | |
__attribute__((__warning__ ("mbstowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) | |
; | |
extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t | |
__attribute__ ((__leaf__)) mbstowcs (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) noexcept (true) | |
{ | |
if (__builtin_constant_p (__dst == __null) && __dst == __null) | |
return __mbstowcs_nulldst (__dst, __src, __len); | |
else | |
return (((__builtin_constant_p (__builtin_object_size (__dst, 2 > 1)) && (__builtin_object_size (__dst, 2 > 1)) == (long unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((long unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (wchar_t))))) && (((long unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (wchar_t)))))) ? __mbstowcs_alias (__dst, __src, __len) : ((((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((long unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t)))) && !(((long unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t)))) ? __mbstowcs_chk_warn (__dst, __src, __len, (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t))) : __mbstowcs_chk (__dst, __src, __len, (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t))))) | |
; | |
} | |
extern size_t __wcstombs_chk (char *__restrict __dst, | |
const wchar_t *__restrict __src, | |
size_t __len, size_t __dstlen) noexcept (true) | |
__attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); | |
extern size_t __wcstombs_alias (char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) noexcept (true) __asm__ ("" "wcstombs") | |
__attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); | |
extern size_t __wcstombs_chk_warn (char *__restrict __dst, const wchar_t *__restrict __src, size_t __len, size_t __dstlen) noexcept (true) __asm__ ("" "__wcstombs_chk") | |
__attribute__((__warning__ ("wcstombs called with dst buffer smaller than len"))); | |
extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t | |
__attribute__ ((__leaf__)) wcstombs (char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) noexcept (true) | |
{ | |
return (((__builtin_constant_p (__builtin_object_size (__dst, 2 > 1)) && (__builtin_object_size (__dst, 2 > 1)) == (long unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((long unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (char))))) && (((long unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (char)))))) ? __wcstombs_alias (__dst, __src, __len) : ((((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((long unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (char)))) && !(((long unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (char)))) ? __wcstombs_chk_warn (__dst, __src, __len, __builtin_object_size (__dst, 2 > 1)) : __wcstombs_chk (__dst, __src, __len, __builtin_object_size (__dst, 2 > 1)))) | |
; | |
} | |
# 1160 "/usr/include/stdlib.h" 2 3 4 | |
} | |
# 39 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/std_abs.h" 2 3 | |
extern "C++" | |
{ | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
using ::abs; | |
inline long | |
abs(long __i) { return __builtin_labs(__i); } | |
inline long long | |
abs(long long __x) { return __builtin_llabs (__x); } | |
# 70 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/std_abs.h" 3 | |
inline constexpr double | |
abs(double __x) | |
{ return __builtin_fabs(__x); } | |
inline constexpr float | |
abs(float __x) | |
{ return __builtin_fabsf(__x); } | |
inline constexpr long double | |
abs(long double __x) | |
{ return __builtin_fabsl(__x); } | |
# 150 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/std_abs.h" 3 | |
} | |
} | |
# 50 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/cmath" 2 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 1 3 | |
# 47 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 3 | |
# 48 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 3 | |
# 57 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/cmath" 2 3 | |
# 83 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/cmath" 3 | |
extern "C++" | |
{ | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
using ::acos; | |
inline constexpr float | |
acos(float __x) | |
{ return __builtin_acosf(__x); } | |
inline constexpr long double | |
acos(long double __x) | |
{ return __builtin_acosl(__x); } | |
template<typename _Tp> | |
inline constexpr | |
typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
double>::__type | |
acos(_Tp __x) | |
{ return __builtin_acos(__x); } | |
using ::asin; | |
inline constexpr float | |
asin(float __x) | |
{ return __builtin_asinf(__x); } | |
inline constexpr long double | |
asin(long double __x) | |
{ return __builtin_asinl(__x); } | |
template<typename _Tp> | |
inline constexpr | |
typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
double>::__type | |
asin(_Tp __x) | |
{ return __builtin_asin(__x); } | |
using ::atan; | |
inline constexpr float | |
atan(float __x) | |
{ return __builtin_atanf(__x); } | |
inline constexpr long double | |
atan(long double __x) | |
{ return __builtin_atanl(__x); } | |
template<typename _Tp> | |
inline constexpr | |
typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
double>::__type | |
atan(_Tp __x) | |
{ return __builtin_atan(__x); } | |
using ::atan2; | |
inline constexpr float | |
atan2(float __y, float __x) | |
{ return __builtin_atan2f(__y, __x); } | |
inline constexpr long double | |
atan2(long double __y, long double __x) | |
{ return __builtin_atan2l(__y, __x); } | |
using ::ceil; | |
inline constexpr float | |
ceil(float __x) | |
{ return __builtin_ceilf(__x); } | |
inline constexpr long double | |
ceil(long double __x) | |
{ return __builtin_ceill(__x); } | |
template<typename _Tp> | |
inline constexpr | |
typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
double>::__type | |
ceil(_Tp __x) | |
{ return __builtin_ceil(__x); } | |
using ::cos; | |
inline constexpr float | |
cos(float __x) | |
{ return __builtin_cosf(__x); } | |
inline constexpr long double | |
cos(long double __x) | |
{ return __builtin_cosl(__x); } | |
template<typename _Tp> | |
inline constexpr | |
typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
double>::__type | |
cos(_Tp __x) | |
{ return __builtin_cos(__x); } | |
using ::cosh; | |
inline constexpr float | |
cosh(float __x) | |
{ return __builtin_coshf(__x); } | |
inline constexpr long double | |
cosh(long double __x) | |
{ return __builtin_coshl(__x); } | |
template<typename _Tp> | |
inline constexpr | |
typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
double>::__type | |
cosh(_Tp __x) | |
{ return __builtin_cosh(__x); } | |
using ::exp; | |
inline constexpr float | |
exp(float __x) | |
{ return __builtin_expf(__x); } | |
inline constexpr long double | |
exp(long double __x) | |
{ return __builtin_expl(__x); } | |
template<typename _Tp> | |
inline constexpr | |
typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
double>::__type | |
exp(_Tp __x) | |
{ return __builtin_exp(__x); } | |
using ::fabs; | |
inline constexpr float | |
fabs(float __x) | |
{ return __builtin_fabsf(__x); } | |
inline constexpr long double | |
fabs(long double __x) | |
{ return __builtin_fabsl(__x); } | |
template<typename _Tp> | |
inline constexpr | |
typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
double>::__type | |
fabs(_Tp __x) | |
{ return __builtin_fabs(__x); } | |
using ::floor; | |
inline constexpr float | |
floor(float __x) | |
{ return __builtin_floorf(__x); } | |
inline constexpr long double | |
floor(long double __x) | |
{ return __builtin_floorl(__x); } | |
template<typename _Tp> | |
inline constexpr | |
typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
double>::__type | |
floor(_Tp __x) | |
{ return __builtin_floor(__x); } | |
using ::fmod; | |
inline constexpr float | |
fmod(float __x, float __y) | |
{ return __builtin_fmodf(__x, __y); } | |
inline constexpr long double | |
fmod(long double __x, long double __y) | |
{ return __builtin_fmodl(__x, __y); } | |
using ::frexp; | |
inline float | |
frexp(float __x, int* __exp) | |
{ return __builtin_frexpf(__x, __exp); } | |
inline long double | |
frexp(long double __x, int* __exp) | |
{ return __builtin_frexpl(__x, __exp); } | |
template<typename _Tp> | |
inline constexpr | |
typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
double>::__type | |
frexp(_Tp __x, int* __exp) | |
{ return __builtin_frexp(__x, __exp); } | |
using ::ldexp; | |
inline constexpr float | |
ldexp(float __x, int __exp) | |
{ return __builtin_ldexpf(__x, __exp); } | |
inline constexpr long double | |
ldexp(long double __x, int __exp) | |
{ return __builtin_ldexpl(__x, __exp); } | |
template<typename _Tp> | |
inline constexpr | |
typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
double>::__type | |
ldexp(_Tp __x, int __exp) | |
{ return __builtin_ldexp(__x, __exp); } | |
using ::log; | |
inline constexpr float | |
log(float __x) | |
{ return __builtin_logf(__x); } | |
inline constexpr long double | |
log(long double __x) | |
{ return __builtin_logl(__x); } | |
template<typename _Tp> | |
inline constexpr | |
typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
double>::__type | |
log(_Tp __x) | |
{ return __builtin_log(__x); } | |
using ::log10; | |
inline constexpr float | |
log10(float __x) | |
{ return __builtin_log10f(__x); } | |
inline constexpr long double | |
log10(long double __x) | |
{ return __builtin_log10l(__x); } | |
template<typename _Tp> | |
inline constexpr | |
typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
double>::__type | |
log10(_Tp __x) | |
{ return __builtin_log10(__x); } | |
using ::modf; | |
inline float | |
modf(float __x, float* __iptr) | |
{ return __builtin_modff(__x, __iptr); } | |
inline long double | |
modf(long double __x, long double* __iptr) | |
{ return __builtin_modfl(__x, __iptr); } | |
using ::pow; | |
inline constexpr float | |
pow(float __x, float __y) | |
{ return __builtin_powf(__x, __y); } | |
inline constexpr long double | |
pow(long double __x, long double __y) | |
{ return __builtin_powl(__x, __y); } | |
# 400 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/cmath" 3 | |
using ::sin; | |
inline constexpr float | |
sin(float __x) | |
{ return __builtin_sinf(__x); } | |
inline constexpr long double | |
sin(long double __x) | |
{ return __builtin_sinl(__x); } | |
template<typename _Tp> | |
inline constexpr | |
typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
double>::__type | |
sin(_Tp __x) | |
{ return __builtin_sin(__x); } | |
using ::sinh; | |
inline constexpr float | |
sinh(float __x) | |
{ return __builtin_sinhf(__x); } | |
inline constexpr long double | |
sinh(long double __x) | |
{ return __builtin_sinhl(__x); } | |
template<typename _Tp> | |
inline constexpr | |
typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
double>::__type | |
sinh(_Tp __x) | |
{ return __builtin_sinh(__x); } | |
using ::sqrt; | |
inline constexpr float | |
sqrt(float __x) | |
{ return __builtin_sqrtf(__x); } | |
inline constexpr long double | |
sqrt(long double __x) | |
{ return __builtin_sqrtl(__x); } | |
template<typename _Tp> | |
inline constexpr | |
typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
double>::__type | |
sqrt(_Tp __x) | |
{ return __builtin_sqrt(__x); } | |
using ::tan; | |
inline constexpr float | |
tan(float __x) | |
{ return __builtin_tanf(__x); } | |
inline constexpr long double | |
tan(long double __x) | |
{ return __builtin_tanl(__x); } | |
template<typename _Tp> | |
inline constexpr | |
typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
double>::__type | |
tan(_Tp __x) | |
{ return __builtin_tan(__x); } | |
using ::tanh; | |
inline constexpr float | |
tanh(float __x) | |
{ return __builtin_tanhf(__x); } | |
inline constexpr long double | |
tanh(long double __x) | |
{ return __builtin_tanhl(__x); } | |
template<typename _Tp> | |
inline constexpr | |
typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
double>::__type | |
tanh(_Tp __x) | |
{ return __builtin_tanh(__x); } | |
# 1053 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/cmath" 3 | |
template<typename _Tp, typename _Up> | |
inline constexpr | |
typename __gnu_cxx::__promote_2<_Tp, _Up>::__type | |
atan2(_Tp __y, _Up __x) | |
{ | |
typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; | |
return atan2(__type(__y), __type(__x)); | |
} | |
template<typename _Tp, typename _Up> | |
inline constexpr | |
typename __gnu_cxx::__promote_2<_Tp, _Up>::__type | |
fmod(_Tp __x, _Up __y) | |
{ | |
typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; | |
return fmod(__type(__x), __type(__y)); | |
} | |
template<typename _Tp, typename _Up> | |
inline constexpr | |
typename __gnu_cxx::__promote_2<_Tp, _Up>::__type | |
pow(_Tp __x, _Up __y) | |
{ | |
typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; | |
return pow(__type(__x), __type(__y)); | |
} | |
# 1100 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/cmath" 3 | |
constexpr int | |
fpclassify(float __x) | |
{ return __builtin_fpclassify(0, 1, 4, | |
3, 2, __x); } | |
constexpr int | |
fpclassify(double __x) | |
{ return __builtin_fpclassify(0, 1, 4, | |
3, 2, __x); } | |
constexpr int | |
fpclassify(long double __x) | |
{ return __builtin_fpclassify(0, 1, 4, | |
3, 2, __x); } | |
template<typename _Tp> | |
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
int>::__type | |
fpclassify(_Tp __x) | |
{ return __x != 0 ? 4 : 2; } | |
constexpr bool | |
isfinite(float __x) | |
{ return __builtin_isfinite(__x); } | |
constexpr bool | |
isfinite(double __x) | |
{ return __builtin_isfinite(__x); } | |
constexpr bool | |
isfinite(long double __x) | |
{ return __builtin_isfinite(__x); } | |
template<typename _Tp> | |
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
bool>::__type | |
isfinite(_Tp) | |
{ return true; } | |
constexpr bool | |
isinf(float __x) | |
{ return __builtin_isinf(__x); } | |
constexpr bool | |
isinf(double __x) | |
{ return __builtin_isinf(__x); } | |
constexpr bool | |
isinf(long double __x) | |
{ return __builtin_isinf(__x); } | |
template<typename _Tp> | |
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
bool>::__type | |
isinf(_Tp) | |
{ return false; } | |
constexpr bool | |
isnan(float __x) | |
{ return __builtin_isnan(__x); } | |
constexpr bool | |
isnan(double __x) | |
{ return __builtin_isnan(__x); } | |
constexpr bool | |
isnan(long double __x) | |
{ return __builtin_isnan(__x); } | |
template<typename _Tp> | |
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
bool>::__type | |
isnan(_Tp) | |
{ return false; } | |
constexpr bool | |
isnormal(float __x) | |
{ return __builtin_isnormal(__x); } | |
constexpr bool | |
isnormal(double __x) | |
{ return __builtin_isnormal(__x); } | |
constexpr bool | |
isnormal(long double __x) | |
{ return __builtin_isnormal(__x); } | |
template<typename _Tp> | |
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
bool>::__type | |
isnormal(_Tp __x) | |
{ return __x != 0 ? true : false; } | |
constexpr bool | |
signbit(float __x) | |
{ return __builtin_signbit(__x); } | |
constexpr bool | |
signbit(double __x) | |
{ return __builtin_signbit(__x); } | |
constexpr bool | |
signbit(long double __x) | |
{ return __builtin_signbit(__x); } | |
template<typename _Tp> | |
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
bool>::__type | |
signbit(_Tp __x) | |
{ return __x < 0 ? true : false; } | |
constexpr bool | |
isgreater(float __x, float __y) | |
{ return __builtin_isgreater(__x, __y); } | |
constexpr bool | |
isgreater(double __x, double __y) | |
{ return __builtin_isgreater(__x, __y); } | |
constexpr bool | |
isgreater(long double __x, long double __y) | |
{ return __builtin_isgreater(__x, __y); } | |
template<typename _Tp, typename _Up> | |
constexpr typename | |
__gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value | |
&& __is_arithmetic<_Up>::__value), bool>::__type | |
isgreater(_Tp __x, _Up __y) | |
{ | |
typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; | |
return __builtin_isgreater(__type(__x), __type(__y)); | |
} | |
constexpr bool | |
isgreaterequal(float __x, float __y) | |
{ return __builtin_isgreaterequal(__x, __y); } | |
constexpr bool | |
isgreaterequal(double __x, double __y) | |
{ return __builtin_isgreaterequal(__x, __y); } | |
constexpr bool | |
isgreaterequal(long double __x, long double __y) | |
{ return __builtin_isgreaterequal(__x, __y); } | |
template<typename _Tp, typename _Up> | |
constexpr typename | |
__gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value | |
&& __is_arithmetic<_Up>::__value), bool>::__type | |
isgreaterequal(_Tp __x, _Up __y) | |
{ | |
typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; | |
return __builtin_isgreaterequal(__type(__x), __type(__y)); | |
} | |
constexpr bool | |
isless(float __x, float __y) | |
{ return __builtin_isless(__x, __y); } | |
constexpr bool | |
isless(double __x, double __y) | |
{ return __builtin_isless(__x, __y); } | |
constexpr bool | |
isless(long double __x, long double __y) | |
{ return __builtin_isless(__x, __y); } | |
template<typename _Tp, typename _Up> | |
constexpr typename | |
__gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value | |
&& __is_arithmetic<_Up>::__value), bool>::__type | |
isless(_Tp __x, _Up __y) | |
{ | |
typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; | |
return __builtin_isless(__type(__x), __type(__y)); | |
} | |
constexpr bool | |
islessequal(float __x, float __y) | |
{ return __builtin_islessequal(__x, __y); } | |
constexpr bool | |
islessequal(double __x, double __y) | |
{ return __builtin_islessequal(__x, __y); } | |
constexpr bool | |
islessequal(long double __x, long double __y) | |
{ return __builtin_islessequal(__x, __y); } | |
template<typename _Tp, typename _Up> | |
constexpr typename | |
__gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value | |
&& __is_arithmetic<_Up>::__value), bool>::__type | |
islessequal(_Tp __x, _Up __y) | |
{ | |
typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; | |
return __builtin_islessequal(__type(__x), __type(__y)); | |
} | |
constexpr bool | |
islessgreater(float __x, float __y) | |
{ return __builtin_islessgreater(__x, __y); } | |
constexpr bool | |
islessgreater(double __x, double __y) | |
{ return __builtin_islessgreater(__x, __y); } | |
constexpr bool | |
islessgreater(long double __x, long double __y) | |
{ return __builtin_islessgreater(__x, __y); } | |
template<typename _Tp, typename _Up> | |
constexpr typename | |
__gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value | |
&& __is_arithmetic<_Up>::__value), bool>::__type | |
islessgreater(_Tp __x, _Up __y) | |
{ | |
typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; | |
return __builtin_islessgreater(__type(__x), __type(__y)); | |
} | |
constexpr bool | |
isunordered(float __x, float __y) | |
{ return __builtin_isunordered(__x, __y); } | |
constexpr bool | |
isunordered(double __x, double __y) | |
{ return __builtin_isunordered(__x, __y); } | |
constexpr bool | |
isunordered(long double __x, long double __y) | |
{ return __builtin_isunordered(__x, __y); } | |
template<typename _Tp, typename _Up> | |
constexpr typename | |
__gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value | |
&& __is_arithmetic<_Up>::__value), bool>::__type | |
isunordered(_Tp __x, _Up __y) | |
{ | |
typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; | |
return __builtin_isunordered(__type(__x), __type(__y)); | |
} | |
# 1820 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/cmath" 3 | |
using ::acosf; | |
using ::acosl; | |
using ::asinf; | |
using ::asinl; | |
using ::atanf; | |
using ::atanl; | |
using ::atan2f; | |
using ::atan2l; | |
using ::ceilf; | |
using ::ceill; | |
using ::cosf; | |
using ::cosl; | |
using ::coshf; | |
using ::coshl; | |
using ::expf; | |
using ::expl; | |
using ::fabsf; | |
using ::fabsl; | |
using ::floorf; | |
using ::floorl; | |
using ::fmodf; | |
using ::fmodl; | |
using ::frexpf; | |
using ::frexpl; | |
using ::ldexpf; | |
using ::ldexpl; | |
using ::logf; | |
using ::logl; | |
using ::log10f; | |
using ::log10l; | |
using ::modff; | |
using ::modfl; | |
using ::powf; | |
using ::powl; | |
using ::sinf; | |
using ::sinl; | |
using ::sinhf; | |
using ::sinhl; | |
using ::sqrtf; | |
using ::sqrtl; | |
using ::tanf; | |
using ::tanl; | |
using ::tanhf; | |
using ::tanhl; | |
# 2085 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/cmath" 3 | |
using ::double_t; | |
using ::float_t; | |
using ::acosh; | |
using ::acoshf; | |
using ::acoshl; | |
using ::asinh; | |
using ::asinhf; | |
using ::asinhl; | |
using ::atanh; | |
using ::atanhf; | |
using ::atanhl; | |
using ::cbrt; | |
using ::cbrtf; | |
using ::cbrtl; | |
using ::copysign; | |
using ::copysignf; | |
using ::copysignl; | |
using ::erf; | |
using ::erff; | |
using ::erfl; | |
using ::erfc; | |
using ::erfcf; | |
using ::erfcl; | |
using ::exp2; | |
using ::exp2f; | |
using ::exp2l; | |
using ::expm1; | |
using ::expm1f; | |
using ::expm1l; | |
using ::fdim; | |
using ::fdimf; | |
using ::fdiml; | |
using ::fma; | |
using ::fmaf; | |
using ::fmal; | |
using ::fmax; | |
using ::fmaxf; | |
using ::fmaxl; | |
using ::fmin; | |
using ::fminf; | |
using ::fminl; | |
using ::hypot; | |
using ::hypotf; | |
using ::hypotl; | |
using ::ilogb; | |
using ::ilogbf; | |
using ::ilogbl; | |
using ::lgamma; | |
using ::lgammaf; | |
using ::lgammal; | |
using ::llrint; | |
using ::llrintf; | |
using ::llrintl; | |
using ::llround; | |
using ::llroundf; | |
using ::llroundl; | |
using ::log1p; | |
using ::log1pf; | |
using ::log1pl; | |
using ::log2; | |
using ::log2f; | |
using ::log2l; | |
using ::logb; | |
using ::logbf; | |
using ::logbl; | |
using ::lrint; | |
using ::lrintf; | |
using ::lrintl; | |
using ::lround; | |
using ::lroundf; | |
using ::lroundl; | |
using ::nan; | |
using ::nanf; | |
using ::nanl; | |
using ::nearbyint; | |
using ::nearbyintf; | |
using ::nearbyintl; | |
using ::nextafter; | |
using ::nextafterf; | |
using ::nextafterl; | |
using ::nexttoward; | |
using ::nexttowardf; | |
using ::nexttowardl; | |
using ::remainder; | |
using ::remainderf; | |
using ::remainderl; | |
using ::remquo; | |
using ::remquof; | |
using ::remquol; | |
using ::rint; | |
using ::rintf; | |
using ::rintl; | |
using ::round; | |
using ::roundf; | |
using ::roundl; | |
using ::scalbln; | |
using ::scalblnf; | |
using ::scalblnl; | |
using ::scalbn; | |
using ::scalbnf; | |
using ::scalbnl; | |
using ::tgamma; | |
using ::tgammaf; | |
using ::tgammal; | |
using ::trunc; | |
using ::truncf; | |
using ::truncl; | |
constexpr float | |
acosh(float __x) | |
{ return __builtin_acoshf(__x); } | |
constexpr long double | |
acosh(long double __x) | |
{ return __builtin_acoshl(__x); } | |
template<typename _Tp> | |
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
double>::__type | |
acosh(_Tp __x) | |
{ return __builtin_acosh(__x); } | |
constexpr float | |
asinh(float __x) | |
{ return __builtin_asinhf(__x); } | |
constexpr long double | |
asinh(long double __x) | |
{ return __builtin_asinhl(__x); } | |
template<typename _Tp> | |
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
double>::__type | |
asinh(_Tp __x) | |
{ return __builtin_asinh(__x); } | |
constexpr float | |
atanh(float __x) | |
{ return __builtin_atanhf(__x); } | |
constexpr long double | |
atanh(long double __x) | |
{ return __builtin_atanhl(__x); } | |
template<typename _Tp> | |
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
double>::__type | |
atanh(_Tp __x) | |
{ return __builtin_atanh(__x); } | |
constexpr float | |
cbrt(float __x) | |
{ return __builtin_cbrtf(__x); } | |
constexpr long double | |
cbrt(long double __x) | |
{ return __builtin_cbrtl(__x); } | |
template<typename _Tp> | |
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
double>::__type | |
cbrt(_Tp __x) | |
{ return __builtin_cbrt(__x); } | |
constexpr float | |
copysign(float __x, float __y) | |
{ return __builtin_copysignf(__x, __y); } | |
constexpr long double | |
copysign(long double __x, long double __y) | |
{ return __builtin_copysignl(__x, __y); } | |
constexpr float | |
erf(float __x) | |
{ return __builtin_erff(__x); } | |
constexpr long double | |
erf(long double __x) | |
{ return __builtin_erfl(__x); } | |
template<typename _Tp> | |
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
double>::__type | |
erf(_Tp __x) | |
{ return __builtin_erf(__x); } | |
constexpr float | |
erfc(float __x) | |
{ return __builtin_erfcf(__x); } | |
constexpr long double | |
erfc(long double __x) | |
{ return __builtin_erfcl(__x); } | |
template<typename _Tp> | |
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
double>::__type | |
erfc(_Tp __x) | |
{ return __builtin_erfc(__x); } | |
constexpr float | |
exp2(float __x) | |
{ return __builtin_exp2f(__x); } | |
constexpr long double | |
exp2(long double __x) | |
{ return __builtin_exp2l(__x); } | |
template<typename _Tp> | |
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
double>::__type | |
exp2(_Tp __x) | |
{ return __builtin_exp2(__x); } | |
constexpr float | |
expm1(float __x) | |
{ return __builtin_expm1f(__x); } | |
constexpr long double | |
expm1(long double __x) | |
{ return __builtin_expm1l(__x); } | |
template<typename _Tp> | |
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
double>::__type | |
expm1(_Tp __x) | |
{ return __builtin_expm1(__x); } | |
constexpr float | |
fdim(float __x, float __y) | |
{ return __builtin_fdimf(__x, __y); } | |
constexpr long double | |
fdim(long double __x, long double __y) | |
{ return __builtin_fdiml(__x, __y); } | |
constexpr float | |
fma(float __x, float __y, float __z) | |
{ return __builtin_fmaf(__x, __y, __z); } | |
constexpr long double | |
fma(long double __x, long double __y, long double __z) | |
{ return __builtin_fmal(__x, __y, __z); } | |
constexpr float | |
fmax(float __x, float __y) | |
{ return __builtin_fmaxf(__x, __y); } | |
constexpr long double | |
fmax(long double __x, long double __y) | |
{ return __builtin_fmaxl(__x, __y); } | |
constexpr float | |
fmin(float __x, float __y) | |
{ return __builtin_fminf(__x, __y); } | |
constexpr long double | |
fmin(long double __x, long double __y) | |
{ return __builtin_fminl(__x, __y); } | |
constexpr float | |
hypot(float __x, float __y) | |
{ return __builtin_hypotf(__x, __y); } | |
constexpr long double | |
hypot(long double __x, long double __y) | |
{ return __builtin_hypotl(__x, __y); } | |
constexpr int | |
ilogb(float __x) | |
{ return __builtin_ilogbf(__x); } | |
constexpr int | |
ilogb(long double __x) | |
{ return __builtin_ilogbl(__x); } | |
template<typename _Tp> | |
constexpr | |
typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
int>::__type | |
ilogb(_Tp __x) | |
{ return __builtin_ilogb(__x); } | |
constexpr float | |
lgamma(float __x) | |
{ return __builtin_lgammaf(__x); } | |
constexpr long double | |
lgamma(long double __x) | |
{ return __builtin_lgammal(__x); } | |
template<typename _Tp> | |
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
double>::__type | |
lgamma(_Tp __x) | |
{ return __builtin_lgamma(__x); } | |
constexpr long long | |
llrint(float __x) | |
{ return __builtin_llrintf(__x); } | |
constexpr long long | |
llrint(long double __x) | |
{ return __builtin_llrintl(__x); } | |
template<typename _Tp> | |
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
long long>::__type | |
llrint(_Tp __x) | |
{ return __builtin_llrint(__x); } | |
constexpr long long | |
llround(float __x) | |
{ return __builtin_llroundf(__x); } | |
constexpr long long | |
llround(long double __x) | |
{ return __builtin_llroundl(__x); } | |
template<typename _Tp> | |
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
long long>::__type | |
llround(_Tp __x) | |
{ return __builtin_llround(__x); } | |
constexpr float | |
log1p(float __x) | |
{ return __builtin_log1pf(__x); } | |
constexpr long double | |
log1p(long double __x) | |
{ return __builtin_log1pl(__x); } | |
template<typename _Tp> | |
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
double>::__type | |
log1p(_Tp __x) | |
{ return __builtin_log1p(__x); } | |
constexpr float | |
log2(float __x) | |
{ return __builtin_log2f(__x); } | |
constexpr long double | |
log2(long double __x) | |
{ return __builtin_log2l(__x); } | |
template<typename _Tp> | |
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
double>::__type | |
log2(_Tp __x) | |
{ return __builtin_log2(__x); } | |
constexpr float | |
logb(float __x) | |
{ return __builtin_logbf(__x); } | |
constexpr long double | |
logb(long double __x) | |
{ return __builtin_logbl(__x); } | |
template<typename _Tp> | |
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
double>::__type | |
logb(_Tp __x) | |
{ return __builtin_logb(__x); } | |
constexpr long | |
lrint(float __x) | |
{ return __builtin_lrintf(__x); } | |
constexpr long | |
lrint(long double __x) | |
{ return __builtin_lrintl(__x); } | |
template<typename _Tp> | |
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
long>::__type | |
lrint(_Tp __x) | |
{ return __builtin_lrint(__x); } | |
constexpr long | |
lround(float __x) | |
{ return __builtin_lroundf(__x); } | |
constexpr long | |
lround(long double __x) | |
{ return __builtin_lroundl(__x); } | |
template<typename _Tp> | |
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
long>::__type | |
lround(_Tp __x) | |
{ return __builtin_lround(__x); } | |
constexpr float | |
nearbyint(float __x) | |
{ return __builtin_nearbyintf(__x); } | |
constexpr long double | |
nearbyint(long double __x) | |
{ return __builtin_nearbyintl(__x); } | |
template<typename _Tp> | |
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
double>::__type | |
nearbyint(_Tp __x) | |
{ return __builtin_nearbyint(__x); } | |
constexpr float | |
nextafter(float __x, float __y) | |
{ return __builtin_nextafterf(__x, __y); } | |
constexpr long double | |
nextafter(long double __x, long double __y) | |
{ return __builtin_nextafterl(__x, __y); } | |
constexpr float | |
nexttoward(float __x, long double __y) | |
{ return __builtin_nexttowardf(__x, __y); } | |
constexpr long double | |
nexttoward(long double __x, long double __y) | |
{ return __builtin_nexttowardl(__x, __y); } | |
template<typename _Tp> | |
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
double>::__type | |
nexttoward(_Tp __x, long double __y) | |
{ return __builtin_nexttoward(__x, __y); } | |
constexpr float | |
remainder(float __x, float __y) | |
{ return __builtin_remainderf(__x, __y); } | |
constexpr long double | |
remainder(long double __x, long double __y) | |
{ return __builtin_remainderl(__x, __y); } | |
inline float | |
remquo(float __x, float __y, int* __pquo) | |
{ return __builtin_remquof(__x, __y, __pquo); } | |
inline long double | |
remquo(long double __x, long double __y, int* __pquo) | |
{ return __builtin_remquol(__x, __y, __pquo); } | |
constexpr float | |
rint(float __x) | |
{ return __builtin_rintf(__x); } | |
constexpr long double | |
rint(long double __x) | |
{ return __builtin_rintl(__x); } | |
template<typename _Tp> | |
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
double>::__type | |
rint(_Tp __x) | |
{ return __builtin_rint(__x); } | |
constexpr float | |
round(float __x) | |
{ return __builtin_roundf(__x); } | |
constexpr long double | |
round(long double __x) | |
{ return __builtin_roundl(__x); } | |
template<typename _Tp> | |
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
double>::__type | |
round(_Tp __x) | |
{ return __builtin_round(__x); } | |
constexpr float | |
scalbln(float __x, long __ex) | |
{ return __builtin_scalblnf(__x, __ex); } | |
constexpr long double | |
scalbln(long double __x, long __ex) | |
{ return __builtin_scalblnl(__x, __ex); } | |
template<typename _Tp> | |
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
double>::__type | |
scalbln(_Tp __x, long __ex) | |
{ return __builtin_scalbln(__x, __ex); } | |
constexpr float | |
scalbn(float __x, int __ex) | |
{ return __builtin_scalbnf(__x, __ex); } | |
constexpr long double | |
scalbn(long double __x, int __ex) | |
{ return __builtin_scalbnl(__x, __ex); } | |
template<typename _Tp> | |
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
double>::__type | |
scalbn(_Tp __x, int __ex) | |
{ return __builtin_scalbn(__x, __ex); } | |
constexpr float | |
tgamma(float __x) | |
{ return __builtin_tgammaf(__x); } | |
constexpr long double | |
tgamma(long double __x) | |
{ return __builtin_tgammal(__x); } | |
template<typename _Tp> | |
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
double>::__type | |
tgamma(_Tp __x) | |
{ return __builtin_tgamma(__x); } | |
constexpr float | |
trunc(float __x) | |
{ return __builtin_truncf(__x); } | |
constexpr long double | |
trunc(long double __x) | |
{ return __builtin_truncl(__x); } | |
template<typename _Tp> | |
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, | |
double>::__type | |
trunc(_Tp __x) | |
{ return __builtin_trunc(__x); } | |
# 3674 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/cmath" 3 | |
template<typename _Tp, typename _Up> | |
constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type | |
copysign(_Tp __x, _Up __y) | |
{ | |
typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; | |
return copysign(__type(__x), __type(__y)); | |
} | |
template<typename _Tp, typename _Up> | |
constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type | |
fdim(_Tp __x, _Up __y) | |
{ | |
typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; | |
return fdim(__type(__x), __type(__y)); | |
} | |
template<typename _Tp, typename _Up> | |
constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type | |
fmax(_Tp __x, _Up __y) | |
{ | |
typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; | |
return fmax(__type(__x), __type(__y)); | |
} | |
template<typename _Tp, typename _Up> | |
constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type | |
fmin(_Tp __x, _Up __y) | |
{ | |
typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; | |
return fmin(__type(__x), __type(__y)); | |
} | |
template<typename _Tp, typename _Up> | |
constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type | |
hypot(_Tp __x, _Up __y) | |
{ | |
typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; | |
return hypot(__type(__x), __type(__y)); | |
} | |
template<typename _Tp, typename _Up> | |
constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type | |
nextafter(_Tp __x, _Up __y) | |
{ | |
typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; | |
return nextafter(__type(__x), __type(__y)); | |
} | |
template<typename _Tp, typename _Up> | |
constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type | |
remainder(_Tp __x, _Up __y) | |
{ | |
typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; | |
return remainder(__type(__x), __type(__y)); | |
} | |
template<typename _Tp, typename _Up> | |
inline typename __gnu_cxx::__promote_2<_Tp, _Up>::__type | |
remquo(_Tp __x, _Up __y, int* __pquo) | |
{ | |
typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; | |
return remquo(__type(__x), __type(__y), __pquo); | |
} | |
template<typename _Tp, typename _Up, typename _Vp> | |
constexpr typename __gnu_cxx::__promote_3<_Tp, _Up, _Vp>::__type | |
fma(_Tp __x, _Up __y, _Vp __z) | |
{ | |
typedef typename __gnu_cxx::__promote_3<_Tp, _Up, _Vp>::__type __type; | |
return fma(__type(__x), __type(__y), __type(__z)); | |
} | |
template<typename _Tp> | |
inline _Tp | |
__hypot3(_Tp __x, _Tp __y, _Tp __z) | |
{ | |
__x = std::abs(__x); | |
__y = std::abs(__y); | |
__z = std::abs(__z); | |
if (_Tp __a = __x < __y ? __y < __z ? __z : __y : __x < __z ? __z : __x) | |
return __a * std::sqrt((__x / __a) * (__x / __a) | |
+ (__y / __a) * (__y / __a) | |
+ (__z / __a) * (__z / __a)); | |
else | |
return {}; | |
} | |
inline float | |
hypot(float __x, float __y, float __z) | |
{ return std::__hypot3<float>(__x, __y, __z); } | |
inline double | |
hypot(double __x, double __y, double __z) | |
{ return std::__hypot3<double>(__x, __y, __z); } | |
inline long double | |
hypot(long double __x, long double __y, long double __z) | |
{ return std::__hypot3<long double>(__x, __y, __z); } | |
template<typename _Tp, typename _Up, typename _Vp> | |
__gnu_cxx::__promoted_t<_Tp, _Up, _Vp> | |
hypot(_Tp __x, _Up __y, _Vp __z) | |
{ | |
using __type = __gnu_cxx::__promoted_t<_Tp, _Up, _Vp>; | |
return std::__hypot3<__type>(__x, __y, __z); | |
} | |
# 3894 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/cmath" 3 | |
} | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/specfun.h" 1 3 | |
# 37 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/specfun.h" 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 1 3 | |
# 47 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 3 | |
# 48 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 3 | |
# 38 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/specfun.h" 2 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 1 3 | |
# 60 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/functexcept.h" 1 3 | |
# 42 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/functexcept.h" 3 | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
void | |
__throw_bad_exception(void) __attribute__((__noreturn__)); | |
void | |
__throw_bad_alloc(void) __attribute__((__noreturn__)); | |
void | |
__throw_bad_array_new_length(void) __attribute__((__noreturn__)); | |
void | |
__throw_bad_cast(void) __attribute__((__noreturn__,__cold__)); | |
void | |
__throw_bad_typeid(void) __attribute__((__noreturn__,__cold__)); | |
void | |
__throw_logic_error(const char*) __attribute__((__noreturn__,__cold__)); | |
void | |
__throw_domain_error(const char*) __attribute__((__noreturn__,__cold__)); | |
void | |
__throw_invalid_argument(const char*) __attribute__((__noreturn__,__cold__)); | |
void | |
__throw_length_error(const char*) __attribute__((__noreturn__,__cold__)); | |
void | |
__throw_out_of_range(const char*) __attribute__((__noreturn__,__cold__)); | |
void | |
__throw_out_of_range_fmt(const char*, ...) __attribute__((__noreturn__,__cold__)) | |
__attribute__((__format__(__gnu_printf__, 1, 2))); | |
void | |
__throw_runtime_error(const char*) __attribute__((__noreturn__,__cold__)); | |
void | |
__throw_range_error(const char*) __attribute__((__noreturn__,__cold__)); | |
void | |
__throw_overflow_error(const char*) __attribute__((__noreturn__,__cold__)); | |
void | |
__throw_underflow_error(const char*) __attribute__((__noreturn__,__cold__)); | |
void | |
__throw_ios_failure(const char*) __attribute__((__noreturn__,__cold__)); | |
void | |
__throw_ios_failure(const char*, int) __attribute__((__noreturn__,__cold__)); | |
void | |
__throw_system_error(int) __attribute__((__noreturn__,__cold__)); | |
void | |
__throw_future_error(int) __attribute__((__noreturn__,__cold__)); | |
void | |
__throw_bad_function_call() __attribute__((__noreturn__,__cold__)); | |
# 140 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/functexcept.h" 3 | |
} | |
# 61 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 2 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h" 1 3 | |
# 67 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h" 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/ptr_traits.h" 1 3 | |
# 42 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/ptr_traits.h" 3 | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
class __undefined; | |
template<typename _Tp> | |
struct __get_first_arg | |
{ using type = __undefined; }; | |
template<template<typename, typename...> class _SomeTemplate, typename _Tp, | |
typename... _Types> | |
struct __get_first_arg<_SomeTemplate<_Tp, _Types...>> | |
{ using type = _Tp; }; | |
template<typename _Tp, typename _Up> | |
struct __replace_first_arg | |
{ }; | |
template<template<typename, typename...> class _SomeTemplate, typename _Up, | |
typename _Tp, typename... _Types> | |
struct __replace_first_arg<_SomeTemplate<_Tp, _Types...>, _Up> | |
{ using type = _SomeTemplate<_Up, _Types...>; }; | |
template<typename _Ptr, typename = void> | |
struct __ptr_traits_elem : __get_first_arg<_Ptr> | |
{ }; | |
template<typename _Ptr> | |
struct __ptr_traits_elem<_Ptr, __void_t<typename _Ptr::element_type>> | |
{ using type = typename _Ptr::element_type; }; | |
template<typename _Ptr> | |
using __ptr_traits_elem_t = typename __ptr_traits_elem<_Ptr>::type; | |
template<typename _Ptr, typename _Elt, bool = is_void<_Elt>::value> | |
struct __ptr_traits_ptr_to | |
{ | |
using pointer = _Ptr; | |
using element_type = _Elt; | |
static pointer | |
pointer_to(element_type& __r) | |
{ return pointer::pointer_to(__r); } | |
}; | |
template<typename _Ptr, typename _Elt> | |
struct __ptr_traits_ptr_to<_Ptr, _Elt, true> | |
{ }; | |
template<typename _Tp> | |
struct __ptr_traits_ptr_to<_Tp*, _Tp, false> | |
{ | |
using pointer = _Tp*; | |
using element_type = _Tp; | |
static pointer | |
pointer_to(element_type& __r) noexcept | |
{ return std::addressof(__r); } | |
}; | |
template<typename _Ptr, typename _Elt> | |
struct __ptr_traits_impl : __ptr_traits_ptr_to<_Ptr, _Elt> | |
{ | |
private: | |
template<typename _Tp> | |
using __diff_t = typename _Tp::difference_type; | |
template<typename _Tp, typename _Up> | |
using __rebind = __type_identity<typename _Tp::template rebind<_Up>>; | |
public: | |
using pointer = _Ptr; | |
using element_type = _Elt; | |
using difference_type = __detected_or_t<ptrdiff_t, __diff_t, _Ptr>; | |
template<typename _Up> | |
using rebind = typename __detected_or_t<__replace_first_arg<_Ptr, _Up>, | |
__rebind, _Ptr, _Up>::type; | |
}; | |
template<typename _Ptr> | |
struct __ptr_traits_impl<_Ptr, __undefined> | |
{ }; | |
template<typename _Ptr> | |
struct pointer_traits : __ptr_traits_impl<_Ptr, __ptr_traits_elem_t<_Ptr>> | |
{ }; | |
template<typename _Tp> | |
struct pointer_traits<_Tp*> : __ptr_traits_ptr_to<_Tp*, _Tp> | |
{ | |
typedef _Tp* pointer; | |
typedef _Tp element_type; | |
typedef ptrdiff_t difference_type; | |
template<typename _Up> using rebind = _Up*; | |
}; | |
template<typename _Ptr, typename _Tp> | |
using __ptr_rebind = typename pointer_traits<_Ptr>::template rebind<_Tp>; | |
template<typename _Tp> | |
constexpr _Tp* | |
__to_address(_Tp* __ptr) noexcept | |
{ | |
static_assert(!std::is_function<_Tp>::value, "not a function pointer"); | |
return __ptr; | |
} | |
template<typename _Ptr> | |
constexpr typename std::pointer_traits<_Ptr>::element_type* | |
__to_address(const _Ptr& __ptr) | |
{ return std::__to_address(__ptr.operator->()); } | |
# 257 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/ptr_traits.h" 3 | |
} | |
# 68 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h" 2 3 | |
# 85 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h" 3 | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
# 106 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h" 3 | |
# 106 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h" 3 | |
#pragma GCC diagnostic push | |
#pragma GCC diagnostic ignored "-Wdeprecated-declarations" | |
# 128 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h" 3 | |
template<typename _Iterator> | |
class reverse_iterator | |
: public iterator<typename iterator_traits<_Iterator>::iterator_category, | |
typename iterator_traits<_Iterator>::value_type, | |
typename iterator_traits<_Iterator>::difference_type, | |
typename iterator_traits<_Iterator>::pointer, | |
typename iterator_traits<_Iterator>::reference> | |
{ | |
template<typename _Iter> | |
friend class reverse_iterator; | |
# 147 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h" 3 | |
protected: | |
_Iterator current; | |
typedef iterator_traits<_Iterator> __traits_type; | |
public: | |
typedef _Iterator iterator_type; | |
typedef typename __traits_type::pointer pointer; | |
typedef typename __traits_type::difference_type difference_type; | |
typedef typename __traits_type::reference reference; | |
# 178 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h" 3 | |
constexpr | |
reverse_iterator() | |
noexcept(noexcept(_Iterator())) | |
: current() | |
{ } | |
explicit constexpr | |
reverse_iterator(iterator_type __x) | |
noexcept(noexcept(_Iterator(__x))) | |
: current(__x) | |
{ } | |
constexpr | |
reverse_iterator(const reverse_iterator& __x) | |
noexcept(noexcept(_Iterator(__x.current))) | |
: current(__x.current) | |
{ } | |
reverse_iterator& operator=(const reverse_iterator&) = default; | |
template<typename _Iter> | |
constexpr | |
reverse_iterator(const reverse_iterator<_Iter>& __x) | |
noexcept(noexcept(_Iterator(__x.current))) | |
: current(__x.current) | |
{ } | |
template<typename _Iter> | |
constexpr | |
reverse_iterator& | |
operator=(const reverse_iterator<_Iter>& __x) | |
noexcept(noexcept(current = __x.current)) | |
{ | |
current = __x.current; | |
return *this; | |
} | |
[[__nodiscard__]] | |
constexpr iterator_type | |
base() const | |
noexcept(noexcept(_Iterator(current))) | |
{ return current; } | |
# 255 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h" 3 | |
[[__nodiscard__]] | |
constexpr reference | |
operator*() const | |
{ | |
_Iterator __tmp = current; | |
return *--__tmp; | |
} | |
[[__nodiscard__]] | |
constexpr pointer | |
operator->() const | |
{ | |
_Iterator __tmp = current; | |
--__tmp; | |
return _S_to_pointer(__tmp); | |
} | |
constexpr reverse_iterator& | |
operator++() | |
{ | |
--current; | |
return *this; | |
} | |
constexpr reverse_iterator | |
operator++(int) | |
{ | |
reverse_iterator __tmp = *this; | |
--current; | |
return __tmp; | |
} | |
constexpr reverse_iterator& | |
operator--() | |
{ | |
++current; | |
return *this; | |
} | |
constexpr reverse_iterator | |
operator--(int) | |
{ | |
reverse_iterator __tmp = *this; | |
++current; | |
return __tmp; | |
} | |
[[__nodiscard__]] | |
constexpr reverse_iterator | |
operator+(difference_type __n) const | |
{ return reverse_iterator(current - __n); } | |
constexpr reverse_iterator& | |
operator+=(difference_type __n) | |
{ | |
current -= __n; | |
return *this; | |
} | |
[[__nodiscard__]] | |
constexpr reverse_iterator | |
operator-(difference_type __n) const | |
{ return reverse_iterator(current + __n); } | |
constexpr reverse_iterator& | |
operator-=(difference_type __n) | |
{ | |
current += __n; | |
return *this; | |
} | |
[[__nodiscard__]] | |
constexpr reference | |
operator[](difference_type __n) const | |
{ return *(*this + __n); } | |
# 415 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h" 3 | |
private: | |
template<typename _Tp> | |
static constexpr _Tp* | |
_S_to_pointer(_Tp* __p) | |
{ return __p; } | |
template<typename _Tp> | |
static constexpr pointer | |
_S_to_pointer(_Tp __t) | |
{ return __t.operator->(); } | |
}; | |
# 438 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h" 3 | |
template<typename _Iterator> | |
[[__nodiscard__]] | |
inline constexpr bool | |
operator==(const reverse_iterator<_Iterator>& __x, | |
const reverse_iterator<_Iterator>& __y) | |
{ return __x.base() == __y.base(); } | |
template<typename _Iterator> | |
[[__nodiscard__]] | |
inline constexpr bool | |
operator<(const reverse_iterator<_Iterator>& __x, | |
const reverse_iterator<_Iterator>& __y) | |
{ return __y.base() < __x.base(); } | |
template<typename _Iterator> | |
[[__nodiscard__]] | |
inline constexpr bool | |
operator!=(const reverse_iterator<_Iterator>& __x, | |
const reverse_iterator<_Iterator>& __y) | |
{ return !(__x == __y); } | |
template<typename _Iterator> | |
[[__nodiscard__]] | |
inline constexpr bool | |
operator>(const reverse_iterator<_Iterator>& __x, | |
const reverse_iterator<_Iterator>& __y) | |
{ return __y < __x; } | |
template<typename _Iterator> | |
[[__nodiscard__]] | |
inline constexpr bool | |
operator<=(const reverse_iterator<_Iterator>& __x, | |
const reverse_iterator<_Iterator>& __y) | |
{ return !(__y < __x); } | |
template<typename _Iterator> | |
[[__nodiscard__]] | |
inline constexpr bool | |
operator>=(const reverse_iterator<_Iterator>& __x, | |
const reverse_iterator<_Iterator>& __y) | |
{ return !(__x < __y); } | |
template<typename _IteratorL, typename _IteratorR> | |
[[__nodiscard__]] | |
inline constexpr bool | |
operator==(const reverse_iterator<_IteratorL>& __x, | |
const reverse_iterator<_IteratorR>& __y) | |
{ return __x.base() == __y.base(); } | |
template<typename _IteratorL, typename _IteratorR> | |
[[__nodiscard__]] | |
inline constexpr bool | |
operator<(const reverse_iterator<_IteratorL>& __x, | |
const reverse_iterator<_IteratorR>& __y) | |
{ return __x.base() > __y.base(); } | |
template<typename _IteratorL, typename _IteratorR> | |
[[__nodiscard__]] | |
inline constexpr bool | |
operator!=(const reverse_iterator<_IteratorL>& __x, | |
const reverse_iterator<_IteratorR>& __y) | |
{ return __x.base() != __y.base(); } | |
template<typename _IteratorL, typename _IteratorR> | |
[[__nodiscard__]] | |
inline constexpr bool | |
operator>(const reverse_iterator<_IteratorL>& __x, | |
const reverse_iterator<_IteratorR>& __y) | |
{ return __x.base() < __y.base(); } | |
template<typename _IteratorL, typename _IteratorR> | |
inline constexpr bool | |
operator<=(const reverse_iterator<_IteratorL>& __x, | |
const reverse_iterator<_IteratorR>& __y) | |
{ return __x.base() >= __y.base(); } | |
template<typename _IteratorL, typename _IteratorR> | |
[[__nodiscard__]] | |
inline constexpr bool | |
operator>=(const reverse_iterator<_IteratorL>& __x, | |
const reverse_iterator<_IteratorR>& __y) | |
{ return __x.base() <= __y.base(); } | |
# 615 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h" 3 | |
template<typename _IteratorL, typename _IteratorR> | |
[[__nodiscard__]] | |
inline constexpr auto | |
operator-(const reverse_iterator<_IteratorL>& __x, | |
const reverse_iterator<_IteratorR>& __y) | |
-> decltype(__y.base() - __x.base()) | |
{ return __y.base() - __x.base(); } | |
template<typename _Iterator> | |
[[__nodiscard__]] | |
inline constexpr reverse_iterator<_Iterator> | |
operator+(typename reverse_iterator<_Iterator>::difference_type __n, | |
const reverse_iterator<_Iterator>& __x) | |
{ return reverse_iterator<_Iterator>(__x.base() - __n); } | |
template<typename _Iterator> | |
inline constexpr reverse_iterator<_Iterator> | |
__make_reverse_iterator(_Iterator __i) | |
{ return reverse_iterator<_Iterator>(__i); } | |
template<typename _Iterator> | |
[[__nodiscard__]] | |
inline constexpr reverse_iterator<_Iterator> | |
make_reverse_iterator(_Iterator __i) | |
{ return reverse_iterator<_Iterator>(__i); } | |
# 657 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h" 3 | |
template<typename _Iterator> | |
auto | |
__niter_base(reverse_iterator<_Iterator> __it) | |
-> decltype(__make_reverse_iterator(__niter_base(__it.base()))) | |
{ return __make_reverse_iterator(__niter_base(__it.base())); } | |
template<typename _Iterator> | |
struct __is_move_iterator<reverse_iterator<_Iterator> > | |
: __is_move_iterator<_Iterator> | |
{ }; | |
template<typename _Iterator> | |
auto | |
__miter_base(reverse_iterator<_Iterator> __it) | |
-> decltype(__make_reverse_iterator(__miter_base(__it.base()))) | |
{ return __make_reverse_iterator(__miter_base(__it.base())); } | |
# 688 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h" 3 | |
template<typename _Container> | |
class back_insert_iterator | |
: public iterator<output_iterator_tag, void, void, void, void> | |
{ | |
protected: | |
_Container* container; | |
public: | |
typedef _Container container_type; | |
explicit | |
back_insert_iterator(_Container& __x) | |
: container(std::__addressof(__x)) { } | |
# 726 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h" 3 | |
back_insert_iterator& | |
operator=(const typename _Container::value_type& __value) | |
{ | |
container->push_back(__value); | |
return *this; | |
} | |
back_insert_iterator& | |
operator=(typename _Container::value_type&& __value) | |
{ | |
container->push_back(std::move(__value)); | |
return *this; | |
} | |
[[__nodiscard__]] | |
back_insert_iterator& | |
operator*() | |
{ return *this; } | |
back_insert_iterator& | |
operator++() | |
{ return *this; } | |
back_insert_iterator | |
operator++(int) | |
{ return *this; } | |
}; | |
# 773 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h" 3 | |
template<typename _Container> | |
[[__nodiscard__]] | |
inline back_insert_iterator<_Container> | |
back_inserter(_Container& __x) | |
{ return back_insert_iterator<_Container>(__x); } | |
# 789 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h" 3 | |
template<typename _Container> | |
class front_insert_iterator | |
: public iterator<output_iterator_tag, void, void, void, void> | |
{ | |
protected: | |
_Container* container; | |
public: | |
typedef _Container container_type; | |
explicit | |
front_insert_iterator(_Container& __x) | |
: container(std::__addressof(__x)) { } | |
# 827 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h" 3 | |
front_insert_iterator& | |
operator=(const typename _Container::value_type& __value) | |
{ | |
container->push_front(__value); | |
return *this; | |
} | |
front_insert_iterator& | |
operator=(typename _Container::value_type&& __value) | |
{ | |
container->push_front(std::move(__value)); | |
return *this; | |
} | |
[[__nodiscard__]] | |
front_insert_iterator& | |
operator*() | |
{ return *this; } | |
front_insert_iterator& | |
operator++() | |
{ return *this; } | |
front_insert_iterator | |
operator++(int) | |
{ return *this; } | |
}; | |
# 874 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h" 3 | |
template<typename _Container> | |
[[__nodiscard__]] | |
inline front_insert_iterator<_Container> | |
front_inserter(_Container& __x) | |
{ return front_insert_iterator<_Container>(__x); } | |
# 894 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h" 3 | |
template<typename _Container> | |
class insert_iterator | |
: public iterator<output_iterator_tag, void, void, void, void> | |
{ | |
typedef typename _Container::iterator _Iter; | |
protected: | |
_Container* container; | |
_Iter iter; | |
public: | |
typedef _Container container_type; | |
# 919 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h" 3 | |
insert_iterator(_Container& __x, _Iter __i) | |
: container(std::__addressof(__x)), iter(__i) {} | |
# 955 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h" 3 | |
insert_iterator& | |
operator=(const typename _Container::value_type& __value) | |
{ | |
iter = container->insert(iter, __value); | |
++iter; | |
return *this; | |
} | |
insert_iterator& | |
operator=(typename _Container::value_type&& __value) | |
{ | |
iter = container->insert(iter, std::move(__value)); | |
++iter; | |
return *this; | |
} | |
[[__nodiscard__]] | |
insert_iterator& | |
operator*() | |
{ return *this; } | |
insert_iterator& | |
operator++() | |
{ return *this; } | |
insert_iterator& | |
operator++(int) | |
{ return *this; } | |
}; | |
#pragma GCC diagnostic pop | |
# 1014 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h" 3 | |
template<typename _Container> | |
[[__nodiscard__]] | |
inline insert_iterator<_Container> | |
inserter(_Container& __x, typename _Container::iterator __i) | |
{ return insert_iterator<_Container>(__x, __i); } | |
} | |
namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) | |
{ | |
# 1037 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h" 3 | |
template<typename _Iterator, typename _Container> | |
class __normal_iterator | |
{ | |
protected: | |
_Iterator _M_current; | |
typedef std::iterator_traits<_Iterator> __traits_type; | |
template<typename _Iter> | |
using __convertible_from | |
= std::__enable_if_t<std::is_convertible<_Iter, _Iterator>::value>; | |
public: | |
typedef _Iterator iterator_type; | |
typedef typename __traits_type::iterator_category iterator_category; | |
typedef typename __traits_type::value_type value_type; | |
typedef typename __traits_type::difference_type difference_type; | |
typedef typename __traits_type::reference reference; | |
typedef typename __traits_type::pointer pointer; | |
constexpr __normal_iterator() noexcept | |
: _M_current(_Iterator()) { } | |
explicit | |
__normal_iterator(const _Iterator& __i) noexcept | |
: _M_current(__i) { } | |
template<typename _Iter, typename = __convertible_from<_Iter>> | |
__normal_iterator(const __normal_iterator<_Iter, _Container>& __i) | |
noexcept | |
# 1085 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h" 3 | |
: _M_current(__i.base()) { } | |
reference | |
operator*() const noexcept | |
{ return *_M_current; } | |
pointer | |
operator->() const noexcept | |
{ return _M_current; } | |
__normal_iterator& | |
operator++() noexcept | |
{ | |
++_M_current; | |
return *this; | |
} | |
__normal_iterator | |
operator++(int) noexcept | |
{ return __normal_iterator(_M_current++); } | |
__normal_iterator& | |
operator--() noexcept | |
{ | |
--_M_current; | |
return *this; | |
} | |
__normal_iterator | |
operator--(int) noexcept | |
{ return __normal_iterator(_M_current--); } | |
reference | |
operator[](difference_type __n) const noexcept | |
{ return _M_current[__n]; } | |
__normal_iterator& | |
operator+=(difference_type __n) noexcept | |
{ _M_current += __n; return *this; } | |
__normal_iterator | |
operator+(difference_type __n) const noexcept | |
{ return __normal_iterator(_M_current + __n); } | |
__normal_iterator& | |
operator-=(difference_type __n) noexcept | |
{ _M_current -= __n; return *this; } | |
__normal_iterator | |
operator-(difference_type __n) const noexcept | |
{ return __normal_iterator(_M_current - __n); } | |
const _Iterator& | |
base() const noexcept | |
{ return _M_current; } | |
}; | |
# 1205 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h" 3 | |
template<typename _IteratorL, typename _IteratorR, typename _Container> | |
[[__nodiscard__]] | |
inline bool | |
operator==(const __normal_iterator<_IteratorL, _Container>& __lhs, | |
const __normal_iterator<_IteratorR, _Container>& __rhs) | |
noexcept | |
{ return __lhs.base() == __rhs.base(); } | |
template<typename _Iterator, typename _Container> | |
[[__nodiscard__]] | |
inline bool | |
operator==(const __normal_iterator<_Iterator, _Container>& __lhs, | |
const __normal_iterator<_Iterator, _Container>& __rhs) | |
noexcept | |
{ return __lhs.base() == __rhs.base(); } | |
template<typename _IteratorL, typename _IteratorR, typename _Container> | |
[[__nodiscard__]] | |
inline bool | |
operator!=(const __normal_iterator<_IteratorL, _Container>& __lhs, | |
const __normal_iterator<_IteratorR, _Container>& __rhs) | |
noexcept | |
{ return __lhs.base() != __rhs.base(); } | |
template<typename _Iterator, typename _Container> | |
[[__nodiscard__]] | |
inline bool | |
operator!=(const __normal_iterator<_Iterator, _Container>& __lhs, | |
const __normal_iterator<_Iterator, _Container>& __rhs) | |
noexcept | |
{ return __lhs.base() != __rhs.base(); } | |
template<typename _IteratorL, typename _IteratorR, typename _Container> | |
[[__nodiscard__]] | |
inline bool | |
operator<(const __normal_iterator<_IteratorL, _Container>& __lhs, | |
const __normal_iterator<_IteratorR, _Container>& __rhs) | |
noexcept | |
{ return __lhs.base() < __rhs.base(); } | |
template<typename _Iterator, typename _Container> | |
[[__nodiscard__]] | |
inline bool | |
operator<(const __normal_iterator<_Iterator, _Container>& __lhs, | |
const __normal_iterator<_Iterator, _Container>& __rhs) | |
noexcept | |
{ return __lhs.base() < __rhs.base(); } | |
template<typename _IteratorL, typename _IteratorR, typename _Container> | |
[[__nodiscard__]] | |
inline bool | |
operator>(const __normal_iterator<_IteratorL, _Container>& __lhs, | |
const __normal_iterator<_IteratorR, _Container>& __rhs) | |
noexcept | |
{ return __lhs.base() > __rhs.base(); } | |
template<typename _Iterator, typename _Container> | |
[[__nodiscard__]] | |
inline bool | |
operator>(const __normal_iterator<_Iterator, _Container>& __lhs, | |
const __normal_iterator<_Iterator, _Container>& __rhs) | |
noexcept | |
{ return __lhs.base() > __rhs.base(); } | |
template<typename _IteratorL, typename _IteratorR, typename _Container> | |
[[__nodiscard__]] | |
inline bool | |
operator<=(const __normal_iterator<_IteratorL, _Container>& __lhs, | |
const __normal_iterator<_IteratorR, _Container>& __rhs) | |
noexcept | |
{ return __lhs.base() <= __rhs.base(); } | |
template<typename _Iterator, typename _Container> | |
[[__nodiscard__]] | |
inline bool | |
operator<=(const __normal_iterator<_Iterator, _Container>& __lhs, | |
const __normal_iterator<_Iterator, _Container>& __rhs) | |
noexcept | |
{ return __lhs.base() <= __rhs.base(); } | |
template<typename _IteratorL, typename _IteratorR, typename _Container> | |
[[__nodiscard__]] | |
inline bool | |
operator>=(const __normal_iterator<_IteratorL, _Container>& __lhs, | |
const __normal_iterator<_IteratorR, _Container>& __rhs) | |
noexcept | |
{ return __lhs.base() >= __rhs.base(); } | |
template<typename _Iterator, typename _Container> | |
[[__nodiscard__]] | |
inline bool | |
operator>=(const __normal_iterator<_Iterator, _Container>& __lhs, | |
const __normal_iterator<_Iterator, _Container>& __rhs) | |
noexcept | |
{ return __lhs.base() >= __rhs.base(); } | |
template<typename _IteratorL, typename _IteratorR, typename _Container> | |
[[__nodiscard__]] | |
inline auto | |
operator-(const __normal_iterator<_IteratorL, _Container>& __lhs, | |
const __normal_iterator<_IteratorR, _Container>& __rhs) noexcept | |
-> decltype(__lhs.base() - __rhs.base()) | |
{ return __lhs.base() - __rhs.base(); } | |
template<typename _Iterator, typename _Container> | |
[[__nodiscard__]] | |
inline typename __normal_iterator<_Iterator, _Container>::difference_type | |
operator-(const __normal_iterator<_Iterator, _Container>& __lhs, | |
const __normal_iterator<_Iterator, _Container>& __rhs) | |
noexcept | |
{ return __lhs.base() - __rhs.base(); } | |
template<typename _Iterator, typename _Container> | |
[[__nodiscard__]] | |
inline __normal_iterator<_Iterator, _Container> | |
operator+(typename __normal_iterator<_Iterator, _Container>::difference_type | |
__n, const __normal_iterator<_Iterator, _Container>& __i) | |
noexcept | |
{ return __normal_iterator<_Iterator, _Container>(__i.base() + __n); } | |
} | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
template<typename _Iterator, typename _Container> | |
_Iterator | |
__niter_base(__gnu_cxx::__normal_iterator<_Iterator, _Container> __it) | |
noexcept(std::is_nothrow_copy_constructible<_Iterator>::value) | |
{ return __it.base(); } | |
template<typename _Iterator, typename _Container> | |
constexpr auto | |
__to_address(const __gnu_cxx::__normal_iterator<_Iterator, | |
_Container>& __it) noexcept | |
-> decltype(std::__to_address(__it.base())) | |
{ return std::__to_address(__it.base()); } | |
# 1412 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h" 3 | |
namespace __detail | |
{ | |
# 1428 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h" 3 | |
} | |
# 1439 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h" 3 | |
template<typename _Iterator> | |
class move_iterator | |
{ | |
_Iterator _M_current; | |
using __traits_type = iterator_traits<_Iterator>; | |
using __base_ref = typename __traits_type::reference; | |
template<typename _Iter2> | |
friend class move_iterator; | |
# 1478 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h" 3 | |
public: | |
using iterator_type = _Iterator; | |
# 1490 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h" 3 | |
typedef typename __traits_type::iterator_category iterator_category; | |
typedef typename __traits_type::value_type value_type; | |
typedef typename __traits_type::difference_type difference_type; | |
typedef _Iterator pointer; | |
using reference | |
= __conditional_t<is_reference<__base_ref>::value, | |
typename remove_reference<__base_ref>::type&&, | |
__base_ref>; | |
constexpr | |
move_iterator() | |
: _M_current() { } | |
explicit constexpr | |
move_iterator(iterator_type __i) | |
: _M_current(std::move(__i)) { } | |
template<typename _Iter> | |
constexpr | |
move_iterator(const move_iterator<_Iter>& __i) | |
: _M_current(__i._M_current) { } | |
template<typename _Iter> | |
constexpr | |
move_iterator& operator=(const move_iterator<_Iter>& __i) | |
{ | |
_M_current = __i._M_current; | |
return *this; | |
} | |
[[__nodiscard__]] | |
constexpr iterator_type | |
base() const | |
{ return _M_current; } | |
# 1548 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h" 3 | |
[[__nodiscard__]] | |
constexpr reference | |
operator*() const | |
{ return static_cast<reference>(*_M_current); } | |
[[__nodiscard__]] | |
constexpr pointer | |
operator->() const | |
{ return _M_current; } | |
constexpr move_iterator& | |
operator++() | |
{ | |
++_M_current; | |
return *this; | |
} | |
constexpr move_iterator | |
operator++(int) | |
{ | |
move_iterator __tmp = *this; | |
++_M_current; | |
return __tmp; | |
} | |
constexpr move_iterator& | |
operator--() | |
{ | |
--_M_current; | |
return *this; | |
} | |
constexpr move_iterator | |
operator--(int) | |
{ | |
move_iterator __tmp = *this; | |
--_M_current; | |
return __tmp; | |
} | |
[[__nodiscard__]] | |
constexpr move_iterator | |
operator+(difference_type __n) const | |
{ return move_iterator(_M_current + __n); } | |
constexpr move_iterator& | |
operator+=(difference_type __n) | |
{ | |
_M_current += __n; | |
return *this; | |
} | |
[[__nodiscard__]] | |
constexpr move_iterator | |
operator-(difference_type __n) const | |
{ return move_iterator(_M_current - __n); } | |
constexpr move_iterator& | |
operator-=(difference_type __n) | |
{ | |
_M_current -= __n; | |
return *this; | |
} | |
[[__nodiscard__]] | |
constexpr reference | |
operator[](difference_type __n) const | |
{ return std::move(_M_current[__n]); } | |
# 1662 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h" 3 | |
}; | |
template<typename _IteratorL, typename _IteratorR> | |
[[__nodiscard__]] | |
inline constexpr bool | |
operator==(const move_iterator<_IteratorL>& __x, | |
const move_iterator<_IteratorR>& __y) | |
{ return __x.base() == __y.base(); } | |
# 1683 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h" 3 | |
template<typename _IteratorL, typename _IteratorR> | |
[[__nodiscard__]] | |
inline constexpr bool | |
operator!=(const move_iterator<_IteratorL>& __x, | |
const move_iterator<_IteratorR>& __y) | |
{ return !(__x == __y); } | |
template<typename _IteratorL, typename _IteratorR> | |
[[__nodiscard__]] | |
inline constexpr bool | |
operator<(const move_iterator<_IteratorL>& __x, | |
const move_iterator<_IteratorR>& __y) | |
{ return __x.base() < __y.base(); } | |
template<typename _IteratorL, typename _IteratorR> | |
[[__nodiscard__]] | |
inline constexpr bool | |
operator<=(const move_iterator<_IteratorL>& __x, | |
const move_iterator<_IteratorR>& __y) | |
{ return !(__y < __x); } | |
template<typename _IteratorL, typename _IteratorR> | |
[[__nodiscard__]] | |
inline constexpr bool | |
operator>(const move_iterator<_IteratorL>& __x, | |
const move_iterator<_IteratorR>& __y) | |
{ return __y < __x; } | |
template<typename _IteratorL, typename _IteratorR> | |
[[__nodiscard__]] | |
inline constexpr bool | |
operator>=(const move_iterator<_IteratorL>& __x, | |
const move_iterator<_IteratorR>& __y) | |
{ return !(__x < __y); } | |
template<typename _Iterator> | |
[[__nodiscard__]] | |
inline constexpr bool | |
operator==(const move_iterator<_Iterator>& __x, | |
const move_iterator<_Iterator>& __y) | |
{ return __x.base() == __y.base(); } | |
# 1749 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h" 3 | |
template<typename _Iterator> | |
[[__nodiscard__]] | |
inline constexpr bool | |
operator!=(const move_iterator<_Iterator>& __x, | |
const move_iterator<_Iterator>& __y) | |
{ return !(__x == __y); } | |
template<typename _Iterator> | |
[[__nodiscard__]] | |
inline constexpr bool | |
operator<(const move_iterator<_Iterator>& __x, | |
const move_iterator<_Iterator>& __y) | |
{ return __x.base() < __y.base(); } | |
template<typename _Iterator> | |
[[__nodiscard__]] | |
inline constexpr bool | |
operator<=(const move_iterator<_Iterator>& __x, | |
const move_iterator<_Iterator>& __y) | |
{ return !(__y < __x); } | |
template<typename _Iterator> | |
[[__nodiscard__]] | |
inline constexpr bool | |
operator>(const move_iterator<_Iterator>& __x, | |
const move_iterator<_Iterator>& __y) | |
{ return __y < __x; } | |
template<typename _Iterator> | |
[[__nodiscard__]] | |
inline constexpr bool | |
operator>=(const move_iterator<_Iterator>& __x, | |
const move_iterator<_Iterator>& __y) | |
{ return !(__x < __y); } | |
template<typename _IteratorL, typename _IteratorR> | |
[[__nodiscard__]] | |
inline constexpr auto | |
operator-(const move_iterator<_IteratorL>& __x, | |
const move_iterator<_IteratorR>& __y) | |
-> decltype(__x.base() - __y.base()) | |
{ return __x.base() - __y.base(); } | |
template<typename _Iterator> | |
[[__nodiscard__]] | |
inline constexpr move_iterator<_Iterator> | |
operator+(typename move_iterator<_Iterator>::difference_type __n, | |
const move_iterator<_Iterator>& __x) | |
{ return __x + __n; } | |
template<typename _Iterator> | |
[[__nodiscard__]] | |
inline constexpr move_iterator<_Iterator> | |
make_move_iterator(_Iterator __i) | |
{ return move_iterator<_Iterator>(std::move(__i)); } | |
template<typename _Iterator, typename _ReturnType | |
= __conditional_t<__move_if_noexcept_cond | |
<typename iterator_traits<_Iterator>::value_type>::value, | |
_Iterator, move_iterator<_Iterator>>> | |
inline constexpr _ReturnType | |
__make_move_if_noexcept_iterator(_Iterator __i) | |
{ return _ReturnType(__i); } | |
template<typename _Tp, typename _ReturnType | |
= __conditional_t<__move_if_noexcept_cond<_Tp>::value, | |
const _Tp*, move_iterator<_Tp*>>> | |
inline constexpr _ReturnType | |
__make_move_if_noexcept_iterator(_Tp* __i) | |
{ return _ReturnType(__i); } | |
# 2952 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h" 3 | |
template<typename _Iterator> | |
auto | |
__niter_base(move_iterator<_Iterator> __it) | |
-> decltype(make_move_iterator(__niter_base(__it.base()))) | |
{ return make_move_iterator(__niter_base(__it.base())); } | |
template<typename _Iterator> | |
struct __is_move_iterator<move_iterator<_Iterator> > | |
{ | |
enum { __value = 1 }; | |
typedef __true_type __type; | |
}; | |
template<typename _Iterator> | |
auto | |
__miter_base(move_iterator<_Iterator> __it) | |
-> decltype(__miter_base(__it.base())) | |
{ return __miter_base(__it.base()); } | |
# 2984 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h" 3 | |
template<typename _InputIterator> | |
using __iter_key_t = remove_const_t< | |
typename iterator_traits<_InputIterator>::value_type::first_type>; | |
template<typename _InputIterator> | |
using __iter_val_t | |
= typename iterator_traits<_InputIterator>::value_type::second_type; | |
template<typename _T1, typename _T2> | |
struct pair; | |
template<typename _InputIterator> | |
using __iter_to_alloc_t | |
= pair<const __iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>>; | |
} | |
# 68 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 2 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/debug/debug.h" 1 3 | |
# 48 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/debug/debug.h" 3 | |
namespace std | |
{ | |
namespace __debug { } | |
} | |
namespace __gnu_debug | |
{ | |
using namespace std::__debug; | |
template<typename _Ite, typename _Seq, typename _Cat> | |
struct _Safe_iterator; | |
} | |
# 70 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 2 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/predefined_ops.h" 1 3 | |
# 35 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/predefined_ops.h" 3 | |
namespace __gnu_cxx | |
{ | |
namespace __ops | |
{ | |
struct _Iter_less_iter | |
{ | |
template<typename _Iterator1, typename _Iterator2> | |
constexpr | |
bool | |
operator()(_Iterator1 __it1, _Iterator2 __it2) const | |
{ return *__it1 < *__it2; } | |
}; | |
constexpr | |
inline _Iter_less_iter | |
__iter_less_iter() | |
{ return _Iter_less_iter(); } | |
struct _Iter_less_val | |
{ | |
constexpr _Iter_less_val() = default; | |
explicit | |
_Iter_less_val(_Iter_less_iter) { } | |
template<typename _Iterator, typename _Value> | |
bool | |
operator()(_Iterator __it, _Value& __val) const | |
{ return *__it < __val; } | |
}; | |
inline _Iter_less_val | |
__iter_less_val() | |
{ return _Iter_less_val(); } | |
inline _Iter_less_val | |
__iter_comp_val(_Iter_less_iter) | |
{ return _Iter_less_val(); } | |
struct _Val_less_iter | |
{ | |
constexpr _Val_less_iter() = default; | |
explicit | |
_Val_less_iter(_Iter_less_iter) { } | |
template<typename _Value, typename _Iterator> | |
bool | |
operator()(_Value& __val, _Iterator __it) const | |
{ return __val < *__it; } | |
}; | |
inline _Val_less_iter | |
__val_less_iter() | |
{ return _Val_less_iter(); } | |
inline _Val_less_iter | |
__val_comp_iter(_Iter_less_iter) | |
{ return _Val_less_iter(); } | |
struct _Iter_equal_to_iter | |
{ | |
template<typename _Iterator1, typename _Iterator2> | |
bool | |
operator()(_Iterator1 __it1, _Iterator2 __it2) const | |
{ return *__it1 == *__it2; } | |
}; | |
inline _Iter_equal_to_iter | |
__iter_equal_to_iter() | |
{ return _Iter_equal_to_iter(); } | |
struct _Iter_equal_to_val | |
{ | |
template<typename _Iterator, typename _Value> | |
bool | |
operator()(_Iterator __it, _Value& __val) const | |
{ return *__it == __val; } | |
}; | |
inline _Iter_equal_to_val | |
__iter_equal_to_val() | |
{ return _Iter_equal_to_val(); } | |
inline _Iter_equal_to_val | |
__iter_comp_val(_Iter_equal_to_iter) | |
{ return _Iter_equal_to_val(); } | |
template<typename _Compare> | |
struct _Iter_comp_iter | |
{ | |
_Compare _M_comp; | |
explicit constexpr | |
_Iter_comp_iter(_Compare __comp) | |
: _M_comp(std::move(__comp)) | |
{ } | |
template<typename _Iterator1, typename _Iterator2> | |
constexpr | |
bool | |
operator()(_Iterator1 __it1, _Iterator2 __it2) | |
{ return bool(_M_comp(*__it1, *__it2)); } | |
}; | |
template<typename _Compare> | |
constexpr | |
inline _Iter_comp_iter<_Compare> | |
__iter_comp_iter(_Compare __comp) | |
{ return _Iter_comp_iter<_Compare>(std::move(__comp)); } | |
template<typename _Compare> | |
struct _Iter_comp_val | |
{ | |
_Compare _M_comp; | |
explicit | |
_Iter_comp_val(_Compare __comp) | |
: _M_comp(std::move(__comp)) | |
{ } | |
explicit | |
_Iter_comp_val(const _Iter_comp_iter<_Compare>& __comp) | |
: _M_comp(__comp._M_comp) | |
{ } | |
explicit | |
_Iter_comp_val(_Iter_comp_iter<_Compare>&& __comp) | |
: _M_comp(std::move(__comp._M_comp)) | |
{ } | |
template<typename _Iterator, typename _Value> | |
bool | |
operator()(_Iterator __it, _Value& __val) | |
{ return bool(_M_comp(*__it, __val)); } | |
}; | |
template<typename _Compare> | |
inline _Iter_comp_val<_Compare> | |
__iter_comp_val(_Compare __comp) | |
{ return _Iter_comp_val<_Compare>(std::move(__comp)); } | |
template<typename _Compare> | |
inline _Iter_comp_val<_Compare> | |
__iter_comp_val(_Iter_comp_iter<_Compare> __comp) | |
{ return _Iter_comp_val<_Compare>(std::move(__comp)); } | |
template<typename _Compare> | |
struct _Val_comp_iter | |
{ | |
_Compare _M_comp; | |
explicit | |
_Val_comp_iter(_Compare __comp) | |
: _M_comp(std::move(__comp)) | |
{ } | |
explicit | |
_Val_comp_iter(const _Iter_comp_iter<_Compare>& __comp) | |
: _M_comp(__comp._M_comp) | |
{ } | |
explicit | |
_Val_comp_iter(_Iter_comp_iter<_Compare>&& __comp) | |
: _M_comp(std::move(__comp._M_comp)) | |
{ } | |
template<typename _Value, typename _Iterator> | |
bool | |
operator()(_Value& __val, _Iterator __it) | |
{ return bool(_M_comp(__val, *__it)); } | |
}; | |
template<typename _Compare> | |
inline _Val_comp_iter<_Compare> | |
__val_comp_iter(_Compare __comp) | |
{ return _Val_comp_iter<_Compare>(std::move(__comp)); } | |
template<typename _Compare> | |
inline _Val_comp_iter<_Compare> | |
__val_comp_iter(_Iter_comp_iter<_Compare> __comp) | |
{ return _Val_comp_iter<_Compare>(std::move(__comp)); } | |
template<typename _Value> | |
struct _Iter_equals_val | |
{ | |
_Value& _M_value; | |
explicit | |
_Iter_equals_val(_Value& __value) | |
: _M_value(__value) | |
{ } | |
template<typename _Iterator> | |
bool | |
operator()(_Iterator __it) | |
{ return *__it == _M_value; } | |
}; | |
template<typename _Value> | |
inline _Iter_equals_val<_Value> | |
__iter_equals_val(_Value& __val) | |
{ return _Iter_equals_val<_Value>(__val); } | |
template<typename _Iterator1> | |
struct _Iter_equals_iter | |
{ | |
_Iterator1 _M_it1; | |
explicit | |
_Iter_equals_iter(_Iterator1 __it1) | |
: _M_it1(__it1) | |
{ } | |
template<typename _Iterator2> | |
bool | |
operator()(_Iterator2 __it2) | |
{ return *__it2 == *_M_it1; } | |
}; | |
template<typename _Iterator> | |
inline _Iter_equals_iter<_Iterator> | |
__iter_comp_iter(_Iter_equal_to_iter, _Iterator __it) | |
{ return _Iter_equals_iter<_Iterator>(__it); } | |
template<typename _Predicate> | |
struct _Iter_pred | |
{ | |
_Predicate _M_pred; | |
explicit | |
_Iter_pred(_Predicate __pred) | |
: _M_pred(std::move(__pred)) | |
{ } | |
template<typename _Iterator> | |
bool | |
operator()(_Iterator __it) | |
{ return bool(_M_pred(*__it)); } | |
}; | |
template<typename _Predicate> | |
inline _Iter_pred<_Predicate> | |
__pred_iter(_Predicate __pred) | |
{ return _Iter_pred<_Predicate>(std::move(__pred)); } | |
template<typename _Compare, typename _Value> | |
struct _Iter_comp_to_val | |
{ | |
_Compare _M_comp; | |
_Value& _M_value; | |
_Iter_comp_to_val(_Compare __comp, _Value& __value) | |
: _M_comp(std::move(__comp)), _M_value(__value) | |
{ } | |
template<typename _Iterator> | |
bool | |
operator()(_Iterator __it) | |
{ return bool(_M_comp(*__it, _M_value)); } | |
}; | |
template<typename _Compare, typename _Value> | |
_Iter_comp_to_val<_Compare, _Value> | |
__iter_comp_val(_Compare __comp, _Value &__val) | |
{ | |
return _Iter_comp_to_val<_Compare, _Value>(std::move(__comp), __val); | |
} | |
template<typename _Compare, typename _Iterator1> | |
struct _Iter_comp_to_iter | |
{ | |
_Compare _M_comp; | |
_Iterator1 _M_it1; | |
_Iter_comp_to_iter(_Compare __comp, _Iterator1 __it1) | |
: _M_comp(std::move(__comp)), _M_it1(__it1) | |
{ } | |
template<typename _Iterator2> | |
bool | |
operator()(_Iterator2 __it2) | |
{ return bool(_M_comp(*__it2, *_M_it1)); } | |
}; | |
template<typename _Compare, typename _Iterator> | |
inline _Iter_comp_to_iter<_Compare, _Iterator> | |
__iter_comp_iter(_Iter_comp_iter<_Compare> __comp, _Iterator __it) | |
{ | |
return _Iter_comp_to_iter<_Compare, _Iterator>( | |
std::move(__comp._M_comp), __it); | |
} | |
template<typename _Predicate> | |
struct _Iter_negate | |
{ | |
_Predicate _M_pred; | |
explicit | |
_Iter_negate(_Predicate __pred) | |
: _M_pred(std::move(__pred)) | |
{ } | |
template<typename _Iterator> | |
bool | |
operator()(_Iterator __it) | |
{ return !bool(_M_pred(*__it)); } | |
}; | |
template<typename _Predicate> | |
inline _Iter_negate<_Predicate> | |
__negate(_Iter_pred<_Predicate> __pred) | |
{ return _Iter_negate<_Predicate>(std::move(__pred._M_pred)); } | |
} | |
} | |
# 72 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 2 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bit" 1 3 | |
# 32 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bit" 3 | |
# 33 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bit" 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/concepts" 1 3 | |
# 33 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/concepts" 3 | |
# 34 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/concepts" 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 1 3 | |
# 47 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 3 | |
# 48 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 3 | |
# 37 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/concepts" 2 3 | |
# 37 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bit" 2 3 | |
# 61 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bit" 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 1 3 | |
# 47 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 3 | |
# 48 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/version.h" 3 | |
# 62 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bit" 2 3 | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
# 155 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bit" 3 | |
template<typename _Tp> | |
constexpr _Tp | |
__rotl(_Tp __x, int __s) noexcept | |
{ | |
constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; | |
if constexpr ((_Nd & (_Nd - 1)) == 0) | |
{ | |
constexpr unsigned __uNd = _Nd; | |
const unsigned __r = __s; | |
return (__x << (__r % __uNd)) | (__x >> ((-__r) % __uNd)); | |
} | |
const int __r = __s % _Nd; | |
if (__r == 0) | |
return __x; | |
else if (__r > 0) | |
return (__x << __r) | (__x >> ((_Nd - __r) % _Nd)); | |
else | |
return (__x >> -__r) | (__x << ((_Nd + __r) % _Nd)); | |
} | |
template<typename _Tp> | |
constexpr _Tp | |
__rotr(_Tp __x, int __s) noexcept | |
{ | |
constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; | |
if constexpr ((_Nd & (_Nd - 1)) == 0) | |
{ | |
constexpr unsigned __uNd = _Nd; | |
const unsigned __r = __s; | |
return (__x >> (__r % __uNd)) | (__x << ((-__r) % __uNd)); | |
} | |
const int __r = __s % _Nd; | |
if (__r == 0) | |
return __x; | |
else if (__r > 0) | |
return (__x >> __r) | (__x << ((_Nd - __r) % _Nd)); | |
else | |
return (__x << -__r) | (__x >> ((_Nd + __r) % _Nd)); | |
} | |
template<typename _Tp> | |
constexpr int | |
__countl_zero(_Tp __x) noexcept | |
{ | |
using __gnu_cxx::__int_traits; | |
constexpr auto _Nd = __int_traits<_Tp>::__digits; | |
if (__x == 0) | |
return _Nd; | |
constexpr auto _Nd_ull = __int_traits<unsigned long long>::__digits; | |
constexpr auto _Nd_ul = __int_traits<unsigned long>::__digits; | |
constexpr auto _Nd_u = __int_traits<unsigned>::__digits; | |
if constexpr (_Nd <= _Nd_u) | |
{ | |
constexpr int __diff = _Nd_u - _Nd; | |
return __builtin_clz(__x) - __diff; | |
} | |
else if constexpr (_Nd <= _Nd_ul) | |
{ | |
constexpr int __diff = _Nd_ul - _Nd; | |
return __builtin_clzl(__x) - __diff; | |
} | |
else if constexpr (_Nd <= _Nd_ull) | |
{ | |
constexpr int __diff = _Nd_ull - _Nd; | |
return __builtin_clzll(__x) - __diff; | |
} | |
else | |
{ | |
static_assert(_Nd <= (2 * _Nd_ull), | |
"Maximum supported integer size is 128-bit"); | |
unsigned long long __high = __x >> _Nd_ull; | |
if (__high != 0) | |
{ | |
constexpr int __diff = (2 * _Nd_ull) - _Nd; | |
return __builtin_clzll(__high) - __diff; | |
} | |
constexpr auto __max_ull = __int_traits<unsigned long long>::__max; | |
unsigned long long __low = __x & __max_ull; | |
return (_Nd - _Nd_ull) + __builtin_clzll(__low); | |
} | |
} | |
template<typename _Tp> | |
constexpr int | |
__countl_one(_Tp __x) noexcept | |
{ | |
return std::__countl_zero<_Tp>((_Tp)~__x); | |
} | |
template<typename _Tp> | |
constexpr int | |
__countr_zero(_Tp __x) noexcept | |
{ | |
using __gnu_cxx::__int_traits; | |
constexpr auto _Nd = __int_traits<_Tp>::__digits; | |
if (__x == 0) | |
return _Nd; | |
constexpr auto _Nd_ull = __int_traits<unsigned long long>::__digits; | |
constexpr auto _Nd_ul = __int_traits<unsigned long>::__digits; | |
constexpr auto _Nd_u = __int_traits<unsigned>::__digits; | |
if constexpr (_Nd <= _Nd_u) | |
return __builtin_ctz(__x); | |
else if constexpr (_Nd <= _Nd_ul) | |
return __builtin_ctzl(__x); | |
else if constexpr (_Nd <= _Nd_ull) | |
return __builtin_ctzll(__x); | |
else | |
{ | |
static_assert(_Nd <= (2 * _Nd_ull), | |
"Maximum supported integer size is 128-bit"); | |
constexpr auto __max_ull = __int_traits<unsigned long long>::__max; | |
unsigned long long __low = __x & __max_ull; | |
if (__low != 0) | |
return __builtin_ctzll(__low); | |
unsigned long long __high = __x >> _Nd_ull; | |
return __builtin_ctzll(__high) + _Nd_ull; | |
} | |
} | |
template<typename _Tp> | |
constexpr int | |
__countr_one(_Tp __x) noexcept | |
{ | |
return std::__countr_zero((_Tp)~__x); | |
} | |
template<typename _Tp> | |
constexpr int | |
__popcount(_Tp __x) noexcept | |
{ | |
using __gnu_cxx::__int_traits; | |
constexpr auto _Nd = __int_traits<_Tp>::__digits; | |
constexpr auto _Nd_ull = __int_traits<unsigned long long>::__digits; | |
constexpr auto _Nd_ul = __int_traits<unsigned long>::__digits; | |
constexpr auto _Nd_u = __int_traits<unsigned>::__digits; | |
if constexpr (_Nd <= _Nd_u) | |
return __builtin_popcount(__x); | |
else if constexpr (_Nd <= _Nd_ul) | |
return __builtin_popcountl(__x); | |
else if constexpr (_Nd <= _Nd_ull) | |
return __builtin_popcountll(__x); | |
else | |
{ | |
static_assert(_Nd <= (2 * _Nd_ull), | |
"Maximum supported integer size is 128-bit"); | |
constexpr auto __max_ull = __int_traits<unsigned long long>::__max; | |
unsigned long long __low = __x & __max_ull; | |
unsigned long long __high = __x >> _Nd_ull; | |
return __builtin_popcountll(__low) + __builtin_popcountll(__high); | |
} | |
} | |
template<typename _Tp> | |
constexpr bool | |
__has_single_bit(_Tp __x) noexcept | |
{ return std::__popcount(__x) == 1; } | |
template<typename _Tp> | |
constexpr _Tp | |
__bit_ceil(_Tp __x) noexcept | |
{ | |
using __gnu_cxx::__int_traits; | |
constexpr auto _Nd = __int_traits<_Tp>::__digits; | |
if (__x == 0 || __x == 1) | |
return 1; | |
auto __shift_exponent = _Nd - std::__countl_zero((_Tp)(__x - 1u)); | |
if (!std::__is_constant_evaluated()) | |
{ | |
do { if (std::__is_constant_evaluated()) if (__builtin_expect(!bool(__shift_exponent != __int_traits<_Tp>::__digits), false)) std::__glibcxx_assert_fail(); } while (false); | |
} | |
using __promoted_type = decltype(__x << 1); | |
if constexpr (!is_same<__promoted_type, _Tp>::value) | |
{ | |
const int __extra_exp = sizeof(__promoted_type) / sizeof(_Tp) / 2; | |
__shift_exponent |= (__shift_exponent & _Nd) << __extra_exp; | |
} | |
return (_Tp)1u << __shift_exponent; | |
} | |
template<typename _Tp> | |
constexpr _Tp | |
__bit_floor(_Tp __x) noexcept | |
{ | |
constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; | |
if (__x == 0) | |
return 0; | |
return (_Tp)1u << (_Nd - std::__countl_zero((_Tp)(__x >> 1))); | |
} | |
template<typename _Tp> | |
constexpr int | |
__bit_width(_Tp __x) noexcept | |
{ | |
constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; | |
return _Nd - std::__countl_zero(__x); | |
} | |
# 482 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bit" 3 | |
} | |
# 77 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 2 3 | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
template<typename _Tp, typename _Up> | |
constexpr | |
inline int | |
__memcmp(const _Tp* __first1, const _Up* __first2, size_t __num) | |
{ | |
static_assert(sizeof(_Tp) == sizeof(_Up), "can be compared with memcmp"); | |
# 108 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 3 | |
return __builtin_memcmp(__first1, __first2, sizeof(_Tp) * __num); | |
} | |
# 152 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 3 | |
template<typename _ForwardIterator1, typename _ForwardIterator2> | |
inline void | |
iter_swap(_ForwardIterator1 __a, _ForwardIterator2 __b) | |
{ | |
# 185 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 3 | |
swap(*__a, *__b); | |
} | |
# 201 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 3 | |
template<typename _ForwardIterator1, typename _ForwardIterator2> | |
_ForwardIterator2 | |
swap_ranges(_ForwardIterator1 __first1, _ForwardIterator1 __last1, | |
_ForwardIterator2 __first2) | |
{ | |
; | |
for (; __first1 != __last1; ++__first1, (void)++__first2) | |
std::iter_swap(__first1, __first2); | |
return __first2; | |
} | |
# 230 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 3 | |
template<typename _Tp> | |
[[__nodiscard__]] constexpr | |
inline const _Tp& | |
min(const _Tp& __a, const _Tp& __b) | |
{ | |
if (__b < __a) | |
return __b; | |
return __a; | |
} | |
# 254 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 3 | |
template<typename _Tp> | |
[[__nodiscard__]] constexpr | |
inline const _Tp& | |
max(const _Tp& __a, const _Tp& __b) | |
{ | |
if (__a < __b) | |
return __b; | |
return __a; | |
} | |
# 278 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 3 | |
template<typename _Tp, typename _Compare> | |
[[__nodiscard__]] constexpr | |
inline const _Tp& | |
min(const _Tp& __a, const _Tp& __b, _Compare __comp) | |
{ | |
if (__comp(__b, __a)) | |
return __b; | |
return __a; | |
} | |
# 300 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 3 | |
template<typename _Tp, typename _Compare> | |
[[__nodiscard__]] constexpr | |
inline const _Tp& | |
max(const _Tp& __a, const _Tp& __b, _Compare __comp) | |
{ | |
if (__comp(__a, __b)) | |
return __b; | |
return __a; | |
} | |
template<typename _Iterator> | |
inline _Iterator | |
__niter_base(_Iterator __it) | |
noexcept(std::is_nothrow_copy_constructible<_Iterator>::value) | |
{ return __it; } | |
# 332 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 3 | |
template<typename _Ite, typename _Seq> | |
decltype(std::__niter_base(std::declval<_Ite>())) | |
__niter_base(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, | |
std::random_access_iterator_tag>&) | |
noexcept(std::is_nothrow_copy_constructible<_Ite>::value); | |
template<typename _From, typename _To> | |
inline _From | |
__niter_wrap(_From __from, _To __res) | |
{ return __from + (std::__niter_base(__res) - std::__niter_base(__from)); } | |
template<typename _Iterator> | |
inline _Iterator | |
__niter_wrap(const _Iterator&, _Iterator __res) | |
{ return __res; } | |
template<bool _IsMove, bool _IsSimple, typename _Category> | |
struct __copy_move | |
{ | |
template<typename _II, typename _OI> | |
static _OI | |
__copy_m(_II __first, _II __last, _OI __result) | |
{ | |
for (; __first != __last; ++__result, (void)++__first) | |
*__result = *__first; | |
return __result; | |
} | |
}; | |
template<typename _Category> | |
struct __copy_move<true, false, _Category> | |
{ | |
template<typename _II, typename _OI> | |
static _OI | |
__copy_m(_II __first, _II __last, _OI __result) | |
{ | |
for (; __first != __last; ++__result, (void)++__first) | |
*__result = std::move(*__first); | |
return __result; | |
} | |
}; | |
template<> | |
struct __copy_move<false, false, random_access_iterator_tag> | |
{ | |
template<typename _II, typename _OI> | |
static _OI | |
__copy_m(_II __first, _II __last, _OI __result) | |
{ | |
typedef typename iterator_traits<_II>::difference_type _Distance; | |
for(_Distance __n = __last - __first; __n > 0; --__n) | |
{ | |
*__result = *__first; | |
++__first; | |
++__result; | |
} | |
return __result; | |
} | |
template<typename _Tp, typename _Up> | |
static void | |
__assign_one(_Tp* __to, _Up* __from) | |
{ *__to = *__from; } | |
}; | |
template<> | |
struct __copy_move<true, false, random_access_iterator_tag> | |
{ | |
template<typename _II, typename _OI> | |
static _OI | |
__copy_m(_II __first, _II __last, _OI __result) | |
{ | |
typedef typename iterator_traits<_II>::difference_type _Distance; | |
for(_Distance __n = __last - __first; __n > 0; --__n) | |
{ | |
*__result = std::move(*__first); | |
++__first; | |
++__result; | |
} | |
return __result; | |
} | |
template<typename _Tp, typename _Up> | |
static void | |
__assign_one(_Tp* __to, _Up* __from) | |
{ *__to = std::move(*__from); } | |
}; | |
template<bool _IsMove> | |
struct __copy_move<_IsMove, true, random_access_iterator_tag> | |
{ | |
template<typename _Tp, typename _Up> | |
static _Up* | |
__copy_m(_Tp* __first, _Tp* __last, _Up* __result) | |
{ | |
const ptrdiff_t _Num = __last - __first; | |
if (__builtin_expect(_Num > 1, true)) | |
__builtin_memmove(__result, __first, sizeof(_Tp) * _Num); | |
else if (_Num == 1) | |
std::__copy_move<_IsMove, false, random_access_iterator_tag>:: | |
__assign_one(__result, __first); | |
return __result + _Num; | |
} | |
}; | |
template<typename _Tp, typename _Ref, typename _Ptr> | |
struct _Deque_iterator; | |
struct _Bit_iterator; | |
template<typename _CharT> | |
struct char_traits; | |
template<typename _CharT, typename _Traits> | |
class istreambuf_iterator; | |
template<typename _CharT, typename _Traits> | |
class ostreambuf_iterator; | |
template<bool _IsMove, typename _CharT> | |
typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, | |
ostreambuf_iterator<_CharT, char_traits<_CharT> > >::__type | |
__copy_move_a2(_CharT*, _CharT*, | |
ostreambuf_iterator<_CharT, char_traits<_CharT> >); | |
template<bool _IsMove, typename _CharT> | |
typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, | |
ostreambuf_iterator<_CharT, char_traits<_CharT> > >::__type | |
__copy_move_a2(const _CharT*, const _CharT*, | |
ostreambuf_iterator<_CharT, char_traits<_CharT> >); | |
template<bool _IsMove, typename _CharT> | |
typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, | |
_CharT*>::__type | |
__copy_move_a2(istreambuf_iterator<_CharT, char_traits<_CharT> >, | |
istreambuf_iterator<_CharT, char_traits<_CharT> >, _CharT*); | |
template<bool _IsMove, typename _CharT> | |
typename __gnu_cxx::__enable_if< | |
__is_char<_CharT>::__value, | |
std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type | |
__copy_move_a2( | |
istreambuf_iterator<_CharT, char_traits<_CharT> >, | |
istreambuf_iterator<_CharT, char_traits<_CharT> >, | |
std::_Deque_iterator<_CharT, _CharT&, _CharT*>); | |
template<bool _IsMove, typename _II, typename _OI> | |
inline _OI | |
__copy_move_a2(_II __first, _II __last, _OI __result) | |
{ | |
typedef typename iterator_traits<_II>::iterator_category _Category; | |
return std::__copy_move<_IsMove, __memcpyable<_OI, _II>::__value, | |
_Category>::__copy_m(__first, __last, __result); | |
} | |
template<bool _IsMove, | |
typename _Tp, typename _Ref, typename _Ptr, typename _OI> | |
_OI | |
__copy_move_a1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, | |
std::_Deque_iterator<_Tp, _Ref, _Ptr>, | |
_OI); | |
template<bool _IsMove, | |
typename _ITp, typename _IRef, typename _IPtr, typename _OTp> | |
std::_Deque_iterator<_OTp, _OTp&, _OTp*> | |
__copy_move_a1(std::_Deque_iterator<_ITp, _IRef, _IPtr>, | |
std::_Deque_iterator<_ITp, _IRef, _IPtr>, | |
std::_Deque_iterator<_OTp, _OTp&, _OTp*>); | |
template<bool _IsMove, typename _II, typename _Tp> | |
typename __gnu_cxx::__enable_if< | |
__is_random_access_iter<_II>::__value, | |
std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type | |
__copy_move_a1(_II, _II, std::_Deque_iterator<_Tp, _Tp&, _Tp*>); | |
template<bool _IsMove, typename _II, typename _OI> | |
inline _OI | |
__copy_move_a1(_II __first, _II __last, _OI __result) | |
{ return std::__copy_move_a2<_IsMove>(__first, __last, __result); } | |
template<bool _IsMove, typename _II, typename _OI> | |
inline _OI | |
__copy_move_a(_II __first, _II __last, _OI __result) | |
{ | |
return std::__niter_wrap(__result, | |
std::__copy_move_a1<_IsMove>(std::__niter_base(__first), | |
std::__niter_base(__last), | |
std::__niter_base(__result))); | |
} | |
template<bool _IsMove, | |
typename _Ite, typename _Seq, typename _Cat, typename _OI> | |
_OI | |
__copy_move_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, | |
const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, | |
_OI); | |
template<bool _IsMove, | |
typename _II, typename _Ite, typename _Seq, typename _Cat> | |
__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> | |
__copy_move_a(_II, _II, | |
const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&); | |
template<bool _IsMove, | |
typename _IIte, typename _ISeq, typename _ICat, | |
typename _OIte, typename _OSeq, typename _OCat> | |
::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat> | |
__copy_move_a(const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, | |
const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, | |
const ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat>&); | |
template<typename _InputIterator, typename _Size, typename _OutputIterator> | |
_OutputIterator | |
__copy_n_a(_InputIterator __first, _Size __n, _OutputIterator __result, | |
bool) | |
{ | |
if (__n > 0) | |
{ | |
while (true) | |
{ | |
*__result = *__first; | |
++__result; | |
if (--__n > 0) | |
++__first; | |
else | |
break; | |
} | |
} | |
return __result; | |
} | |
template<typename _CharT, typename _Size> | |
typename __gnu_cxx::__enable_if< | |
__is_char<_CharT>::__value, _CharT*>::__type | |
__copy_n_a(istreambuf_iterator<_CharT, char_traits<_CharT> >, | |
_Size, _CharT*, bool); | |
template<typename _CharT, typename _Size> | |
typename __gnu_cxx::__enable_if< | |
__is_char<_CharT>::__value, | |
std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type | |
__copy_n_a(istreambuf_iterator<_CharT, char_traits<_CharT> >, _Size, | |
std::_Deque_iterator<_CharT, _CharT&, _CharT*>, | |
bool); | |
# 639 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 3 | |
template<typename _II, typename _OI> | |
inline _OI | |
copy(_II __first, _II __last, _OI __result) | |
{ | |
; | |
return std::__copy_move_a<__is_move_iterator<_II>::__value> | |
(std::__miter_base(__first), std::__miter_base(__last), __result); | |
} | |
# 672 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 3 | |
template<typename _II, typename _OI> | |
inline _OI | |
move(_II __first, _II __last, _OI __result) | |
{ | |
; | |
return std::__copy_move_a<true>(std::__miter_base(__first), | |
std::__miter_base(__last), __result); | |
} | |
template<bool _IsMove, bool _IsSimple, typename _Category> | |
struct __copy_move_backward | |
{ | |
template<typename _BI1, typename _BI2> | |
static _BI2 | |
__copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) | |
{ | |
while (__first != __last) | |
*--__result = *--__last; | |
return __result; | |
} | |
}; | |
template<typename _Category> | |
struct __copy_move_backward<true, false, _Category> | |
{ | |
template<typename _BI1, typename _BI2> | |
static _BI2 | |
__copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) | |
{ | |
while (__first != __last) | |
*--__result = std::move(*--__last); | |
return __result; | |
} | |
}; | |
template<> | |
struct __copy_move_backward<false, false, random_access_iterator_tag> | |
{ | |
template<typename _BI1, typename _BI2> | |
static _BI2 | |
__copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) | |
{ | |
typename iterator_traits<_BI1>::difference_type | |
__n = __last - __first; | |
for (; __n > 0; --__n) | |
*--__result = *--__last; | |
return __result; | |
} | |
}; | |
template<> | |
struct __copy_move_backward<true, false, random_access_iterator_tag> | |
{ | |
template<typename _BI1, typename _BI2> | |
static _BI2 | |
__copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) | |
{ | |
typename iterator_traits<_BI1>::difference_type | |
__n = __last - __first; | |
for (; __n > 0; --__n) | |
*--__result = std::move(*--__last); | |
return __result; | |
} | |
}; | |
template<bool _IsMove> | |
struct __copy_move_backward<_IsMove, true, random_access_iterator_tag> | |
{ | |
template<typename _Tp, typename _Up> | |
static _Up* | |
__copy_move_b(_Tp* __first, _Tp* __last, _Up* __result) | |
{ | |
const ptrdiff_t _Num = __last - __first; | |
if (__builtin_expect(_Num > 1, true)) | |
__builtin_memmove(__result - _Num, __first, sizeof(_Tp) * _Num); | |
else if (_Num == 1) | |
std::__copy_move<_IsMove, false, random_access_iterator_tag>:: | |
__assign_one(__result - 1, __first); | |
return __result - _Num; | |
} | |
}; | |
template<bool _IsMove, typename _BI1, typename _BI2> | |
inline _BI2 | |
__copy_move_backward_a2(_BI1 __first, _BI1 __last, _BI2 __result) | |
{ | |
typedef typename iterator_traits<_BI1>::iterator_category _Category; | |
return std::__copy_move_backward<_IsMove, | |
__memcpyable<_BI2, _BI1>::__value, | |
_Category>::__copy_move_b(__first, | |
__last, | |
__result); | |
} | |
template<bool _IsMove, typename _BI1, typename _BI2> | |
inline _BI2 | |
__copy_move_backward_a1(_BI1 __first, _BI1 __last, _BI2 __result) | |
{ return std::__copy_move_backward_a2<_IsMove>(__first, __last, __result); } | |
template<bool _IsMove, | |
typename _Tp, typename _Ref, typename _Ptr, typename _OI> | |
_OI | |
__copy_move_backward_a1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, | |
std::_Deque_iterator<_Tp, _Ref, _Ptr>, | |
_OI); | |
template<bool _IsMove, | |
typename _ITp, typename _IRef, typename _IPtr, typename _OTp> | |
std::_Deque_iterator<_OTp, _OTp&, _OTp*> | |
__copy_move_backward_a1( | |
std::_Deque_iterator<_ITp, _IRef, _IPtr>, | |
std::_Deque_iterator<_ITp, _IRef, _IPtr>, | |
std::_Deque_iterator<_OTp, _OTp&, _OTp*>); | |
template<bool _IsMove, typename _II, typename _Tp> | |
typename __gnu_cxx::__enable_if< | |
__is_random_access_iter<_II>::__value, | |
std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type | |
__copy_move_backward_a1(_II, _II, | |
std::_Deque_iterator<_Tp, _Tp&, _Tp*>); | |
template<bool _IsMove, typename _II, typename _OI> | |
inline _OI | |
__copy_move_backward_a(_II __first, _II __last, _OI __result) | |
{ | |
return std::__niter_wrap(__result, | |
std::__copy_move_backward_a1<_IsMove> | |
(std::__niter_base(__first), std::__niter_base(__last), | |
std::__niter_base(__result))); | |
} | |
template<bool _IsMove, | |
typename _Ite, typename _Seq, typename _Cat, typename _OI> | |
_OI | |
__copy_move_backward_a( | |
const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, | |
const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, | |
_OI); | |
template<bool _IsMove, | |
typename _II, typename _Ite, typename _Seq, typename _Cat> | |
__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> | |
__copy_move_backward_a(_II, _II, | |
const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&); | |
template<bool _IsMove, | |
typename _IIte, typename _ISeq, typename _ICat, | |
typename _OIte, typename _OSeq, typename _OCat> | |
::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat> | |
__copy_move_backward_a( | |
const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, | |
const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, | |
const ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat>&); | |
# 875 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 3 | |
template<typename _BI1, typename _BI2> | |
inline _BI2 | |
copy_backward(_BI1 __first, _BI1 __last, _BI2 __result) | |
{ | |
; | |
return std::__copy_move_backward_a<__is_move_iterator<_BI1>::__value> | |
(std::__miter_base(__first), std::__miter_base(__last), __result); | |
} | |
# 910 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 3 | |
template<typename _BI1, typename _BI2> | |
inline _BI2 | |
move_backward(_BI1 __first, _BI1 __last, _BI2 __result) | |
{ | |
; | |
return std::__copy_move_backward_a<true>(std::__miter_base(__first), | |
std::__miter_base(__last), | |
__result); | |
} | |
template<typename _ForwardIterator, typename _Tp> | |
inline typename | |
__gnu_cxx::__enable_if<!__is_scalar<_Tp>::__value, void>::__type | |
__fill_a1(_ForwardIterator __first, _ForwardIterator __last, | |
const _Tp& __value) | |
{ | |
for (; __first != __last; ++__first) | |
*__first = __value; | |
} | |
template<typename _ForwardIterator, typename _Tp> | |
inline typename | |
__gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, void>::__type | |
__fill_a1(_ForwardIterator __first, _ForwardIterator __last, | |
const _Tp& __value) | |
{ | |
const _Tp __tmp = __value; | |
for (; __first != __last; ++__first) | |
*__first = __tmp; | |
} | |
template<typename _Tp> | |
inline typename | |
__gnu_cxx::__enable_if<__is_byte<_Tp>::__value, void>::__type | |
__fill_a1(_Tp* __first, _Tp* __last, const _Tp& __c) | |
{ | |
const _Tp __tmp = __c; | |
# 971 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 3 | |
if (const size_t __len = __last - __first) | |
__builtin_memset(__first, static_cast<unsigned char>(__tmp), __len); | |
} | |
template<typename _Ite, typename _Cont, typename _Tp> | |
inline void | |
__fill_a1(::__gnu_cxx::__normal_iterator<_Ite, _Cont> __first, | |
::__gnu_cxx::__normal_iterator<_Ite, _Cont> __last, | |
const _Tp& __value) | |
{ std::__fill_a1(__first.base(), __last.base(), __value); } | |
template<typename _Tp, typename _VTp> | |
void | |
__fill_a1(const std::_Deque_iterator<_Tp, _Tp&, _Tp*>&, | |
const std::_Deque_iterator<_Tp, _Tp&, _Tp*>&, | |
const _VTp&); | |
void | |
__fill_a1(std::_Bit_iterator, std::_Bit_iterator, | |
const bool&); | |
template<typename _FIte, typename _Tp> | |
inline void | |
__fill_a(_FIte __first, _FIte __last, const _Tp& __value) | |
{ std::__fill_a1(__first, __last, __value); } | |
template<typename _Ite, typename _Seq, typename _Cat, typename _Tp> | |
void | |
__fill_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, | |
const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, | |
const _Tp&); | |
# 1019 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 3 | |
template<typename _ForwardIterator, typename _Tp> | |
inline void | |
fill(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value) | |
{ | |
; | |
std::__fill_a(__first, __last, __value); | |
} | |
inline constexpr int | |
__size_to_integer(int __n) { return __n; } | |
inline constexpr unsigned | |
__size_to_integer(unsigned __n) { return __n; } | |
inline constexpr long | |
__size_to_integer(long __n) { return __n; } | |
inline constexpr unsigned long | |
__size_to_integer(unsigned long __n) { return __n; } | |
inline constexpr long long | |
__size_to_integer(long long __n) { return __n; } | |
inline constexpr unsigned long long | |
__size_to_integer(unsigned long long __n) { return __n; } | |
# 1071 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 3 | |
inline constexpr long long | |
__size_to_integer(float __n) { return (long long)__n; } | |
inline constexpr long long | |
__size_to_integer(double __n) { return (long long)__n; } | |
inline constexpr long long | |
__size_to_integer(long double __n) { return (long long)__n; } | |
template<typename _OutputIterator, typename _Size, typename _Tp> | |
inline typename | |
__gnu_cxx::__enable_if<!__is_scalar<_Tp>::__value, _OutputIterator>::__type | |
__fill_n_a1(_OutputIterator __first, _Size __n, const _Tp& __value) | |
{ | |
for (; __n > 0; --__n, (void) ++__first) | |
*__first = __value; | |
return __first; | |
} | |
template<typename _OutputIterator, typename _Size, typename _Tp> | |
inline typename | |
__gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, _OutputIterator>::__type | |
__fill_n_a1(_OutputIterator __first, _Size __n, const _Tp& __value) | |
{ | |
const _Tp __tmp = __value; | |
for (; __n > 0; --__n, (void) ++__first) | |
*__first = __tmp; | |
return __first; | |
} | |
template<typename _Ite, typename _Seq, typename _Cat, typename _Size, | |
typename _Tp> | |
::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> | |
__fill_n_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>& __first, | |
_Size __n, const _Tp& __value, | |
std::input_iterator_tag); | |
template<typename _OutputIterator, typename _Size, typename _Tp> | |
inline _OutputIterator | |
__fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, | |
std::output_iterator_tag) | |
{ | |
static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); | |
return __fill_n_a1(__first, __n, __value); | |
} | |
template<typename _OutputIterator, typename _Size, typename _Tp> | |
inline _OutputIterator | |
__fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, | |
std::input_iterator_tag) | |
{ | |
static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); | |
return __fill_n_a1(__first, __n, __value); | |
} | |
template<typename _OutputIterator, typename _Size, typename _Tp> | |
inline _OutputIterator | |
__fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, | |
std::random_access_iterator_tag) | |
{ | |
static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); | |
if (__n <= 0) | |
return __first; | |
; | |
std::__fill_a(__first, __first + __n, __value); | |
return __first + __n; | |
} | |
# 1172 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 3 | |
template<typename _OI, typename _Size, typename _Tp> | |
inline _OI | |
fill_n(_OI __first, _Size __n, const _Tp& __value) | |
{ | |
return std::__fill_n_a(__first, std::__size_to_integer(__n), __value, | |
std::__iterator_category(__first)); | |
} | |
template<bool _BoolType> | |
struct __equal | |
{ | |
template<typename _II1, typename _II2> | |
static bool | |
equal(_II1 __first1, _II1 __last1, _II2 __first2) | |
{ | |
for (; __first1 != __last1; ++__first1, (void) ++__first2) | |
if (!(*__first1 == *__first2)) | |
return false; | |
return true; | |
} | |
}; | |
template<> | |
struct __equal<true> | |
{ | |
template<typename _Tp> | |
static bool | |
equal(const _Tp* __first1, const _Tp* __last1, const _Tp* __first2) | |
{ | |
if (const size_t __len = (__last1 - __first1)) | |
return !std::__memcmp(__first1, __first2, __len); | |
return true; | |
} | |
}; | |
template<typename _Tp, typename _Ref, typename _Ptr, typename _II> | |
typename __gnu_cxx::__enable_if< | |
__is_random_access_iter<_II>::__value, bool>::__type | |
__equal_aux1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, | |
std::_Deque_iterator<_Tp, _Ref, _Ptr>, | |
_II); | |
template<typename _Tp1, typename _Ref1, typename _Ptr1, | |
typename _Tp2, typename _Ref2, typename _Ptr2> | |
bool | |
__equal_aux1(std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, | |
std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, | |
std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); | |
template<typename _II, typename _Tp, typename _Ref, typename _Ptr> | |
typename __gnu_cxx::__enable_if< | |
__is_random_access_iter<_II>::__value, bool>::__type | |
__equal_aux1(_II, _II, | |
std::_Deque_iterator<_Tp, _Ref, _Ptr>); | |
template<typename _II1, typename _II2> | |
inline bool | |
__equal_aux1(_II1 __first1, _II1 __last1, _II2 __first2) | |
{ | |
typedef typename iterator_traits<_II1>::value_type _ValueType1; | |
const bool __simple = ((__is_integer<_ValueType1>::__value | |
|| __is_pointer<_ValueType1>::__value) | |
&& __memcmpable<_II1, _II2>::__value); | |
return std::__equal<__simple>::equal(__first1, __last1, __first2); | |
} | |
template<typename _II1, typename _II2> | |
inline bool | |
__equal_aux(_II1 __first1, _II1 __last1, _II2 __first2) | |
{ | |
return std::__equal_aux1(std::__niter_base(__first1), | |
std::__niter_base(__last1), | |
std::__niter_base(__first2)); | |
} | |
template<typename _II1, typename _Seq1, typename _Cat1, typename _II2> | |
bool | |
__equal_aux(const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, | |
const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, | |
_II2); | |
template<typename _II1, typename _II2, typename _Seq2, typename _Cat2> | |
bool | |
__equal_aux(_II1, _II1, | |
const ::__gnu_debug::_Safe_iterator<_II2, _Seq2, _Cat2>&); | |
template<typename _II1, typename _Seq1, typename _Cat1, | |
typename _II2, typename _Seq2, typename _Cat2> | |
bool | |
__equal_aux(const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, | |
const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, | |
const ::__gnu_debug::_Safe_iterator<_II2, _Seq2, _Cat2>&); | |
template<typename, typename> | |
struct __lc_rai | |
{ | |
template<typename _II1, typename _II2> | |
static _II1 | |
__newlast1(_II1, _II1 __last1, _II2, _II2) | |
{ return __last1; } | |
template<typename _II> | |
static bool | |
__cnd2(_II __first, _II __last) | |
{ return __first != __last; } | |
}; | |
template<> | |
struct __lc_rai<random_access_iterator_tag, random_access_iterator_tag> | |
{ | |
template<typename _RAI1, typename _RAI2> | |
static _RAI1 | |
__newlast1(_RAI1 __first1, _RAI1 __last1, | |
_RAI2 __first2, _RAI2 __last2) | |
{ | |
const typename iterator_traits<_RAI1>::difference_type | |
__diff1 = __last1 - __first1; | |
const typename iterator_traits<_RAI2>::difference_type | |
__diff2 = __last2 - __first2; | |
return __diff2 < __diff1 ? __first1 + __diff2 : __last1; | |
} | |
template<typename _RAI> | |
static bool | |
__cnd2(_RAI, _RAI) | |
{ return true; } | |
}; | |
template<typename _II1, typename _II2, typename _Compare> | |
bool | |
__lexicographical_compare_impl(_II1 __first1, _II1 __last1, | |
_II2 __first2, _II2 __last2, | |
_Compare __comp) | |
{ | |
typedef typename iterator_traits<_II1>::iterator_category _Category1; | |
typedef typename iterator_traits<_II2>::iterator_category _Category2; | |
typedef std::__lc_rai<_Category1, _Category2> __rai_type; | |
__last1 = __rai_type::__newlast1(__first1, __last1, __first2, __last2); | |
for (; __first1 != __last1 && __rai_type::__cnd2(__first2, __last2); | |
++__first1, (void)++__first2) | |
{ | |
if (__comp(__first1, __first2)) | |
return true; | |
if (__comp(__first2, __first1)) | |
return false; | |
} | |
return __first1 == __last1 && __first2 != __last2; | |
} | |
template<bool _BoolType> | |
struct __lexicographical_compare | |
{ | |
template<typename _II1, typename _II2> | |
static bool | |
__lc(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) | |
{ | |
using __gnu_cxx::__ops::__iter_less_iter; | |
return std::__lexicographical_compare_impl(__first1, __last1, | |
__first2, __last2, | |
__iter_less_iter()); | |
} | |
template<typename _II1, typename _II2> | |
static int | |
__3way(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) | |
{ | |
while (__first1 != __last1) | |
{ | |
if (__first2 == __last2) | |
return +1; | |
if (*__first1 < *__first2) | |
return -1; | |
if (*__first2 < *__first1) | |
return +1; | |
++__first1; | |
++__first2; | |
} | |
return int(__first2 == __last2) - 1; | |
} | |
}; | |
template<> | |
struct __lexicographical_compare<true> | |
{ | |
template<typename _Tp, typename _Up> | |
static bool | |
__lc(const _Tp* __first1, const _Tp* __last1, | |
const _Up* __first2, const _Up* __last2) | |
{ return __3way(__first1, __last1, __first2, __last2) < 0; } | |
template<typename _Tp, typename _Up> | |
static ptrdiff_t | |
__3way(const _Tp* __first1, const _Tp* __last1, | |
const _Up* __first2, const _Up* __last2) | |
{ | |
const size_t __len1 = __last1 - __first1; | |
const size_t __len2 = __last2 - __first2; | |
if (const size_t __len = std::min(__len1, __len2)) | |
if (int __result = std::__memcmp(__first1, __first2, __len)) | |
return __result; | |
return ptrdiff_t(__len1 - __len2); | |
} | |
}; | |
template<typename _II1, typename _II2> | |
inline bool | |
__lexicographical_compare_aux1(_II1 __first1, _II1 __last1, | |
_II2 __first2, _II2 __last2) | |
{ | |
typedef typename iterator_traits<_II1>::value_type _ValueType1; | |
typedef typename iterator_traits<_II2>::value_type _ValueType2; | |
const bool __simple = | |
(__is_memcmp_ordered_with<_ValueType1, _ValueType2>::__value | |
&& __is_pointer<_II1>::__value | |
&& __is_pointer<_II2>::__value | |
); | |
return std::__lexicographical_compare<__simple>::__lc(__first1, __last1, | |
__first2, __last2); | |
} | |
template<typename _Tp1, typename _Ref1, typename _Ptr1, | |
typename _Tp2> | |
bool | |
__lexicographical_compare_aux1( | |
std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, | |
std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, | |
_Tp2*, _Tp2*); | |
template<typename _Tp1, | |
typename _Tp2, typename _Ref2, typename _Ptr2> | |
bool | |
__lexicographical_compare_aux1(_Tp1*, _Tp1*, | |
std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>, | |
std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); | |
template<typename _Tp1, typename _Ref1, typename _Ptr1, | |
typename _Tp2, typename _Ref2, typename _Ptr2> | |
bool | |
__lexicographical_compare_aux1( | |
std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, | |
std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, | |
std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>, | |
std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); | |
template<typename _II1, typename _II2> | |
inline bool | |
__lexicographical_compare_aux(_II1 __first1, _II1 __last1, | |
_II2 __first2, _II2 __last2) | |
{ | |
return std::__lexicographical_compare_aux1(std::__niter_base(__first1), | |
std::__niter_base(__last1), | |
std::__niter_base(__first2), | |
std::__niter_base(__last2)); | |
} | |
template<typename _Iter1, typename _Seq1, typename _Cat1, | |
typename _II2> | |
bool | |
__lexicographical_compare_aux( | |
const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, | |
const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, | |
_II2, _II2); | |
template<typename _II1, | |
typename _Iter2, typename _Seq2, typename _Cat2> | |
bool | |
__lexicographical_compare_aux( | |
_II1, _II1, | |
const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&, | |
const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&); | |
template<typename _Iter1, typename _Seq1, typename _Cat1, | |
typename _Iter2, typename _Seq2, typename _Cat2> | |
bool | |
__lexicographical_compare_aux( | |
const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, | |
const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, | |
const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&, | |
const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&); | |
template<typename _ForwardIterator, typename _Tp, typename _Compare> | |
_ForwardIterator | |
__lower_bound(_ForwardIterator __first, _ForwardIterator __last, | |
const _Tp& __val, _Compare __comp) | |
{ | |
typedef typename iterator_traits<_ForwardIterator>::difference_type | |
_DistanceType; | |
_DistanceType __len = std::distance(__first, __last); | |
while (__len > 0) | |
{ | |
_DistanceType __half = __len >> 1; | |
_ForwardIterator __middle = __first; | |
std::advance(__middle, __half); | |
if (__comp(__middle, __val)) | |
{ | |
__first = __middle; | |
++__first; | |
__len = __len - __half - 1; | |
} | |
else | |
__len = __half; | |
} | |
return __first; | |
} | |
# 1524 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 3 | |
template<typename _ForwardIterator, typename _Tp> | |
[[__nodiscard__]] | |
inline _ForwardIterator | |
lower_bound(_ForwardIterator __first, _ForwardIterator __last, | |
const _Tp& __val) | |
{ | |
; | |
return std::__lower_bound(__first, __last, __val, | |
__gnu_cxx::__ops::__iter_less_val()); | |
} | |
template<typename _Tp> | |
inline constexpr _Tp | |
__lg(_Tp __n) | |
{ | |
return std::__bit_width(make_unsigned_t<_Tp>(__n)) - 1; | |
# 1557 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 3 | |
} | |
# 1573 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 3 | |
template<typename _II1, typename _II2> | |
[[__nodiscard__]] | |
inline bool | |
equal(_II1 __first1, _II1 __last1, _II2 __first2) | |
{ | |
; | |
return std::__equal_aux(__first1, __last1, __first2); | |
} | |
# 1604 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 3 | |
template<typename _IIter1, typename _IIter2, typename _BinaryPredicate> | |
[[__nodiscard__]] | |
inline bool | |
equal(_IIter1 __first1, _IIter1 __last1, | |
_IIter2 __first2, _BinaryPredicate __binary_pred) | |
{ | |
; | |
for (; __first1 != __last1; ++__first1, (void)++__first2) | |
if (!bool(__binary_pred(*__first1, *__first2))) | |
return false; | |
return true; | |
} | |
template<typename _II1, typename _II2> | |
inline bool | |
__equal4(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) | |
{ | |
using _RATag = random_access_iterator_tag; | |
using _Cat1 = typename iterator_traits<_II1>::iterator_category; | |
using _Cat2 = typename iterator_traits<_II2>::iterator_category; | |
using _RAIters = __and_<is_same<_Cat1, _RATag>, is_same<_Cat2, _RATag>>; | |
if (_RAIters()) | |
{ | |
auto __d1 = std::distance(__first1, __last1); | |
auto __d2 = std::distance(__first2, __last2); | |
if (__d1 != __d2) | |
return false; | |
return std::equal(__first1, __last1, __first2); | |
} | |
for (; __first1 != __last1 && __first2 != __last2; | |
++__first1, (void)++__first2) | |
if (!(*__first1 == *__first2)) | |
return false; | |
return __first1 == __last1 && __first2 == __last2; | |
} | |
template<typename _II1, typename _II2, typename _BinaryPredicate> | |
inline bool | |
__equal4(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2, | |
_BinaryPredicate __binary_pred) | |
{ | |
using _RATag = random_access_iterator_tag; | |
using _Cat1 = typename iterator_traits<_II1>::iterator_category; | |
using _Cat2 = typename iterator_traits<_II2>::iterator_category; | |
using _RAIters = __and_<is_same<_Cat1, _RATag>, is_same<_Cat2, _RATag>>; | |
if (_RAIters()) | |
{ | |
auto __d1 = std::distance(__first1, __last1); | |
auto __d2 = std::distance(__first2, __last2); | |
if (__d1 != __d2) | |
return false; | |
return std::equal(__first1, __last1, __first2, | |
__binary_pred); | |
} | |
for (; __first1 != __last1 && __first2 != __last2; | |
++__first1, (void)++__first2) | |
if (!bool(__binary_pred(*__first1, *__first2))) | |
return false; | |
return __first1 == __last1 && __first2 == __last2; | |
} | |
# 1691 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 3 | |
template<typename _II1, typename _II2> | |
[[__nodiscard__]] | |
inline bool | |
equal(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) | |
{ | |
; | |
; | |
return std::__equal4(__first1, __last1, __first2, __last2); | |
} | |
# 1724 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 3 | |
template<typename _IIter1, typename _IIter2, typename _BinaryPredicate> | |
[[__nodiscard__]] | |
inline bool | |
equal(_IIter1 __first1, _IIter1 __last1, | |
_IIter2 __first2, _IIter2 __last2, _BinaryPredicate __binary_pred) | |
{ | |
; | |
; | |
return std::__equal4(__first1, __last1, __first2, __last2, | |
__binary_pred); | |
} | |
# 1756 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 3 | |
template<typename _II1, typename _II2> | |
[[__nodiscard__]] | |
inline bool | |
lexicographical_compare(_II1 __first1, _II1 __last1, | |
_II2 __first2, _II2 __last2) | |
{ | |
; | |
; | |
return std::__lexicographical_compare_aux(__first1, __last1, | |
__first2, __last2); | |
} | |
# 1791 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 3 | |
template<typename _II1, typename _II2, typename _Compare> | |
[[__nodiscard__]] | |
inline bool | |
lexicographical_compare(_II1 __first1, _II1 __last1, | |
_II2 __first2, _II2 __last2, _Compare __comp) | |
{ | |
; | |
; | |
return std::__lexicographical_compare_impl | |
(__first1, __last1, __first2, __last2, | |
__gnu_cxx::__ops::__iter_comp_iter(__comp)); | |
} | |
# 1906 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 3 | |
template<typename _InputIterator1, typename _InputIterator2, | |
typename _BinaryPredicate> | |
pair<_InputIterator1, _InputIterator2> | |
__mismatch(_InputIterator1 __first1, _InputIterator1 __last1, | |
_InputIterator2 __first2, _BinaryPredicate __binary_pred) | |
{ | |
while (__first1 != __last1 && __binary_pred(__first1, __first2)) | |
{ | |
++__first1; | |
++__first2; | |
} | |
return pair<_InputIterator1, _InputIterator2>(__first1, __first2); | |
} | |
# 1934 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 3 | |
template<typename _InputIterator1, typename _InputIterator2> | |
[[__nodiscard__]] | |
inline pair<_InputIterator1, _InputIterator2> | |
mismatch(_InputIterator1 __first1, _InputIterator1 __last1, | |
_InputIterator2 __first2) | |
{ | |
; | |
return std::__mismatch(__first1, __last1, __first2, | |
__gnu_cxx::__ops::__iter_equal_to_iter()); | |
} | |
# 1968 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 3 | |
template<typename _InputIterator1, typename _InputIterator2, | |
typename _BinaryPredicate> | |
[[__nodiscard__]] | |
inline pair<_InputIterator1, _InputIterator2> | |
mismatch(_InputIterator1 __first1, _InputIterator1 __last1, | |
_InputIterator2 __first2, _BinaryPredicate __binary_pred) | |
{ | |
; | |
return std::__mismatch(__first1, __last1, __first2, | |
__gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); | |
} | |
template<typename _InputIterator1, typename _InputIterator2, | |
typename _BinaryPredicate> | |
pair<_InputIterator1, _InputIterator2> | |
__mismatch(_InputIterator1 __first1, _InputIterator1 __last1, | |
_InputIterator2 __first2, _InputIterator2 __last2, | |
_BinaryPredicate __binary_pred) | |
{ | |
while (__first1 != __last1 && __first2 != __last2 | |
&& __binary_pred(__first1, __first2)) | |
{ | |
++__first1; | |
++__first2; | |
} | |
return pair<_InputIterator1, _InputIterator2>(__first1, __first2); | |
} | |
# 2016 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 3 | |
template<typename _InputIterator1, typename _InputIterator2> | |
[[__nodiscard__]] | |
inline pair<_InputIterator1, _InputIterator2> | |
mismatch(_InputIterator1 __first1, _InputIterator1 __last1, | |
_InputIterator2 __first2, _InputIterator2 __last2) | |
{ | |
; | |
; | |
return std::__mismatch(__first1, __last1, __first2, __last2, | |
__gnu_cxx::__ops::__iter_equal_to_iter()); | |
} | |
# 2052 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 3 | |
template<typename _InputIterator1, typename _InputIterator2, | |
typename _BinaryPredicate> | |
[[__nodiscard__]] | |
inline pair<_InputIterator1, _InputIterator2> | |
mismatch(_InputIterator1 __first1, _InputIterator1 __last1, | |
_InputIterator2 __first2, _InputIterator2 __last2, | |
_BinaryPredicate __binary_pred) | |
{ | |
; | |
; | |
return std::__mismatch(__first1, __last1, __first2, __last2, | |
__gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); | |
} | |
template<typename _InputIterator, typename _Predicate> | |
inline _InputIterator | |
__find_if(_InputIterator __first, _InputIterator __last, | |
_Predicate __pred, input_iterator_tag) | |
{ | |
while (__first != __last && !__pred(__first)) | |
++__first; | |
return __first; | |
} | |
template<typename _RandomAccessIterator, typename _Predicate> | |
_RandomAccessIterator | |
__find_if(_RandomAccessIterator __first, _RandomAccessIterator __last, | |
_Predicate __pred, random_access_iterator_tag) | |
{ | |
typename iterator_traits<_RandomAccessIterator>::difference_type | |
__trip_count = (__last - __first) >> 2; | |
for (; __trip_count > 0; --__trip_count) | |
{ | |
if (__pred(__first)) | |
return __first; | |
++__first; | |
if (__pred(__first)) | |
return __first; | |
++__first; | |
if (__pred(__first)) | |
return __first; | |
++__first; | |
if (__pred(__first)) | |
return __first; | |
++__first; | |
} | |
switch (__last - __first) | |
{ | |
case 3: | |
if (__pred(__first)) | |
return __first; | |
++__first; | |
case 2: | |
if (__pred(__first)) | |
return __first; | |
++__first; | |
case 1: | |
if (__pred(__first)) | |
return __first; | |
++__first; | |
case 0: | |
default: | |
return __last; | |
} | |
} | |
template<typename _Iterator, typename _Predicate> | |
inline _Iterator | |
__find_if(_Iterator __first, _Iterator __last, _Predicate __pred) | |
{ | |
return __find_if(__first, __last, __pred, | |
std::__iterator_category(__first)); | |
} | |
template<typename _InputIterator, typename _Predicate> | |
typename iterator_traits<_InputIterator>::difference_type | |
__count_if(_InputIterator __first, _InputIterator __last, _Predicate __pred) | |
{ | |
typename iterator_traits<_InputIterator>::difference_type __n = 0; | |
for (; __first != __last; ++__first) | |
if (__pred(__first)) | |
++__n; | |
return __n; | |
} | |
template<typename _ForwardIterator, typename _Predicate> | |
_ForwardIterator | |
__remove_if(_ForwardIterator __first, _ForwardIterator __last, | |
_Predicate __pred) | |
{ | |
__first = std::__find_if(__first, __last, __pred); | |
if (__first == __last) | |
return __first; | |
_ForwardIterator __result = __first; | |
++__first; | |
for (; __first != __last; ++__first) | |
if (!__pred(__first)) | |
{ | |
*__result = std::move(*__first); | |
++__result; | |
} | |
return __result; | |
} | |
template<typename _ForwardIterator1, typename _ForwardIterator2, | |
typename _BinaryPredicate> | |
_ForwardIterator1 | |
__search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, | |
_ForwardIterator2 __first2, _ForwardIterator2 __last2, | |
_BinaryPredicate __predicate) | |
{ | |
if (__first1 == __last1 || __first2 == __last2) | |
return __first1; | |
_ForwardIterator2 __p1(__first2); | |
if (++__p1 == __last2) | |
return std::__find_if(__first1, __last1, | |
__gnu_cxx::__ops::__iter_comp_iter(__predicate, __first2)); | |
_ForwardIterator1 __current = __first1; | |
for (;;) | |
{ | |
__first1 = | |
std::__find_if(__first1, __last1, | |
__gnu_cxx::__ops::__iter_comp_iter(__predicate, __first2)); | |
if (__first1 == __last1) | |
return __last1; | |
_ForwardIterator2 __p = __p1; | |
__current = __first1; | |
if (++__current == __last1) | |
return __last1; | |
while (__predicate(__current, __p)) | |
{ | |
if (++__p == __last2) | |
return __first1; | |
if (++__current == __last1) | |
return __last1; | |
} | |
++__first1; | |
} | |
return __first1; | |
} | |
template<typename _ForwardIterator1, typename _ForwardIterator2, | |
typename _BinaryPredicate> | |
bool | |
__is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, | |
_ForwardIterator2 __first2, _BinaryPredicate __pred) | |
{ | |
for (; __first1 != __last1; ++__first1, (void)++__first2) | |
if (!__pred(__first1, __first2)) | |
break; | |
if (__first1 == __last1) | |
return true; | |
_ForwardIterator2 __last2 = __first2; | |
std::advance(__last2, std::distance(__first1, __last1)); | |
for (_ForwardIterator1 __scan = __first1; __scan != __last1; ++__scan) | |
{ | |
if (__scan != std::__find_if(__first1, __scan, | |
__gnu_cxx::__ops::__iter_comp_iter(__pred, __scan))) | |
continue; | |
auto __matches | |
= std::__count_if(__first2, __last2, | |
__gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)); | |
if (0 == __matches || | |
std::__count_if(__scan, __last1, | |
__gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)) | |
!= __matches) | |
return false; | |
} | |
return true; | |
} | |
# 2276 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 3 | |
template<typename _ForwardIterator1, typename _ForwardIterator2> | |
inline bool | |
is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, | |
_ForwardIterator2 __first2) | |
{ | |
; | |
return std::__is_permutation(__first1, __last1, __first2, | |
__gnu_cxx::__ops::__iter_equal_to_iter()); | |
} | |
# 2318 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h" 3 | |
template<typename _ForwardIterator1, typename _ForwardIterator2, | |
typename _BinaryPredicate> | |
inline _ForwardIterator1 | |
search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, | |
_ForwardIterator2 __first2, _ForwardIterator2 __last2, | |
_BinaryPredicate __predicate) | |
{ | |
; | |
; | |
return std::__search(__first1, __last1, __first2, __last2, | |
__gnu_cxx::__ops::__iter_comp_iter(__predicate)); | |
} | |
} | |
# 44 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/specfun.h" 2 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/limits" 1 3 | |
# 40 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/limits" 3 | |
# 41 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/limits" 3 | |
# 158 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/limits" 3 | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
enum float_round_style | |
{ | |
round_indeterminate = -1, | |
round_toward_zero = 0, | |
round_to_nearest = 1, | |
round_toward_infinity = 2, | |
round_toward_neg_infinity = 3 | |
}; | |
enum float_denorm_style | |
{ | |
denorm_indeterminate = -1, | |
denorm_absent = 0, | |
denorm_present = 1 | |
}; | |
# 202 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/limits" 3 | |
struct __numeric_limits_base | |
{ | |
static constexpr bool is_specialized = false; | |
static constexpr int digits = 0; | |
static constexpr int digits10 = 0; | |
static constexpr int max_digits10 = 0; | |
static constexpr bool is_signed = false; | |
static constexpr bool is_integer = false; | |
static constexpr bool is_exact = false; | |
static constexpr int radix = 0; | |
static constexpr int min_exponent = 0; | |
static constexpr int min_exponent10 = 0; | |
static constexpr int max_exponent = 0; | |
static constexpr int max_exponent10 = 0; | |
static constexpr bool has_infinity = false; | |
static constexpr bool has_quiet_NaN = false; | |
static constexpr bool has_signaling_NaN = false; | |
static constexpr float_denorm_style has_denorm = denorm_absent; | |
static constexpr bool has_denorm_loss = false; | |
static constexpr bool is_iec559 = false; | |
static constexpr bool is_bounded = false; | |
# 288 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/limits" 3 | |
static constexpr bool is_modulo = false; | |
static constexpr bool traps = false; | |
static constexpr bool tinyness_before = false; | |
static constexpr float_round_style round_style = | |
round_toward_zero; | |
}; | |
# 311 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/limits" 3 | |
template<typename _Tp> | |
struct numeric_limits : public __numeric_limits_base | |
{ | |
static constexpr _Tp | |
min() noexcept { return _Tp(); } | |
static constexpr _Tp | |
max() noexcept { return _Tp(); } | |
static constexpr _Tp | |
lowest() noexcept { return _Tp(); } | |
static constexpr _Tp | |
epsilon() noexcept { return _Tp(); } | |
static constexpr _Tp | |
round_error() noexcept { return _Tp(); } | |
static constexpr _Tp | |
infinity() noexcept { return _Tp(); } | |
static constexpr _Tp | |
quiet_NaN() noexcept { return _Tp(); } | |
static constexpr _Tp | |
signaling_NaN() noexcept { return _Tp(); } | |
static constexpr _Tp | |
denorm_min() noexcept { return _Tp(); } | |
}; | |
template<typename _Tp> | |
struct numeric_limits<const _Tp> | |
: public numeric_limits<_Tp> { }; | |
template<typename _Tp> | |
struct numeric_limits<volatile _Tp> | |
: public numeric_limits<_Tp> { }; | |
template<typename _Tp> | |
struct numeric_limits<const volatile _Tp> | |
: public numeric_limits<_Tp> { }; | |
# 383 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/limits" 3 | |
template<> | |
struct numeric_limits<bool> | |
{ | |
static constexpr bool is_specialized = true; | |
static constexpr bool | |
min() noexcept { return false; } | |
static constexpr bool | |
max() noexcept { return true; } | |
static constexpr bool | |
lowest() noexcept { return min(); } | |
static constexpr int digits = 1; | |
static constexpr int digits10 = 0; | |
static constexpr int max_digits10 = 0; | |
static constexpr bool is_signed = false; | |
static constexpr bool is_integer = true; | |
static constexpr bool is_exact = true; | |
static constexpr int radix = 2; | |
static constexpr bool | |
epsilon() noexcept { return false; } | |
static constexpr bool | |
round_error() noexcept { return false; } | |
static constexpr int min_exponent = 0; | |
static constexpr int min_exponent10 = 0; | |
static constexpr int max_exponent = 0; | |
static constexpr int max_exponent10 = 0; | |
static constexpr bool has_infinity = false; | |
static constexpr bool has_quiet_NaN = false; | |
static constexpr bool has_signaling_NaN = false; | |
static constexpr float_denorm_style has_denorm | |
= denorm_absent; | |
static constexpr bool has_denorm_loss = false; | |
static constexpr bool | |
infinity() noexcept { return false; } | |
static constexpr bool | |
quiet_NaN() noexcept { return false; } | |
static constexpr bool | |
signaling_NaN() noexcept { return false; } | |
static constexpr bool | |
denorm_min() noexcept { return false; } | |
static constexpr bool is_iec559 = false; | |
static constexpr bool is_bounded = true; | |
static constexpr bool is_modulo = false; | |
static constexpr bool traps = true; | |
static constexpr bool tinyness_before = false; | |
static constexpr float_round_style round_style | |
= round_toward_zero; | |
}; | |
template<> | |
struct numeric_limits<char> | |
{ | |
static constexpr bool is_specialized = true; | |
static constexpr char | |
min() noexcept { return (((char)(-1) < 0) ? -(((char)(-1) < 0) ? (((((char)1 << ((sizeof(char) * 8 - ((char)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(char)0) - 1 : (char)0); } | |
static constexpr char | |
max() noexcept { return (((char)(-1) < 0) ? (((((char)1 << ((sizeof(char) * 8 - ((char)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(char)0); } | |
static constexpr char | |
lowest() noexcept { return min(); } | |
static constexpr int digits = (sizeof(char) * 8 - ((char)(-1) < 0)); | |
static constexpr int digits10 = ((sizeof(char) * 8 - ((char)(-1) < 0)) * 643L / 2136); | |
static constexpr int max_digits10 = 0; | |
static constexpr bool is_signed = ((char)(-1) < 0); | |
static constexpr bool is_integer = true; | |
static constexpr bool is_exact = true; | |
static constexpr int radix = 2; | |
static constexpr char | |
epsilon() noexcept { return 0; } | |
static constexpr char | |
round_error() noexcept { return 0; } | |
static constexpr int min_exponent = 0; | |
static constexpr int min_exponent10 = 0; | |
static constexpr int max_exponent = 0; | |
static constexpr int max_exponent10 = 0; | |
static constexpr bool has_infinity = false; | |
static constexpr bool has_quiet_NaN = false; | |
static constexpr bool has_signaling_NaN = false; | |
static constexpr float_denorm_style has_denorm | |
= denorm_absent; | |
static constexpr bool has_denorm_loss = false; | |
static constexpr | |
char infinity() noexcept { return char(); } | |
static constexpr char | |
quiet_NaN() noexcept { return char(); } | |
static constexpr char | |
signaling_NaN() noexcept { return char(); } | |
static constexpr char | |
denorm_min() noexcept { return static_cast<char>(0); } | |
static constexpr bool is_iec559 = false; | |
static constexpr bool is_bounded = true; | |
static constexpr bool is_modulo = !is_signed; | |
static constexpr bool traps = true; | |
static constexpr bool tinyness_before = false; | |
static constexpr float_round_style round_style | |
= round_toward_zero; | |
}; | |
template<> | |
struct numeric_limits<signed char> | |
{ | |
static constexpr bool is_specialized = true; | |
static constexpr signed char | |
min() noexcept { return -0x7f - 1; } | |
static constexpr signed char | |
max() noexcept { return 0x7f; } | |
static constexpr signed char | |
lowest() noexcept { return min(); } | |
static constexpr int digits = (sizeof(signed char) * 8 - ((signed char)(-1) < 0)); | |
static constexpr int digits10 | |
= ((sizeof(signed char) * 8 - ((signed char)(-1) < 0)) * 643L / 2136); | |
static constexpr int max_digits10 = 0; | |
static constexpr bool is_signed = true; | |
static constexpr bool is_integer = true; | |
static constexpr bool is_exact = true; | |
static constexpr int radix = 2; | |
static constexpr signed char | |
epsilon() noexcept { return 0; } | |
static constexpr signed char | |
round_error() noexcept { return 0; } | |
static constexpr int min_exponent = 0; | |
static constexpr int min_exponent10 = 0; | |
static constexpr int max_exponent = 0; | |
static constexpr int max_exponent10 = 0; | |
static constexpr bool has_infinity = false; | |
static constexpr bool has_quiet_NaN = false; | |
static constexpr bool has_signaling_NaN = false; | |
static constexpr float_denorm_style has_denorm | |
= denorm_absent; | |
static constexpr bool has_denorm_loss = false; | |
static constexpr signed char | |
infinity() noexcept { return static_cast<signed char>(0); } | |
static constexpr signed char | |
quiet_NaN() noexcept { return static_cast<signed char>(0); } | |
static constexpr signed char | |
signaling_NaN() noexcept | |
{ return static_cast<signed char>(0); } | |
static constexpr signed char | |
denorm_min() noexcept | |
{ return static_cast<signed char>(0); } | |
static constexpr bool is_iec559 = false; | |
static constexpr bool is_bounded = true; | |
static constexpr bool is_modulo = false; | |
static constexpr bool traps = true; | |
static constexpr bool tinyness_before = false; | |
static constexpr float_round_style round_style | |
= round_toward_zero; | |
}; | |
template<> | |
struct numeric_limits<unsigned char> | |
{ | |
static constexpr bool is_specialized = true; | |
static constexpr unsigned char | |
min() noexcept { return 0; } | |
static constexpr unsigned char | |
max() noexcept { return 0x7f * 2U + 1; } | |
static constexpr unsigned char | |
lowest() noexcept { return min(); } | |
static constexpr int digits | |
= (sizeof(unsigned char) * 8 - ((unsigned char)(-1) < 0)); | |
static constexpr int digits10 | |
= ((sizeof(unsigned char) * 8 - ((unsigned char)(-1) < 0)) * 643L / 2136); | |
static constexpr int max_digits10 = 0; | |
static constexpr bool is_signed = false; | |
static constexpr bool is_integer = true; | |
static constexpr bool is_exact = true; | |
static constexpr int radix = 2; | |
static constexpr unsigned char | |
epsilon() noexcept { return 0; } | |
static constexpr unsigned char | |
round_error() noexcept { return 0; } | |
static constexpr int min_exponent = 0; | |
static constexpr int min_exponent10 = 0; | |
static constexpr int max_exponent = 0; | |
static constexpr int max_exponent10 = 0; | |
static constexpr bool has_infinity = false; | |
static constexpr bool has_quiet_NaN = false; | |
static constexpr bool has_signaling_NaN = false; | |
static constexpr float_denorm_style has_denorm | |
= denorm_absent; | |
static constexpr bool has_denorm_loss = false; | |
static constexpr unsigned char | |
infinity() noexcept | |
{ return static_cast<unsigned char>(0); } | |
static constexpr unsigned char | |
quiet_NaN() noexcept | |
{ return static_cast<unsigned char>(0); } | |
static constexpr unsigned char | |
signaling_NaN() noexcept | |
{ return static_cast<unsigned char>(0); } | |
static constexpr unsigned char | |
denorm_min() noexcept | |
{ return static_cast<unsigned char>(0); } | |
static constexpr bool is_iec559 = false; | |
static constexpr bool is_bounded = true; | |
static constexpr bool is_modulo = true; | |
static constexpr bool traps = true; | |
static constexpr bool tinyness_before = false; | |
static constexpr float_round_style round_style | |
= round_toward_zero; | |
}; | |
template<> | |
struct numeric_limits<wchar_t> | |
{ | |
static constexpr bool is_specialized = true; | |
static constexpr wchar_t | |
min() noexcept { return (((wchar_t)(-1) < 0) ? -(((wchar_t)(-1) < 0) ? (((((wchar_t)1 << ((sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(wchar_t)0) - 1 : (wchar_t)0); } | |
static constexpr wchar_t | |
max() noexcept { return (((wchar_t)(-1) < 0) ? (((((wchar_t)1 << ((sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(wchar_t)0); } | |
static constexpr wchar_t | |
lowest() noexcept { return min(); } | |
static constexpr int digits = (sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)); | |
static constexpr int digits10 | |
= ((sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)) * 643L / 2136); | |
static constexpr int max_digits10 = 0; | |
static constexpr bool is_signed = ((wchar_t)(-1) < 0); | |
static constexpr bool is_integer = true; | |
static constexpr bool is_exact = true; | |
static constexpr int radix = 2; | |
static constexpr wchar_t | |
epsilon() noexcept { return 0; } | |
static constexpr wchar_t | |
round_error() noexcept { return 0; } | |
static constexpr int min_exponent = 0; | |
static constexpr int min_exponent10 = 0; | |
static constexpr int max_exponent = 0; | |
static constexpr int max_exponent10 = 0; | |
static constexpr bool has_infinity = false; | |
static constexpr bool has_quiet_NaN = false; | |
static constexpr bool has_signaling_NaN = false; | |
static constexpr float_denorm_style has_denorm | |
= denorm_absent; | |
static constexpr bool has_denorm_loss = false; | |
static constexpr wchar_t | |
infinity() noexcept { return wchar_t(); } | |
static constexpr wchar_t | |
quiet_NaN() noexcept { return wchar_t(); } | |
static constexpr wchar_t | |
signaling_NaN() noexcept { return wchar_t(); } | |
static constexpr wchar_t | |
denorm_min() noexcept { return wchar_t(); } | |
static constexpr bool is_iec559 = false; | |
static constexpr bool is_bounded = true; | |
static constexpr bool is_modulo = !is_signed; | |
static constexpr bool traps = true; | |
static constexpr bool tinyness_before = false; | |
static constexpr float_round_style round_style | |
= round_toward_zero; | |
}; | |
# 796 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/limits" 3 | |
template<> | |
struct numeric_limits<char16_t> | |
{ | |
static constexpr bool is_specialized = true; | |
static constexpr char16_t | |
min() noexcept { return (((char16_t)(-1) < 0) ? -(((char16_t)(-1) < 0) ? (((((char16_t)1 << ((sizeof(char16_t) * 8 - ((char16_t)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(char16_t)0) - 1 : (char16_t)0); } | |
static constexpr char16_t | |
max() noexcept { return (((char16_t)(-1) < 0) ? (((((char16_t)1 << ((sizeof(char16_t) * 8 - ((char16_t)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(char16_t)0); } | |
static constexpr char16_t | |
lowest() noexcept { return min(); } | |
static constexpr int digits = (sizeof(char16_t) * 8 - ((char16_t)(-1) < 0)); | |
static constexpr int digits10 = ((sizeof(char16_t) * 8 - ((char16_t)(-1) < 0)) * 643L / 2136); | |
static constexpr int max_digits10 = 0; | |
static constexpr bool is_signed = ((char16_t)(-1) < 0); | |
static constexpr bool is_integer = true; | |
static constexpr bool is_exact = true; | |
static constexpr int radix = 2; | |
static constexpr char16_t | |
epsilon() noexcept { return 0; } | |
static constexpr char16_t | |
round_error() noexcept { return 0; } | |
static constexpr int min_exponent = 0; | |
static constexpr int min_exponent10 = 0; | |
static constexpr int max_exponent = 0; | |
static constexpr int max_exponent10 = 0; | |
static constexpr bool has_infinity = false; | |
static constexpr bool has_quiet_NaN = false; | |
static constexpr bool has_signaling_NaN = false; | |
static constexpr float_denorm_style has_denorm = denorm_absent; | |
static constexpr bool has_denorm_loss = false; | |
static constexpr char16_t | |
infinity() noexcept { return char16_t(); } | |
static constexpr char16_t | |
quiet_NaN() noexcept { return char16_t(); } | |
static constexpr char16_t | |
signaling_NaN() noexcept { return char16_t(); } | |
static constexpr char16_t | |
denorm_min() noexcept { return char16_t(); } | |
static constexpr bool is_iec559 = false; | |
static constexpr bool is_bounded = true; | |
static constexpr bool is_modulo = !is_signed; | |
static constexpr bool traps = true; | |
static constexpr bool tinyness_before = false; | |
static constexpr float_round_style round_style = round_toward_zero; | |
}; | |
template<> | |
struct numeric_limits<char32_t> | |
{ | |
static constexpr bool is_specialized = true; | |
static constexpr char32_t | |
min() noexcept { return (((char32_t)(-1) < 0) ? -(((char32_t)(-1) < 0) ? (((((char32_t)1 << ((sizeof(char32_t) * 8 - ((char32_t)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(char32_t)0) - 1 : (char32_t)0); } | |
static constexpr char32_t | |
max() noexcept { return (((char32_t)(-1) < 0) ? (((((char32_t)1 << ((sizeof(char32_t) * 8 - ((char32_t)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(char32_t)0); } | |
static constexpr char32_t | |
lowest() noexcept { return min(); } | |
static constexpr int digits = (sizeof(char32_t) * 8 - ((char32_t)(-1) < 0)); | |
static constexpr int digits10 = ((sizeof(char32_t) * 8 - ((char32_t)(-1) < 0)) * 643L / 2136); | |
static constexpr int max_digits10 = 0; | |
static constexpr bool is_signed = ((char32_t)(-1) < 0); | |
static constexpr bool is_integer = true; | |
static constexpr bool is_exact = true; | |
static constexpr int radix = 2; | |
static constexpr char32_t | |
epsilon() noexcept { return 0; } | |
static constexpr char32_t | |
round_error() noexcept { return 0; } | |
static constexpr int min_exponent = 0; | |
static constexpr int min_exponent10 = 0; | |
static constexpr int max_exponent = 0; | |
static constexpr int max_exponent10 = 0; | |
static constexpr bool has_infinity = false; | |
static constexpr bool has_quiet_NaN = false; | |
static constexpr bool has_signaling_NaN = false; | |
static constexpr float_denorm_style has_denorm = denorm_absent; | |
static constexpr bool has_denorm_loss = false; | |
static constexpr char32_t | |
infinity() noexcept { return char32_t(); } | |
static constexpr char32_t | |
quiet_NaN() noexcept { return char32_t(); } | |
static constexpr char32_t | |
signaling_NaN() noexcept { return char32_t(); } | |
static constexpr char32_t | |
denorm_min() noexcept { return char32_t(); } | |
static constexpr bool is_iec559 = false; | |
static constexpr bool is_bounded = true; | |
static constexpr bool is_modulo = !is_signed; | |
static constexpr bool traps = true; | |
static constexpr bool tinyness_before = false; | |
static constexpr float_round_style round_style = round_toward_zero; | |
}; | |
template<> | |
struct numeric_limits<short> | |
{ | |
static constexpr bool is_specialized = true; | |
static constexpr short | |
min() noexcept { return -0x7fff - 1; } | |
static constexpr short | |
max() noexcept { return 0x7fff; } | |
static constexpr short | |
lowest() noexcept { return min(); } | |
static constexpr int digits = (sizeof(short) * 8 - ((short)(-1) < 0)); | |
static constexpr int digits10 = ((sizeof(short) * 8 - ((short)(-1) < 0)) * 643L / 2136); | |
static constexpr int max_digits10 = 0; | |
static constexpr bool is_signed = true; | |
static constexpr bool is_integer = true; | |
static constexpr bool is_exact = true; | |
static constexpr int radix = 2; | |
static constexpr short | |
epsilon() noexcept { return 0; } | |
static constexpr short | |
round_error() noexcept { return 0; } | |
static constexpr int min_exponent = 0; | |
static constexpr int min_exponent10 = 0; | |
static constexpr int max_exponent = 0; | |
static constexpr int max_exponent10 = 0; | |
static constexpr bool has_infinity = false; | |
static constexpr bool has_quiet_NaN = false; | |
static constexpr bool has_signaling_NaN = false; | |
static constexpr float_denorm_style has_denorm | |
= denorm_absent; | |
static constexpr bool has_denorm_loss = false; | |
static constexpr short | |
infinity() noexcept { return short(); } | |
static constexpr short | |
quiet_NaN() noexcept { return short(); } | |
static constexpr short | |
signaling_NaN() noexcept { return short(); } | |
static constexpr short | |
denorm_min() noexcept { return short(); } | |
static constexpr bool is_iec559 = false; | |
static constexpr bool is_bounded = true; | |
static constexpr bool is_modulo = false; | |
static constexpr bool traps = true; | |
static constexpr bool tinyness_before = false; | |
static constexpr float_round_style round_style | |
= round_toward_zero; | |
}; | |
template<> | |
struct numeric_limits<unsigned short> | |
{ | |
static constexpr bool is_specialized = true; | |
static constexpr unsigned short | |
min() noexcept { return 0; } | |
static constexpr unsigned short | |
max() noexcept { return 0x7fff * 2U + 1; } | |
static constexpr unsigned short | |
lowest() noexcept { return min(); } | |
static constexpr int digits | |
= (sizeof(unsigned short) * 8 - ((unsigned short)(-1) < 0)); | |
static constexpr int digits10 | |
= ((sizeof(unsigned short) * 8 - ((unsigned short)(-1) < 0)) * 643L / 2136); | |
static constexpr int max_digits10 = 0; | |
static constexpr bool is_signed = false; | |
static constexpr bool is_integer = true; | |
static constexpr bool is_exact = true; | |
static constexpr int radix = 2; | |
static constexpr unsigned short | |
epsilon() noexcept { return 0; } | |
static constexpr unsigned short | |
round_error() noexcept { return 0; } | |
static constexpr int min_exponent = 0; | |
static constexpr int min_exponent10 = 0; | |
static constexpr int max_exponent = 0; | |
static constexpr int max_exponent10 = 0; | |
static constexpr bool has_infinity = false; | |
static constexpr bool has_quiet_NaN = false; | |
static constexpr bool has_signaling_NaN = false; | |
static constexpr float_denorm_style has_denorm | |
= denorm_absent; | |
static constexpr bool has_denorm_loss = false; | |
static constexpr unsigned short | |
infinity() noexcept | |
{ return static_cast<unsigned short>(0); } | |
static constexpr unsigned short | |
quiet_NaN() noexcept | |
{ return static_cast<unsigned short>(0); } | |
static constexpr unsigned short | |
signaling_NaN() noexcept | |
{ return static_cast<unsigned short>(0); } | |
static constexpr unsigned short | |
denorm_min() noexcept | |
{ return static_cast<unsigned short>(0); } | |
static constexpr bool is_iec559 = false; | |
static constexpr bool is_bounded = true; | |
static constexpr bool is_modulo = true; | |
static constexpr bool traps = true; | |
static constexpr bool tinyness_before = false; | |
static constexpr float_round_style round_style | |
= round_toward_zero; | |
}; | |
template<> | |
struct numeric_limits<int> | |
{ | |
static constexpr bool is_specialized = true; | |
static constexpr int | |
min() noexcept { return -0x7fffffff - 1; } | |
static constexpr int | |
max() noexcept { return 0x7fffffff; } | |
static constexpr int | |
lowest() noexcept { return min(); } | |
static constexpr int digits = (sizeof(int) * 8 - ((int)(-1) < 0)); | |
static constexpr int digits10 = ((sizeof(int) * 8 - ((int)(-1) < 0)) * 643L / 2136); | |
static constexpr int max_digits10 = 0; | |
static constexpr bool is_signed = true; | |
static constexpr bool is_integer = true; | |
static constexpr bool is_exact = true; | |
static constexpr int radix = 2; | |
static constexpr int | |
epsilon() noexcept { return 0; } | |
static constexpr int | |
round_error() noexcept { return 0; } | |
static constexpr int min_exponent = 0; | |
static constexpr int min_exponent10 = 0; | |
static constexpr int max_exponent = 0; | |
static constexpr int max_exponent10 = 0; | |
static constexpr bool has_infinity = false; | |
static constexpr bool has_quiet_NaN = false; | |
static constexpr bool has_signaling_NaN = false; | |
static constexpr float_denorm_style has_denorm | |
= denorm_absent; | |
static constexpr bool has_denorm_loss = false; | |
static constexpr int | |
infinity() noexcept { return static_cast<int>(0); } | |
static constexpr int | |
quiet_NaN() noexcept { return static_cast<int>(0); } | |
static constexpr int | |
signaling_NaN() noexcept { return static_cast<int>(0); } | |
static constexpr int | |
denorm_min() noexcept { return static_cast<int>(0); } | |
static constexpr bool is_iec559 = false; | |
static constexpr bool is_bounded = true; | |
static constexpr bool is_modulo = false; | |
static constexpr bool traps = true; | |
static constexpr bool tinyness_before = false; | |
static constexpr float_round_style round_style | |
= round_toward_zero; | |
}; | |
template<> | |
struct numeric_limits<unsigned int> | |
{ | |
static constexpr bool is_specialized = true; | |
static constexpr unsigned int | |
min() noexcept { return 0; } | |
static constexpr unsigned int | |
max() noexcept { return 0x7fffffff * 2U + 1; } | |
static constexpr unsigned int | |
lowest() noexcept { return min(); } | |
static constexpr int digits | |
= (sizeof(unsigned int) * 8 - ((unsigned int)(-1) < 0)); | |
static constexpr int digits10 | |
= ((sizeof(unsigned int) * 8 - ((unsigned int)(-1) < 0)) * 643L / 2136); | |
static constexpr int max_digits10 = 0; | |
static constexpr bool is_signed = false; | |
static constexpr bool is_integer = true; | |
static constexpr bool is_exact = true; | |
static constexpr int radix = 2; | |
static constexpr unsigned int | |
epsilon() noexcept { return 0; } | |
static constexpr unsigned int | |
round_error() noexcept { return 0; } | |
static constexpr int min_exponent = 0; | |
static constexpr int min_exponent10 = 0; | |
static constexpr int max_exponent = 0; | |
static constexpr int max_exponent10 = 0; | |
static constexpr bool has_infinity = false; | |
static constexpr bool has_quiet_NaN = false; | |
static constexpr bool has_signaling_NaN = false; | |
static constexpr float_denorm_style has_denorm | |
= denorm_absent; | |
static constexpr bool has_denorm_loss = false; | |
static constexpr unsigned int | |
infinity() noexcept { return static_cast<unsigned int>(0); } | |
static constexpr unsigned int | |
quiet_NaN() noexcept | |
{ return static_cast<unsigned int>(0); } | |
static constexpr unsigned int | |
signaling_NaN() noexcept | |
{ return static_cast<unsigned int>(0); } | |
static constexpr unsigned int | |
denorm_min() noexcept | |
{ return static_cast<unsigned int>(0); } | |
static constexpr bool is_iec559 = false; | |
static constexpr bool is_bounded = true; | |
static constexpr bool is_modulo = true; | |
static constexpr bool traps = true; | |
static constexpr bool tinyness_before = false; | |
static constexpr float_round_style round_style | |
= round_toward_zero; | |
}; | |
template<> | |
struct numeric_limits<long> | |
{ | |
static constexpr bool is_specialized = true; | |
static constexpr long | |
min() noexcept { return -0x7fffffffffffffffL - 1; } | |
static constexpr long | |
max() noexcept { return 0x7fffffffffffffffL; } | |
static constexpr long | |
lowest() noexcept { return min(); } | |
static constexpr int digits = (sizeof(long) * 8 - ((long)(-1) < 0)); | |
static constexpr int digits10 = ((sizeof(long) * 8 - ((long)(-1) < 0)) * 643L / 2136); | |
static constexpr int max_digits10 = 0; | |
static constexpr bool is_signed = true; | |
static constexpr bool is_integer = true; | |
static constexpr bool is_exact = true; | |
static constexpr int radix = 2; | |
static constexpr long | |
epsilon() noexcept { return 0; } | |
static constexpr long | |
round_error() noexcept { return 0; } | |
static constexpr int min_exponent = 0; | |
static constexpr int min_exponent10 = 0; | |
static constexpr int max_exponent = 0; | |
static constexpr int max_exponent10 = 0; | |
static constexpr bool has_infinity = false; | |
static constexpr bool has_quiet_NaN = false; | |
static constexpr bool has_signaling_NaN = false; | |
static constexpr float_denorm_style has_denorm | |
= denorm_absent; | |
static constexpr bool has_denorm_loss = false; | |
static constexpr long | |
infinity() noexcept { return static_cast<long>(0); } | |
static constexpr long | |
quiet_NaN() noexcept { return static_cast<long>(0); } | |
static constexpr long | |
signaling_NaN() noexcept { return static_cast<long>(0); } | |
static constexpr long | |
denorm_min() noexcept { return static_cast<long>(0); } | |
static constexpr bool is_iec559 = false; | |
static constexpr bool is_bounded = true; | |
static constexpr bool is_modulo = false; | |
static constexpr bool traps = true; | |
static constexpr bool tinyness_before = false; | |
static constexpr float_round_style round_style | |
= round_toward_zero; | |
}; | |
template<> | |
struct numeric_limits<unsigned long> | |
{ | |
static constexpr bool is_specialized = true; | |
static constexpr unsigned long | |
min() noexcept { return 0; } | |
static constexpr unsigned long | |
max() noexcept { return 0x7fffffffffffffffL * 2UL + 1; } | |
static constexpr unsigned long | |
lowest() noexcept { return min(); } | |
static constexpr int digits | |
= (sizeof(unsigned long) * 8 - ((unsigned long)(-1) < 0)); | |
static constexpr int digits10 | |
= ((sizeof(unsigned long) * 8 - ((unsigned long)(-1) < 0)) * 643L / 2136); | |
static constexpr int max_digits10 = 0; | |
static constexpr bool is_signed = false; | |
static constexpr bool is_integer = true; | |
static constexpr bool is_exact = true; | |
static constexpr int radix = 2; | |
static constexpr unsigned long | |
epsilon() noexcept { return 0; } | |
static constexpr unsigned long | |
round_error() noexcept { return 0; } | |
static constexpr int min_exponent = 0; | |
static constexpr int min_exponent10 = 0; | |
static constexpr int max_exponent = 0; | |
static constexpr int max_exponent10 = 0; | |
static constexpr bool has_infinity = false; | |
static constexpr bool has_quiet_NaN = false; | |
static constexpr bool has_signaling_NaN = false; | |
static constexpr float_denorm_style has_denorm | |
= denorm_absent; | |
static constexpr bool has_denorm_loss = false; | |
static constexpr unsigned long | |
infinity() noexcept | |
{ return static_cast<unsigned long>(0); } | |
static constexpr unsigned long | |
quiet_NaN() noexcept | |
{ return static_cast<unsigned long>(0); } | |
static constexpr unsigned long | |
signaling_NaN() noexcept | |
{ return static_cast<unsigned long>(0); } | |
static constexpr unsigned long | |
denorm_min() noexcept | |
{ return static_cast<unsigned long>(0); } | |
static constexpr bool is_iec559 = false; | |
static constexpr bool is_bounded = true; | |
static constexpr bool is_modulo = true; | |
static constexpr bool traps = true; | |
static constexpr bool tinyness_before = false; | |
static constexpr float_round_style round_style | |
= round_toward_zero; | |
}; | |
template<> | |
struct numeric_limits<long long> | |
{ | |
static constexpr bool is_specialized = true; | |
static constexpr long long | |
min() noexcept { return -0x7fffffffffffffffLL - 1; } | |
static constexpr long long | |
max() noexcept { return 0x7fffffffffffffffLL; } | |
static constexpr long long | |
lowest() noexcept { return min(); } | |
static constexpr int digits | |
= (sizeof(long long) * 8 - ((long long)(-1) < 0)); | |
static constexpr int digits10 | |
= ((sizeof(long long) * 8 - ((long long)(-1) < 0)) * 643L / 2136); | |
static constexpr int max_digits10 = 0; | |
static constexpr bool is_signed = true; | |
static constexpr bool is_integer = true; | |
static constexpr bool is_exact = true; | |
static constexpr int radix = 2; | |
static constexpr long long | |
epsilon() noexcept { return 0; } | |
static constexpr long long | |
round_error() noexcept { return 0; } | |
static constexpr int min_exponent = 0; | |
static constexpr int min_exponent10 = 0; | |
static constexpr int max_exponent = 0; | |
static constexpr int max_exponent10 = 0; | |
static constexpr bool has_infinity = false; | |
static constexpr bool has_quiet_NaN = false; | |
static constexpr bool has_signaling_NaN = false; | |
static constexpr float_denorm_style has_denorm | |
= denorm_absent; | |
static constexpr bool has_denorm_loss = false; | |
static constexpr long long | |
infinity() noexcept { return static_cast<long long>(0); } | |
static constexpr long long | |
quiet_NaN() noexcept { return static_cast<long long>(0); } | |
static constexpr long long | |
signaling_NaN() noexcept | |
{ return static_cast<long long>(0); } | |
static constexpr long long | |
denorm_min() noexcept { return static_cast<long long>(0); } | |
static constexpr bool is_iec559 = false; | |
static constexpr bool is_bounded = true; | |
static constexpr bool is_modulo = false; | |
static constexpr bool traps = true; | |
static constexpr bool tinyness_before = false; | |
static constexpr float_round_style round_style | |
= round_toward_zero; | |
}; | |
template<> | |
struct numeric_limits<unsigned long long> | |
{ | |
static constexpr bool is_specialized = true; | |
static constexpr unsigned long long | |
min() noexcept { return 0; } | |
static constexpr unsigned long long | |
max() noexcept { return 0x7fffffffffffffffLL * 2ULL + 1; } | |
static constexpr unsigned long long | |
lowest() noexcept { return min(); } | |
static constexpr int digits | |
= (sizeof(unsigned long long) * 8 - ((unsigned long long)(-1) < 0)); | |
static constexpr int digits10 | |
= ((sizeof(unsigned long long) * 8 - ((unsigned long long)(-1) < 0)) * 643L / 2136); | |
static constexpr int max_digits10 = 0; | |
static constexpr bool is_signed = false; | |
static constexpr bool is_integer = true; | |
static constexpr bool is_exact = true; | |
static constexpr int radix = 2; | |
static constexpr unsigned long long | |
epsilon() noexcept { return 0; } | |
static constexpr unsigned long long | |
round_error() noexcept { return 0; } | |
static constexpr int min_exponent = 0; | |
static constexpr int min_exponent10 = 0; | |
static constexpr int max_exponent = 0; | |
static constexpr int max_exponent10 = 0; | |
static constexpr bool has_infinity = false; | |
static constexpr bool has_quiet_NaN = false; | |
static constexpr bool has_signaling_NaN = false; | |
static constexpr float_denorm_style has_denorm | |
= denorm_absent; | |
static constexpr bool has_denorm_loss = false; | |
static constexpr unsigned long long | |
infinity() noexcept | |
{ return static_cast<unsigned long long>(0); } | |
static constexpr unsigned long long | |
quiet_NaN() noexcept | |
{ return static_cast<unsigned long long>(0); } | |
static constexpr unsigned long long | |
signaling_NaN() noexcept | |
{ return static_cast<unsigned long long>(0); } | |
static constexpr unsigned long long | |
denorm_min() noexcept | |
{ return static_cast<unsigned long long>(0); } | |
static constexpr bool is_iec559 = false; | |
static constexpr bool is_bounded = true; | |
static constexpr bool is_modulo = true; | |
static constexpr bool traps = true; | |
static constexpr bool tinyness_before = false; | |
static constexpr float_round_style round_style | |
= round_toward_zero; | |
}; | |
# 1658 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/limits" 3 | |
__extension__ template<> struct numeric_limits<__int128> { static constexpr bool is_specialized = true; static constexpr __int128 min() noexcept { return (((__int128)(-1) < 0) ? -(((__int128)(-1) < 0) ? (((((__int128)1 << ((128 - ((__int128)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(__int128)0) - 1 : (__int128)0); } static constexpr __int128 max() noexcept { return (((__int128)(-1) < 0) ? (((((__int128)1 << ((128 - ((__int128)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(__int128)0); } static constexpr int digits = 128 - 1; static constexpr int digits10 = (128 - 1) * 643L / 2136; static constexpr bool is_signed = true; static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int radix = 2; static constexpr __int128 epsilon() noexcept { return 0; } static constexpr __int128 round_error() noexcept { return 0; } static constexpr __int128 lowest() noexcept { return min(); } static constexpr int max_digits10 = 0; static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr __int128 infinity() noexcept { return static_cast<__int128>(0); } static constexpr __int128 quiet_NaN() noexcept { return static_cast<__int128>(0); } static constexpr __int128 signaling_NaN() noexcept { return static_cast<__int128>(0); } static constexpr __int128 denorm_min() noexcept { return static_cast<__int128>(0); } static constexpr bool is_iec559 = false; static constexpr bool is_bounded = true; static constexpr bool is_modulo = false; static constexpr bool traps = true; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; __extension__ template<> struct numeric_limits<unsigned __int128> { static constexpr bool is_specialized = true; static constexpr unsigned __int128 min() noexcept { return 0; } static constexpr unsigned __int128 max() noexcept { return (((unsigned __int128)(-1) < 0) ? (((((unsigned __int128)1 << ((128 - ((unsigned __int128)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(unsigned __int128)0); } static constexpr unsigned __int128 lowest() noexcept { return min(); } static constexpr int max_digits10 = 0; static constexpr int digits = 128; static constexpr int digits10 = 128 * 643L / 2136; static constexpr bool is_signed = false; static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int radix = 2; static constexpr unsigned __int128 epsilon() noexcept { return 0; } static constexpr unsigned __int128 round_error() noexcept { return 0; } static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr unsigned __int128 infinity() noexcept { return static_cast<unsigned __int128>(0); } static constexpr unsigned __int128 quiet_NaN() noexcept { return static_cast<unsigned __int128>(0); } static constexpr unsigned __int128 signaling_NaN() noexcept { return static_cast<unsigned __int128>(0); } static constexpr unsigned __int128 denorm_min() noexcept { return static_cast<unsigned __int128>(0); } static constexpr bool is_iec559 = false; static constexpr bool is_bounded = true; static constexpr bool is_modulo = true; static constexpr bool traps = true; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; | |
# 1669 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/limits" 3 | |
template<> | |
struct numeric_limits<float> | |
{ | |
static constexpr bool is_specialized = true; | |
static constexpr float | |
min() noexcept { return 1.17549435082228750796873653722224568e-38F; } | |
static constexpr float | |
max() noexcept { return 3.40282346638528859811704183484516925e+38F; } | |
static constexpr float | |
lowest() noexcept { return -3.40282346638528859811704183484516925e+38F; } | |
static constexpr int digits = 24; | |
static constexpr int digits10 = 6; | |
static constexpr int max_digits10 | |
= (2 + (24) * 643L / 2136); | |
static constexpr bool is_signed = true; | |
static constexpr bool is_integer = false; | |
static constexpr bool is_exact = false; | |
static constexpr int radix = 2; | |
static constexpr float | |
epsilon() noexcept { return 1.19209289550781250000000000000000000e-7F; } | |
static constexpr float | |
round_error() noexcept { return 0.5F; } | |
static constexpr int min_exponent = (-125); | |
static constexpr int min_exponent10 = (-37); | |
static constexpr int max_exponent = 128; | |
static constexpr int max_exponent10 = 38; | |
static constexpr bool has_infinity = 1; | |
static constexpr bool has_quiet_NaN = 1; | |
static constexpr bool has_signaling_NaN = has_quiet_NaN; | |
static constexpr float_denorm_style has_denorm | |
= bool(1) ? denorm_present : denorm_absent; | |
static constexpr bool has_denorm_loss | |
= false; | |
static constexpr float | |
infinity() noexcept { return __builtin_huge_valf(); } | |
static constexpr float | |
quiet_NaN() noexcept { return __builtin_nanf(""); } | |
static constexpr float | |
signaling_NaN() noexcept { return __builtin_nansf(""); } | |
static constexpr float | |
denorm_min() noexcept { return 1.40129846432481707092372958328991613e-45F; } | |
static constexpr bool is_iec559 | |
= has_infinity && has_quiet_NaN && has_denorm == denorm_present; | |
static constexpr bool is_bounded = true; | |
static constexpr bool is_modulo = false; | |
static constexpr bool traps = false; | |
static constexpr bool tinyness_before | |
= false; | |
static constexpr float_round_style round_style | |
= round_to_nearest; | |
}; | |
template<> | |
struct numeric_limits<double> | |
{ | |
static constexpr bool is_specialized = true; | |
static constexpr double | |
min() noexcept { return double(2.22507385850720138309023271733240406e-308L); } | |
static constexpr double | |
max() noexcept { return double(1.79769313486231570814527423731704357e+308L); } | |
static constexpr double | |
lowest() noexcept { return -double(1.79769313486231570814527423731704357e+308L); } | |
static constexpr int digits = 53; | |
static constexpr int digits10 = 15; | |
static constexpr int max_digits10 | |
= (2 + (53) * 643L / 2136); | |
static constexpr bool is_signed = true; | |
static constexpr bool is_integer = false; | |
static constexpr bool is_exact = false; | |
static constexpr int radix = 2; | |
static constexpr double | |
epsilon() noexcept { return double(2.22044604925031308084726333618164062e-16L); } | |
static constexpr double | |
round_error() noexcept { return 0.5; } | |
static constexpr int min_exponent = (-1021); | |
static constexpr int min_exponent10 = (-307); | |
static constexpr int max_exponent = 1024; | |
static constexpr int max_exponent10 = 308; | |
static constexpr bool has_infinity = 1; | |
static constexpr bool has_quiet_NaN = 1; | |
static constexpr bool has_signaling_NaN = has_quiet_NaN; | |
static constexpr float_denorm_style has_denorm | |
= bool(1) ? denorm_present : denorm_absent; | |
static constexpr bool has_denorm_loss | |
= false; | |
static constexpr double | |
infinity() noexcept { return __builtin_huge_val(); } | |
static constexpr double | |
quiet_NaN() noexcept { return __builtin_nan(""); } | |
static constexpr double | |
signaling_NaN() noexcept { return __builtin_nans(""); } | |
static constexpr double | |
denorm_min() noexcept { return double(4.94065645841246544176568792868221372e-324L); } | |
static constexpr bool is_iec559 | |
= has_infinity && has_quiet_NaN && has_denorm == denorm_present; | |
static constexpr bool is_bounded = true; | |
static constexpr bool is_modulo = false; | |
static constexpr bool traps = false; | |
static constexpr bool tinyness_before | |
= false; | |
static constexpr float_round_style round_style | |
= round_to_nearest; | |
}; | |
template<> | |
struct numeric_limits<long double> | |
{ | |
static constexpr bool is_specialized = true; | |
static constexpr long double | |
min() noexcept { return 3.36210314311209350626267781732175260e-4932L; } | |
static constexpr long double | |
max() noexcept { return 1.18973149535723176502126385303097021e+4932L; } | |
static constexpr long double | |
lowest() noexcept { return -1.18973149535723176502126385303097021e+4932L; } | |
static constexpr int digits = 64; | |
static constexpr int digits10 = 18; | |
static constexpr int max_digits10 | |
= (2 + (64) * 643L / 2136); | |
static constexpr bool is_signed = true; | |
static constexpr bool is_integer = false; | |
static constexpr bool is_exact = false; | |
static constexpr int radix = 2; | |
static constexpr long double | |
epsilon() noexcept { return 1.08420217248550443400745280086994171e-19L; } | |
static constexpr long double | |
round_error() noexcept { return 0.5L; } | |
static constexpr int min_exponent = (-16381); | |
static constexpr int min_exponent10 = (-4931); | |
static constexpr int max_exponent = 16384; | |
static constexpr int max_exponent10 = 4932; | |
static constexpr bool has_infinity = 1; | |
static constexpr bool has_quiet_NaN = 1; | |
static constexpr bool has_signaling_NaN = has_quiet_NaN; | |
static constexpr float_denorm_style has_denorm | |
= bool(1) ? denorm_present : denorm_absent; | |
static constexpr bool has_denorm_loss | |
= false; | |
static constexpr long double | |
infinity() noexcept { return __builtin_huge_vall(); } | |
static constexpr long double | |
quiet_NaN() noexcept { return __builtin_nanl(""); } | |
static constexpr long double | |
signaling_NaN() noexcept { return __builtin_nansl(""); } | |
static constexpr long double | |
denorm_min() noexcept { return 3.64519953188247460252840593361941982e-4951L; } | |
static constexpr bool is_iec559 | |
= has_infinity && has_quiet_NaN && has_denorm == denorm_present; | |
static constexpr bool is_bounded = true; | |
static constexpr bool is_modulo = false; | |
static constexpr bool traps = false; | |
static constexpr bool tinyness_before = | |
false; | |
static constexpr float_round_style round_style = | |
round_to_nearest; | |
}; | |
# 1989 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/limits" 3 | |
__extension__ template<> struct numeric_limits<_Float32> { static constexpr bool is_specialized = true; static constexpr _Float32 min() noexcept { return 1.17549435082228750796873653722224568e-38F32; } static constexpr _Float32 max() noexcept { return 3.40282346638528859811704183484516925e+38F32; } static constexpr _Float32 lowest() noexcept { return -3.40282346638528859811704183484516925e+38F32; } static constexpr int digits = 24; static constexpr int digits10 = 6; static constexpr int max_digits10 = (2 + (24) * 643L / 2136); static constexpr bool is_signed = true; static constexpr bool is_integer = false; static constexpr bool is_exact = false; static constexpr int radix = 2; static constexpr _Float32 epsilon() noexcept { return 1.19209289550781250000000000000000000e-7F32; } static constexpr _Float32 round_error() noexcept { return 0.5F32; } static constexpr int min_exponent = (-125); static constexpr int min_exponent10 = (-37); static constexpr int max_exponent = 128; static constexpr int max_exponent10 = 38; static constexpr bool has_infinity = 1; static constexpr bool has_quiet_NaN = 1; static constexpr bool has_signaling_NaN = has_quiet_NaN; static constexpr float_denorm_style has_denorm = bool(1) ? denorm_present : denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr _Float32 infinity() noexcept { return __builtin_huge_valf32(); } static constexpr _Float32 quiet_NaN() noexcept { return __builtin_nanf32(""); } static constexpr _Float32 signaling_NaN() noexcept { return __builtin_nansf32(""); } static constexpr _Float32 denorm_min() noexcept { return 1.40129846432481707092372958328991613e-45F32; } static constexpr bool is_iec559 = has_infinity && has_quiet_NaN && has_denorm == denorm_present; static constexpr bool is_bounded = true; static constexpr bool is_modulo = false; static constexpr bool traps = false; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_to_nearest; }; | |
__extension__ template<> struct numeric_limits<_Float64> { static constexpr bool is_specialized = true; static constexpr _Float64 min() noexcept { return 2.22507385850720138309023271733240406e-308F64; } static constexpr _Float64 max() noexcept { return 1.79769313486231570814527423731704357e+308F64; } static constexpr _Float64 lowest() noexcept { return -1.79769313486231570814527423731704357e+308F64; } static constexpr int digits = 53; static constexpr int digits10 = 15; static constexpr int max_digits10 = (2 + (53) * 643L / 2136); static constexpr bool is_signed = true; static constexpr bool is_integer = false; static constexpr bool is_exact = false; static constexpr int radix = 2; static constexpr _Float64 epsilon() noexcept { return 2.22044604925031308084726333618164062e-16F64; } static constexpr _Float64 round_error() noexcept { return 0.5F64; } static constexpr int min_exponent = (-1021); static constexpr int min_exponent10 = (-307); static constexpr int max_exponent = 1024; static constexpr int max_exponent10 = 308; static constexpr bool has_infinity = 1; static constexpr bool has_quiet_NaN = 1; static constexpr bool has_signaling_NaN = has_quiet_NaN; static constexpr float_denorm_style has_denorm = bool(1) ? denorm_present : denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr _Float64 infinity() noexcept { return __builtin_huge_valf64(); } static constexpr _Float64 quiet_NaN() noexcept { return __builtin_nanf64(""); } static constexpr _Float64 signaling_NaN() noexcept { return __builtin_nansf64(""); } static constexpr _Float64 denorm_min() noexcept { return 4.94065645841246544176568792868221372e-324F64; } static constexpr bool is_iec559 = has_infinity && has_quiet_NaN && has_denorm == denorm_present; static constexpr bool is_bounded = true; static constexpr bool is_modulo = false; static constexpr bool traps = false; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_to_nearest; }; | |
__extension__ template<> struct numeric_limits<_Float128> { static constexpr bool is_specialized = true; static constexpr _Float128 min() noexcept { return 3.36210314311209350626267781732175260e-4932F128; } static constexpr _Float128 max() noexcept { return 1.18973149535723176508575932662800702e+4932F128; } static constexpr _Float128 lowest() noexcept { return -1.18973149535723176508575932662800702e+4932F128; } static constexpr int digits = 113; static constexpr int digits10 = 33; static constexpr int max_digits10 = (2 + (113) * 643L / 2136); static constexpr bool is_signed = true; static constexpr bool is_integer = false; static constexpr bool is_exact = false; static constexpr int radix = 2; static constexpr _Float128 epsilon() noexcept { return 1.92592994438723585305597794258492732e-34F128; } static constexpr _Float128 round_error() noexcept { return 0.5F128; } static constexpr int min_exponent = (-16381); static constexpr int min_exponent10 = (-4931); static constexpr int max_exponent = 16384; static constexpr int max_exponent10 = 4932; static constexpr bool has_infinity = 1; static constexpr bool has_quiet_NaN = 1; static constexpr bool has_signaling_NaN = has_quiet_NaN; static constexpr float_denorm_style has_denorm = bool(1) ? denorm_present : denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr _Float128 infinity() noexcept { return __builtin_huge_valf128(); } static constexpr _Float128 quiet_NaN() noexcept { return __builtin_nanf128(""); } static constexpr _Float128 signaling_NaN() noexcept { return __builtin_nansf128(""); } static constexpr _Float128 denorm_min() noexcept { return 6.47517511943802511092443895822764655e-4966F128; } static constexpr bool is_iec559 = has_infinity && has_quiet_NaN && has_denorm == denorm_present; static constexpr bool is_bounded = true; static constexpr bool is_modulo = false; static constexpr bool traps = false; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_to_nearest; }; | |
# 2087 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/limits" 3 | |
__extension__ | |
template<> | |
struct numeric_limits<__float128> | |
{ | |
static constexpr bool is_specialized = true; | |
static constexpr __float128 | |
min() noexcept | |
{ | |
return double(9.3132257461547852e-10) * _S_1pm16352(); | |
} | |
static constexpr __float128 | |
max() noexcept | |
{ | |
return (__float128(double(3.4028236692093843e+38)) | |
+ double(3.7778931862957153e+22) + double(8.35584e+6)) | |
* _S_1p16256(); | |
} | |
static constexpr __float128 | |
lowest() noexcept | |
{ return -max(); } | |
static constexpr int digits = 113; | |
static constexpr int digits10 = 33; | |
static constexpr int max_digits10 = 35; | |
static constexpr bool is_signed = true; | |
static constexpr bool is_integer = false; | |
static constexpr bool is_exact = false; | |
static constexpr int radix = 2; | |
static constexpr __float128 | |
epsilon() noexcept | |
{ return double(1.9259299443872359e-34); } | |
static constexpr __float128 | |
round_error() noexcept { return 0.5; } | |
static constexpr int min_exponent = -16381; | |
static constexpr int min_exponent10 = -4931; | |
static constexpr int max_exponent = 16384; | |
static constexpr int max_exponent10 = 4932; | |
static constexpr bool has_infinity = 1; | |
static constexpr bool has_quiet_NaN = 1; | |
static constexpr bool has_signaling_NaN = true; | |
static constexpr float_denorm_style has_denorm | |
= denorm_present; | |
static constexpr bool has_denorm_loss = false; | |
static constexpr __float128 | |
infinity() noexcept | |
{ return __builtin_huge_val(); } | |
static constexpr __float128 | |
quiet_NaN() noexcept | |
{ return __builtin_nan(""); } | |
static constexpr __float128 | |
signaling_NaN() noexcept | |
{ | |
return __builtin_nansq(""); | |
} | |
static constexpr __float128 | |
denorm_min() noexcept | |
{ | |
return double(1.7936620343357659e-43) * _S_1pm16352(); | |
} | |
static constexpr bool is_iec559 = has_signaling_NaN; | |
static constexpr bool is_bounded = true; | |
static constexpr bool is_modulo = false; | |
static constexpr bool traps = false; | |
static constexpr bool tinyness_before = false; | |
static constexpr float_round_style round_style | |
= round_to_nearest; | |
private: | |
static constexpr __float128 | |
_S_4p(__float128 __v) noexcept | |
{ return __v * __v * __v * __v; } | |
static constexpr __float128 | |
_S_1pm4088() noexcept | |
{ return _S_4p( double(2.2250738585072014e-308)); } | |
static constexpr __float128 | |
_S_1pm16352() noexcept | |
{ return _S_4p(_S_1pm4088()); } | |
static constexpr __float128 | |
_S_1p4064() noexcept | |
{ return _S_4p( double(7.0222388080559215e+305)); } | |
static constexpr __float128 | |
_S_1p16256() noexcept | |
{ return _S_4p(_S_1p4064()); } | |
}; | |
} | |
# 45 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/specfun.h" 2 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/gamma.tcc" 1 3 | |
# 49 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/gamma.tcc" 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/special_function_util.h" 1 3 | |
# 39 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/special_function_util.h" 3 | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
# 50 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/special_function_util.h" 3 | |
namespace __detail | |
{ | |
template<typename _Tp> | |
struct __floating_point_constant | |
{ | |
static const _Tp __value; | |
}; | |
template<typename _Tp> | |
struct __numeric_constants | |
{ | |
static _Tp __pi() throw() | |
{ return static_cast<_Tp>(3.1415926535897932384626433832795029L); } | |
static _Tp __pi_2() throw() | |
{ return static_cast<_Tp>(1.5707963267948966192313216916397514L); } | |
static _Tp __pi_3() throw() | |
{ return static_cast<_Tp>(1.0471975511965977461542144610931676L); } | |
static _Tp __pi_4() throw() | |
{ return static_cast<_Tp>(0.7853981633974483096156608458198757L); } | |
static _Tp __1_pi() throw() | |
{ return static_cast<_Tp>(0.3183098861837906715377675267450287L); } | |
static _Tp __2_sqrtpi() throw() | |
{ return static_cast<_Tp>(1.1283791670955125738961589031215452L); } | |
static _Tp __sqrt2() throw() | |
{ return static_cast<_Tp>(1.4142135623730950488016887242096981L); } | |
static _Tp __sqrt3() throw() | |
{ return static_cast<_Tp>(1.7320508075688772935274463415058723L); } | |
static _Tp __sqrtpio2() throw() | |
{ return static_cast<_Tp>(1.2533141373155002512078826424055226L); } | |
static _Tp __sqrt1_2() throw() | |
{ return static_cast<_Tp>(0.7071067811865475244008443621048490L); } | |
static _Tp __lnpi() throw() | |
{ return static_cast<_Tp>(1.1447298858494001741434273513530587L); } | |
static _Tp __gamma_e() throw() | |
{ return static_cast<_Tp>(0.5772156649015328606065120900824024L); } | |
static _Tp __euler() throw() | |
{ return static_cast<_Tp>(2.7182818284590452353602874713526625L); } | |
}; | |
# 114 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/special_function_util.h" 3 | |
template<typename _Tp> | |
inline bool __isnan(_Tp __x) | |
{ return std::isnan(__x); } | |
# 133 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/special_function_util.h" 3 | |
} | |
} | |
# 50 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/gamma.tcc" 2 3 | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
# 65 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/gamma.tcc" 3 | |
namespace __detail | |
{ | |
# 76 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/gamma.tcc" 3 | |
template <typename _Tp> | |
_Tp | |
__bernoulli_series(unsigned int __n) | |
{ | |
static const _Tp __num[28] = { | |
_Tp(1UL), -_Tp(1UL) / _Tp(2UL), | |
_Tp(1UL) / _Tp(6UL), _Tp(0UL), | |
-_Tp(1UL) / _Tp(30UL), _Tp(0UL), | |
_Tp(1UL) / _Tp(42UL), _Tp(0UL), | |
-_Tp(1UL) / _Tp(30UL), _Tp(0UL), | |
_Tp(5UL) / _Tp(66UL), _Tp(0UL), | |
-_Tp(691UL) / _Tp(2730UL), _Tp(0UL), | |
_Tp(7UL) / _Tp(6UL), _Tp(0UL), | |
-_Tp(3617UL) / _Tp(510UL), _Tp(0UL), | |
_Tp(43867UL) / _Tp(798UL), _Tp(0UL), | |
-_Tp(174611) / _Tp(330UL), _Tp(0UL), | |
_Tp(854513UL) / _Tp(138UL), _Tp(0UL), | |
-_Tp(236364091UL) / _Tp(2730UL), _Tp(0UL), | |
_Tp(8553103UL) / _Tp(6UL), _Tp(0UL) | |
}; | |
if (__n == 0) | |
return _Tp(1); | |
if (__n == 1) | |
return -_Tp(1) / _Tp(2); | |
if (__n % 2 == 1) | |
return _Tp(0); | |
if (__n < 28) | |
return __num[__n]; | |
_Tp __fact = _Tp(1); | |
if ((__n / 2) % 2 == 0) | |
__fact *= _Tp(-1); | |
for (unsigned int __k = 1; __k <= __n; ++__k) | |
__fact *= __k / (_Tp(2) * __numeric_constants<_Tp>::__pi()); | |
__fact *= _Tp(2); | |
_Tp __sum = _Tp(0); | |
for (unsigned int __i = 1; __i < 1000; ++__i) | |
{ | |
_Tp __term = std::pow(_Tp(__i), -_Tp(__n)); | |
if (__term < std::numeric_limits<_Tp>::epsilon()) | |
break; | |
__sum += __term; | |
} | |
return __fact * __sum; | |
} | |
# 139 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/gamma.tcc" 3 | |
template<typename _Tp> | |
inline _Tp | |
__bernoulli(int __n) | |
{ return __bernoulli_series<_Tp>(__n); } | |
# 153 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/gamma.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__log_gamma_bernoulli(_Tp __x) | |
{ | |
_Tp __lg = (__x - _Tp(0.5L)) * std::log(__x) - __x | |
+ _Tp(0.5L) * std::log(_Tp(2) | |
* __numeric_constants<_Tp>::__pi()); | |
const _Tp __xx = __x * __x; | |
_Tp __help = _Tp(1) / __x; | |
for ( unsigned int __i = 1; __i < 20; ++__i ) | |
{ | |
const _Tp __2i = _Tp(2 * __i); | |
__help /= __2i * (__2i - _Tp(1)) * __xx; | |
__lg += __bernoulli<_Tp>(2 * __i) * __help; | |
} | |
return __lg; | |
} | |
# 181 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/gamma.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__log_gamma_lanczos(_Tp __x) | |
{ | |
const _Tp __xm1 = __x - _Tp(1); | |
static const _Tp __lanczos_cheb_7[9] = { | |
_Tp( 0.99999999999980993227684700473478L), | |
_Tp( 676.520368121885098567009190444019L), | |
_Tp(-1259.13921672240287047156078755283L), | |
_Tp( 771.3234287776530788486528258894L), | |
_Tp(-176.61502916214059906584551354L), | |
_Tp( 12.507343278686904814458936853L), | |
_Tp(-0.13857109526572011689554707L), | |
_Tp( 9.984369578019570859563e-6L), | |
_Tp( 1.50563273514931155834e-7L) | |
}; | |
static const _Tp __LOGROOT2PI | |
= _Tp(0.9189385332046727417803297364056176L); | |
_Tp __sum = __lanczos_cheb_7[0]; | |
for(unsigned int __k = 1; __k < 9; ++__k) | |
__sum += __lanczos_cheb_7[__k] / (__xm1 + __k); | |
const _Tp __term1 = (__xm1 + _Tp(0.5L)) | |
* std::log((__xm1 + _Tp(7.5L)) | |
/ __numeric_constants<_Tp>::__euler()); | |
const _Tp __term2 = __LOGROOT2PI + std::log(__sum); | |
const _Tp __result = __term1 + (__term2 - _Tp(7)); | |
return __result; | |
} | |
# 225 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/gamma.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__log_gamma(_Tp __x) | |
{ | |
if (__x > _Tp(0.5L)) | |
return __log_gamma_lanczos(__x); | |
else | |
{ | |
const _Tp __sin_fact | |
= std::abs(std::sin(__numeric_constants<_Tp>::__pi() * __x)); | |
if (__sin_fact == _Tp(0)) | |
std::__throw_domain_error(("Argument is nonpositive integer " "in __log_gamma") | |
); | |
return __numeric_constants<_Tp>::__lnpi() | |
- std::log(__sin_fact) | |
- __log_gamma_lanczos(_Tp(1) - __x); | |
} | |
} | |
# 252 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/gamma.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__log_gamma_sign(_Tp __x) | |
{ | |
if (__x > _Tp(0)) | |
return _Tp(1); | |
else | |
{ | |
const _Tp __sin_fact | |
= std::sin(__numeric_constants<_Tp>::__pi() * __x); | |
if (__sin_fact > _Tp(0)) | |
return (1); | |
else if (__sin_fact < _Tp(0)) | |
return -_Tp(1); | |
else | |
return _Tp(0); | |
} | |
} | |
# 283 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/gamma.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__log_bincoef(unsigned int __n, unsigned int __k) | |
{ | |
static const _Tp __max_bincoeff | |
= std::numeric_limits<_Tp>::max_exponent10 | |
* std::log(_Tp(10)) - _Tp(1); | |
_Tp __coeff = ::std::lgamma(_Tp(1 + __n)) | |
- ::std::lgamma(_Tp(1 + __k)) | |
- ::std::lgamma(_Tp(1 + __n - __k)); | |
} | |
# 314 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/gamma.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__bincoef(unsigned int __n, unsigned int __k) | |
{ | |
static const _Tp __max_bincoeff | |
= std::numeric_limits<_Tp>::max_exponent10 | |
* std::log(_Tp(10)) - _Tp(1); | |
const _Tp __log_coeff = __log_bincoef<_Tp>(__n, __k); | |
if (__log_coeff > __max_bincoeff) | |
return std::numeric_limits<_Tp>::quiet_NaN(); | |
else | |
return std::exp(__log_coeff); | |
} | |
# 337 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/gamma.tcc" 3 | |
template<typename _Tp> | |
inline _Tp | |
__gamma(_Tp __x) | |
{ return std::exp(__log_gamma(__x)); } | |
# 356 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/gamma.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__psi_series(_Tp __x) | |
{ | |
_Tp __sum = -__numeric_constants<_Tp>::__gamma_e() - _Tp(1) / __x; | |
const unsigned int __max_iter = 100000; | |
for (unsigned int __k = 1; __k < __max_iter; ++__k) | |
{ | |
const _Tp __term = __x / (__k * (__k + __x)); | |
__sum += __term; | |
if (std::abs(__term / __sum) < std::numeric_limits<_Tp>::epsilon()) | |
break; | |
} | |
return __sum; | |
} | |
# 386 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/gamma.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__psi_asymp(_Tp __x) | |
{ | |
_Tp __sum = std::log(__x) - _Tp(0.5L) / __x; | |
const _Tp __xx = __x * __x; | |
_Tp __xp = __xx; | |
const unsigned int __max_iter = 100; | |
for (unsigned int __k = 1; __k < __max_iter; ++__k) | |
{ | |
const _Tp __term = __bernoulli<_Tp>(2 * __k) / (2 * __k * __xp); | |
__sum -= __term; | |
if (std::abs(__term / __sum) < std::numeric_limits<_Tp>::epsilon()) | |
break; | |
__xp *= __xx; | |
} | |
return __sum; | |
} | |
# 417 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/gamma.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__psi(_Tp __x) | |
{ | |
const int __n = static_cast<int>(__x + 0.5L); | |
const _Tp __eps = _Tp(4) * std::numeric_limits<_Tp>::epsilon(); | |
if (__n <= 0 && std::abs(__x - _Tp(__n)) < __eps) | |
return std::numeric_limits<_Tp>::quiet_NaN(); | |
else if (__x < _Tp(0)) | |
{ | |
const _Tp __pi = __numeric_constants<_Tp>::__pi(); | |
return __psi(_Tp(1) - __x) | |
- __pi * std::cos(__pi * __x) / std::sin(__pi * __x); | |
} | |
else if (__x > _Tp(100)) | |
return __psi_asymp(__x); | |
else | |
return __psi_series(__x); | |
} | |
# 446 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/gamma.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__psi(unsigned int __n, _Tp __x) | |
{ | |
if (__x <= _Tp(0)) | |
std::__throw_domain_error(("Argument out of range " "in __psi") | |
); | |
else if (__n == 0) | |
return __psi(__x); | |
else | |
{ | |
const _Tp __hzeta = __hurwitz_zeta(_Tp(__n + 1), __x); | |
const _Tp __ln_nfact = ::std::lgamma(_Tp(__n + 1)); | |
_Tp __result = std::exp(__ln_nfact) * __hzeta; | |
if (__n % 2 == 1) | |
__result = -__result; | |
return __result; | |
} | |
} | |
} | |
} | |
# 48 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/specfun.h" 2 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/bessel_function.tcc" 1 3 | |
# 55 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/bessel_function.tcc" 3 | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
# 71 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/bessel_function.tcc" 3 | |
namespace __detail | |
{ | |
# 98 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/bessel_function.tcc" 3 | |
template <typename _Tp> | |
void | |
__gamma_temme(_Tp __mu, | |
_Tp & __gam1, _Tp & __gam2, _Tp & __gampl, _Tp & __gammi) | |
{ | |
__gampl = _Tp(1) / ::std::tgamma(_Tp(1) + __mu); | |
__gammi = _Tp(1) / ::std::tgamma(_Tp(1) - __mu); | |
if (std::abs(__mu) < std::numeric_limits<_Tp>::epsilon()) | |
__gam1 = -_Tp(__numeric_constants<_Tp>::__gamma_e()); | |
else | |
__gam1 = (__gammi - __gampl) / (_Tp(2) * __mu); | |
__gam2 = (__gammi + __gampl) / (_Tp(2)); | |
return; | |
} | |
# 136 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/bessel_function.tcc" 3 | |
template <typename _Tp> | |
void | |
__bessel_jn(_Tp __nu, _Tp __x, | |
_Tp & __Jnu, _Tp & __Nnu, _Tp & __Jpnu, _Tp & __Npnu) | |
{ | |
if (__x == _Tp(0)) | |
{ | |
if (__nu == _Tp(0)) | |
{ | |
__Jnu = _Tp(1); | |
__Jpnu = _Tp(0); | |
} | |
else if (__nu == _Tp(1)) | |
{ | |
__Jnu = _Tp(0); | |
__Jpnu = _Tp(0.5L); | |
} | |
else | |
{ | |
__Jnu = _Tp(0); | |
__Jpnu = _Tp(0); | |
} | |
__Nnu = -std::numeric_limits<_Tp>::infinity(); | |
__Npnu = std::numeric_limits<_Tp>::infinity(); | |
return; | |
} | |
const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); | |
const _Tp __fp_min = std::sqrt(std::numeric_limits<_Tp>::min()); | |
const int __max_iter = 15000; | |
const _Tp __x_min = _Tp(2); | |
const int __nl = (__x < __x_min | |
? static_cast<int>(__nu + _Tp(0.5L)) | |
: std::max(0, static_cast<int>(__nu - __x + _Tp(1.5L)))); | |
const _Tp __mu = __nu - __nl; | |
const _Tp __mu2 = __mu * __mu; | |
const _Tp __xi = _Tp(1) / __x; | |
const _Tp __xi2 = _Tp(2) * __xi; | |
_Tp __w = __xi2 / __numeric_constants<_Tp>::__pi(); | |
int __isign = 1; | |
_Tp __h = __nu * __xi; | |
if (__h < __fp_min) | |
__h = __fp_min; | |
_Tp __b = __xi2 * __nu; | |
_Tp __d = _Tp(0); | |
_Tp __c = __h; | |
int __i; | |
for (__i = 1; __i <= __max_iter; ++__i) | |
{ | |
__b += __xi2; | |
__d = __b - __d; | |
if (std::abs(__d) < __fp_min) | |
__d = __fp_min; | |
__c = __b - _Tp(1) / __c; | |
if (std::abs(__c) < __fp_min) | |
__c = __fp_min; | |
__d = _Tp(1) / __d; | |
const _Tp __del = __c * __d; | |
__h *= __del; | |
if (__d < _Tp(0)) | |
__isign = -__isign; | |
if (std::abs(__del - _Tp(1)) < __eps) | |
break; | |
} | |
if (__i > __max_iter) | |
std::__throw_runtime_error(("Argument x too large in __bessel_jn; " "try asymptotic expansion.") | |
); | |
_Tp __Jnul = __isign * __fp_min; | |
_Tp __Jpnul = __h * __Jnul; | |
_Tp __Jnul1 = __Jnul; | |
_Tp __Jpnu1 = __Jpnul; | |
_Tp __fact = __nu * __xi; | |
for ( int __l = __nl; __l >= 1; --__l ) | |
{ | |
const _Tp __Jnutemp = __fact * __Jnul + __Jpnul; | |
__fact -= __xi; | |
__Jpnul = __fact * __Jnutemp - __Jnul; | |
__Jnul = __Jnutemp; | |
} | |
if (__Jnul == _Tp(0)) | |
__Jnul = __eps; | |
_Tp __f= __Jpnul / __Jnul; | |
_Tp __Nmu, __Nnu1, __Npmu, __Jmu; | |
if (__x < __x_min) | |
{ | |
const _Tp __x2 = __x / _Tp(2); | |
const _Tp __pimu = __numeric_constants<_Tp>::__pi() * __mu; | |
_Tp __fact = (std::abs(__pimu) < __eps | |
? _Tp(1) : __pimu / std::sin(__pimu)); | |
_Tp __d = -std::log(__x2); | |
_Tp __e = __mu * __d; | |
_Tp __fact2 = (std::abs(__e) < __eps | |
? _Tp(1) : std::sinh(__e) / __e); | |
_Tp __gam1, __gam2, __gampl, __gammi; | |
__gamma_temme(__mu, __gam1, __gam2, __gampl, __gammi); | |
_Tp __ff = (_Tp(2) / __numeric_constants<_Tp>::__pi()) | |
* __fact * (__gam1 * std::cosh(__e) + __gam2 * __fact2 * __d); | |
__e = std::exp(__e); | |
_Tp __p = __e / (__numeric_constants<_Tp>::__pi() * __gampl); | |
_Tp __q = _Tp(1) / (__e * __numeric_constants<_Tp>::__pi() * __gammi); | |
const _Tp __pimu2 = __pimu / _Tp(2); | |
_Tp __fact3 = (std::abs(__pimu2) < __eps | |
? _Tp(1) : std::sin(__pimu2) / __pimu2 ); | |
_Tp __r = __numeric_constants<_Tp>::__pi() * __pimu2 * __fact3 * __fact3; | |
_Tp __c = _Tp(1); | |
__d = -__x2 * __x2; | |
_Tp __sum = __ff + __r * __q; | |
_Tp __sum1 = __p; | |
for (__i = 1; __i <= __max_iter; ++__i) | |
{ | |
__ff = (__i * __ff + __p + __q) / (__i * __i - __mu2); | |
__c *= __d / _Tp(__i); | |
__p /= _Tp(__i) - __mu; | |
__q /= _Tp(__i) + __mu; | |
const _Tp __del = __c * (__ff + __r * __q); | |
__sum += __del; | |
const _Tp __del1 = __c * __p - __i * __del; | |
__sum1 += __del1; | |
if ( std::abs(__del) < __eps * (_Tp(1) + std::abs(__sum)) ) | |
break; | |
} | |
if ( __i > __max_iter ) | |
std::__throw_runtime_error(("Bessel y series failed to converge " "in __bessel_jn.") | |
); | |
__Nmu = -__sum; | |
__Nnu1 = -__sum1 * __xi2; | |
__Npmu = __mu * __xi * __Nmu - __Nnu1; | |
__Jmu = __w / (__Npmu - __f * __Nmu); | |
} | |
else | |
{ | |
_Tp __a = _Tp(0.25L) - __mu2; | |
_Tp __q = _Tp(1); | |
_Tp __p = -__xi / _Tp(2); | |
_Tp __br = _Tp(2) * __x; | |
_Tp __bi = _Tp(2); | |
_Tp __fact = __a * __xi / (__p * __p + __q * __q); | |
_Tp __cr = __br + __q * __fact; | |
_Tp __ci = __bi + __p * __fact; | |
_Tp __den = __br * __br + __bi * __bi; | |
_Tp __dr = __br / __den; | |
_Tp __di = -__bi / __den; | |
_Tp __dlr = __cr * __dr - __ci * __di; | |
_Tp __dli = __cr * __di + __ci * __dr; | |
_Tp __temp = __p * __dlr - __q * __dli; | |
__q = __p * __dli + __q * __dlr; | |
__p = __temp; | |
int __i; | |
for (__i = 2; __i <= __max_iter; ++__i) | |
{ | |
__a += _Tp(2 * (__i - 1)); | |
__bi += _Tp(2); | |
__dr = __a * __dr + __br; | |
__di = __a * __di + __bi; | |
if (std::abs(__dr) + std::abs(__di) < __fp_min) | |
__dr = __fp_min; | |
__fact = __a / (__cr * __cr + __ci * __ci); | |
__cr = __br + __cr * __fact; | |
__ci = __bi - __ci * __fact; | |
if (std::abs(__cr) + std::abs(__ci) < __fp_min) | |
__cr = __fp_min; | |
__den = __dr * __dr + __di * __di; | |
__dr /= __den; | |
__di /= -__den; | |
__dlr = __cr * __dr - __ci * __di; | |
__dli = __cr * __di + __ci * __dr; | |
__temp = __p * __dlr - __q * __dli; | |
__q = __p * __dli + __q * __dlr; | |
__p = __temp; | |
if (std::abs(__dlr - _Tp(1)) + std::abs(__dli) < __eps) | |
break; | |
} | |
if (__i > __max_iter) | |
std::__throw_runtime_error(("Lentz's method failed " "in __bessel_jn.") | |
); | |
const _Tp __gam = (__p - __f) / __q; | |
__Jmu = std::sqrt(__w / ((__p - __f) * __gam + __q)); | |
__Jmu = ::std::copysign(__Jmu, __Jnul); | |
__Nmu = __gam * __Jmu; | |
__Npmu = (__p + __q / __gam) * __Nmu; | |
__Nnu1 = __mu * __xi * __Nmu - __Npmu; | |
} | |
__fact = __Jmu / __Jnul; | |
__Jnu = __fact * __Jnul1; | |
__Jpnu = __fact * __Jpnu1; | |
for (__i = 1; __i <= __nl; ++__i) | |
{ | |
const _Tp __Nnutemp = (__mu + __i) * __xi2 * __Nnu1 - __Nmu; | |
__Nmu = __Nnu1; | |
__Nnu1 = __Nnutemp; | |
} | |
__Nnu = __Nmu; | |
__Npnu = __nu * __xi * __Nmu - __Nnu1; | |
return; | |
} | |
# 361 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/bessel_function.tcc" 3 | |
template <typename _Tp> | |
void | |
__cyl_bessel_jn_asymp(_Tp __nu, _Tp __x, _Tp & __Jnu, _Tp & __Nnu) | |
{ | |
const _Tp __mu = _Tp(4) * __nu * __nu; | |
const _Tp __8x = _Tp(8) * __x; | |
_Tp __P = _Tp(0); | |
_Tp __Q = _Tp(0); | |
_Tp __k = _Tp(0); | |
_Tp __term = _Tp(1); | |
int __epsP = 0; | |
int __epsQ = 0; | |
_Tp __eps = std::numeric_limits<_Tp>::epsilon(); | |
do | |
{ | |
__term *= (__k == 0 | |
? _Tp(1) | |
: -(__mu - (2 * __k - 1) * (2 * __k - 1)) / (__k * __8x)); | |
__epsP = std::abs(__term) < __eps * std::abs(__P); | |
__P += __term; | |
__k++; | |
__term *= (__mu - (2 * __k - 1) * (2 * __k - 1)) / (__k * __8x); | |
__epsQ = std::abs(__term) < __eps * std::abs(__Q); | |
__Q += __term; | |
if (__epsP && __epsQ && __k > (__nu / 2.)) | |
break; | |
__k++; | |
} | |
while (__k < 1000); | |
const _Tp __chi = __x - (__nu + _Tp(0.5L)) | |
* __numeric_constants<_Tp>::__pi_2(); | |
const _Tp __c = std::cos(__chi); | |
const _Tp __s = std::sin(__chi); | |
const _Tp __coef = std::sqrt(_Tp(2) | |
/ (__numeric_constants<_Tp>::__pi() * __x)); | |
__Jnu = __coef * (__c * __P - __s * __Q); | |
__Nnu = __coef * (__s * __P + __c * __Q); | |
return; | |
} | |
# 444 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/bessel_function.tcc" 3 | |
template <typename _Tp> | |
_Tp | |
__cyl_bessel_ij_series(_Tp __nu, _Tp __x, _Tp __sgn, | |
unsigned int __max_iter) | |
{ | |
if (__x == _Tp(0)) | |
return __nu == _Tp(0) ? _Tp(1) : _Tp(0); | |
const _Tp __x2 = __x / _Tp(2); | |
_Tp __fact = __nu * std::log(__x2); | |
__fact -= ::std::lgamma(__nu + _Tp(1)); | |
__fact = std::exp(__fact); | |
const _Tp __xx4 = __sgn * __x2 * __x2; | |
_Tp __Jn = _Tp(1); | |
_Tp __term = _Tp(1); | |
for (unsigned int __i = 1; __i < __max_iter; ++__i) | |
{ | |
__term *= __xx4 / (_Tp(__i) * (__nu + _Tp(__i))); | |
__Jn += __term; | |
if (std::abs(__term / __Jn) < std::numeric_limits<_Tp>::epsilon()) | |
break; | |
} | |
return __fact * __Jn; | |
} | |
# 490 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/bessel_function.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__cyl_bessel_j(_Tp __nu, _Tp __x) | |
{ | |
if (__nu < _Tp(0) || __x < _Tp(0)) | |
std::__throw_domain_error(("Bad argument " "in __cyl_bessel_j.") | |
); | |
else if (__isnan(__nu) || __isnan(__x)) | |
return std::numeric_limits<_Tp>::quiet_NaN(); | |
else if (__x * __x < _Tp(10) * (__nu + _Tp(1))) | |
return __cyl_bessel_ij_series(__nu, __x, -_Tp(1), 200); | |
else if (__x > _Tp(1000)) | |
{ | |
_Tp __J_nu, __N_nu; | |
__cyl_bessel_jn_asymp(__nu, __x, __J_nu, __N_nu); | |
return __J_nu; | |
} | |
else | |
{ | |
_Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; | |
__bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); | |
return __J_nu; | |
} | |
} | |
# 532 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/bessel_function.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__cyl_neumann_n(_Tp __nu, _Tp __x) | |
{ | |
if (__nu < _Tp(0) || __x < _Tp(0)) | |
std::__throw_domain_error(("Bad argument " "in __cyl_neumann_n.") | |
); | |
else if (__isnan(__nu) || __isnan(__x)) | |
return std::numeric_limits<_Tp>::quiet_NaN(); | |
else if (__x > _Tp(1000)) | |
{ | |
_Tp __J_nu, __N_nu; | |
__cyl_bessel_jn_asymp(__nu, __x, __J_nu, __N_nu); | |
return __N_nu; | |
} | |
else | |
{ | |
_Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; | |
__bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); | |
return __N_nu; | |
} | |
} | |
# 569 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/bessel_function.tcc" 3 | |
template <typename _Tp> | |
void | |
__sph_bessel_jn(unsigned int __n, _Tp __x, | |
_Tp & __j_n, _Tp & __n_n, _Tp & __jp_n, _Tp & __np_n) | |
{ | |
const _Tp __nu = _Tp(__n) + _Tp(0.5L); | |
_Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; | |
__bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); | |
const _Tp __factor = __numeric_constants<_Tp>::__sqrtpio2() | |
/ std::sqrt(__x); | |
__j_n = __factor * __J_nu; | |
__n_n = __factor * __N_nu; | |
__jp_n = __factor * __Jp_nu - __j_n / (_Tp(2) * __x); | |
__np_n = __factor * __Np_nu - __n_n / (_Tp(2) * __x); | |
return; | |
} | |
# 604 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/bessel_function.tcc" 3 | |
template <typename _Tp> | |
_Tp | |
__sph_bessel(unsigned int __n, _Tp __x) | |
{ | |
if (__x < _Tp(0)) | |
std::__throw_domain_error(("Bad argument " "in __sph_bessel.") | |
); | |
else if (__isnan(__x)) | |
return std::numeric_limits<_Tp>::quiet_NaN(); | |
else if (__x == _Tp(0)) | |
{ | |
if (__n == 0) | |
return _Tp(1); | |
else | |
return _Tp(0); | |
} | |
else | |
{ | |
_Tp __j_n, __n_n, __jp_n, __np_n; | |
__sph_bessel_jn(__n, __x, __j_n, __n_n, __jp_n, __np_n); | |
return __j_n; | |
} | |
} | |
# 642 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/bessel_function.tcc" 3 | |
template <typename _Tp> | |
_Tp | |
__sph_neumann(unsigned int __n, _Tp __x) | |
{ | |
if (__x < _Tp(0)) | |
std::__throw_domain_error(("Bad argument " "in __sph_neumann.") | |
); | |
else if (__isnan(__x)) | |
return std::numeric_limits<_Tp>::quiet_NaN(); | |
else if (__x == _Tp(0)) | |
return -std::numeric_limits<_Tp>::infinity(); | |
else | |
{ | |
_Tp __j_n, __n_n, __jp_n, __np_n; | |
__sph_bessel_jn(__n, __x, __j_n, __n_n, __jp_n, __np_n); | |
return __n_n; | |
} | |
} | |
} | |
} | |
# 49 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/specfun.h" 2 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/beta_function.tcc" 1 3 | |
# 49 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/beta_function.tcc" 3 | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
# 65 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/beta_function.tcc" 3 | |
namespace __detail | |
{ | |
# 79 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/beta_function.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__beta_gamma(_Tp __x, _Tp __y) | |
{ | |
_Tp __bet; | |
if (__x > __y) | |
{ | |
__bet = ::std::tgamma(__x) | |
/ ::std::tgamma(__x + __y); | |
__bet *= ::std::tgamma(__y); | |
} | |
else | |
{ | |
__bet = ::std::tgamma(__y) | |
/ ::std::tgamma(__x + __y); | |
__bet *= ::std::tgamma(__x); | |
} | |
# 111 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/beta_function.tcc" 3 | |
return __bet; | |
} | |
# 127 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/beta_function.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__beta_lgamma(_Tp __x, _Tp __y) | |
{ | |
_Tp __bet = ::std::lgamma(__x) | |
+ ::std::lgamma(__y) | |
- ::std::lgamma(__x + __y); | |
__bet = std::exp(__bet); | |
return __bet; | |
} | |
# 158 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/beta_function.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__beta_product(_Tp __x, _Tp __y) | |
{ | |
_Tp __bet = (__x + __y) / (__x * __y); | |
unsigned int __max_iter = 1000000; | |
for (unsigned int __k = 1; __k < __max_iter; ++__k) | |
{ | |
_Tp __term = (_Tp(1) + (__x + __y) / __k) | |
/ ((_Tp(1) + __x / __k) * (_Tp(1) + __y / __k)); | |
__bet *= __term; | |
} | |
return __bet; | |
} | |
# 189 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/beta_function.tcc" 3 | |
template<typename _Tp> | |
inline _Tp | |
__beta(_Tp __x, _Tp __y) | |
{ | |
if (__isnan(__x) || __isnan(__y)) | |
return std::numeric_limits<_Tp>::quiet_NaN(); | |
else | |
return __beta_lgamma(__x, __y); | |
} | |
} | |
} | |
# 50 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/specfun.h" 2 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/ell_integral.tcc" 1 3 | |
# 45 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/ell_integral.tcc" 3 | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
# 59 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/ell_integral.tcc" 3 | |
namespace __detail | |
{ | |
# 76 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/ell_integral.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__ellint_rf(_Tp __x, _Tp __y, _Tp __z) | |
{ | |
const _Tp __min = std::numeric_limits<_Tp>::min(); | |
const _Tp __lolim = _Tp(5) * __min; | |
if (__x < _Tp(0) || __y < _Tp(0) || __z < _Tp(0)) | |
std::__throw_domain_error(("Argument less than zero " "in __ellint_rf.") | |
); | |
else if (__x + __y < __lolim || __x + __z < __lolim | |
|| __y + __z < __lolim) | |
std::__throw_domain_error(("Argument too small in __ellint_rf")); | |
else | |
{ | |
const _Tp __c0 = _Tp(1) / _Tp(4); | |
const _Tp __c1 = _Tp(1) / _Tp(24); | |
const _Tp __c2 = _Tp(1) / _Tp(10); | |
const _Tp __c3 = _Tp(3) / _Tp(44); | |
const _Tp __c4 = _Tp(1) / _Tp(14); | |
_Tp __xn = __x; | |
_Tp __yn = __y; | |
_Tp __zn = __z; | |
const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); | |
const _Tp __errtol = std::pow(__eps, _Tp(1) / _Tp(6)); | |
_Tp __mu; | |
_Tp __xndev, __yndev, __zndev; | |
const unsigned int __max_iter = 100; | |
for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) | |
{ | |
__mu = (__xn + __yn + __zn) / _Tp(3); | |
__xndev = 2 - (__mu + __xn) / __mu; | |
__yndev = 2 - (__mu + __yn) / __mu; | |
__zndev = 2 - (__mu + __zn) / __mu; | |
_Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); | |
__epsilon = std::max(__epsilon, std::abs(__zndev)); | |
if (__epsilon < __errtol) | |
break; | |
const _Tp __xnroot = std::sqrt(__xn); | |
const _Tp __ynroot = std::sqrt(__yn); | |
const _Tp __znroot = std::sqrt(__zn); | |
const _Tp __lambda = __xnroot * (__ynroot + __znroot) | |
+ __ynroot * __znroot; | |
__xn = __c0 * (__xn + __lambda); | |
__yn = __c0 * (__yn + __lambda); | |
__zn = __c0 * (__zn + __lambda); | |
} | |
const _Tp __e2 = __xndev * __yndev - __zndev * __zndev; | |
const _Tp __e3 = __xndev * __yndev * __zndev; | |
const _Tp __s = _Tp(1) + (__c1 * __e2 - __c2 - __c3 * __e3) * __e2 | |
+ __c4 * __e3; | |
return __s / std::sqrt(__mu); | |
} | |
} | |
# 153 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/ell_integral.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__comp_ellint_1_series(_Tp __k) | |
{ | |
const _Tp __kk = __k * __k; | |
_Tp __term = __kk / _Tp(4); | |
_Tp __sum = _Tp(1) + __term; | |
const unsigned int __max_iter = 1000; | |
for (unsigned int __i = 2; __i < __max_iter; ++__i) | |
{ | |
__term *= (2 * __i - 1) * __kk / (2 * __i); | |
if (__term < std::numeric_limits<_Tp>::epsilon()) | |
break; | |
__sum += __term; | |
} | |
return __numeric_constants<_Tp>::__pi_2() * __sum; | |
} | |
# 191 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/ell_integral.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__comp_ellint_1(_Tp __k) | |
{ | |
if (__isnan(__k)) | |
return std::numeric_limits<_Tp>::quiet_NaN(); | |
else if (std::abs(__k) >= _Tp(1)) | |
return std::numeric_limits<_Tp>::quiet_NaN(); | |
else | |
return __ellint_rf(_Tp(0), _Tp(1) - __k * __k, _Tp(1)); | |
} | |
# 219 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/ell_integral.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__ellint_1(_Tp __k, _Tp __phi) | |
{ | |
if (__isnan(__k) || __isnan(__phi)) | |
return std::numeric_limits<_Tp>::quiet_NaN(); | |
else if (std::abs(__k) > _Tp(1)) | |
std::__throw_domain_error(("Bad argument in __ellint_1.")); | |
else | |
{ | |
const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() | |
+ _Tp(0.5L)); | |
const _Tp __phi_red = __phi | |
- __n * __numeric_constants<_Tp>::__pi(); | |
const _Tp __s = std::sin(__phi_red); | |
const _Tp __c = std::cos(__phi_red); | |
const _Tp __F = __s | |
* __ellint_rf(__c * __c, | |
_Tp(1) - __k * __k * __s * __s, _Tp(1)); | |
if (__n == 0) | |
return __F; | |
else | |
return __F + _Tp(2) * __n * __comp_ellint_1(__k); | |
} | |
} | |
# 266 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/ell_integral.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__comp_ellint_2_series(_Tp __k) | |
{ | |
const _Tp __kk = __k * __k; | |
_Tp __term = __kk; | |
_Tp __sum = __term; | |
const unsigned int __max_iter = 1000; | |
for (unsigned int __i = 2; __i < __max_iter; ++__i) | |
{ | |
const _Tp __i2m = 2 * __i - 1; | |
const _Tp __i2 = 2 * __i; | |
__term *= __i2m * __i2m * __kk / (__i2 * __i2); | |
if (__term < std::numeric_limits<_Tp>::epsilon()) | |
break; | |
__sum += __term / __i2m; | |
} | |
return __numeric_constants<_Tp>::__pi_2() * (_Tp(1) - __sum); | |
} | |
# 314 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/ell_integral.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__ellint_rd(_Tp __x, _Tp __y, _Tp __z) | |
{ | |
const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); | |
const _Tp __errtol = std::pow(__eps / _Tp(8), _Tp(1) / _Tp(6)); | |
const _Tp __max = std::numeric_limits<_Tp>::max(); | |
const _Tp __lolim = _Tp(2) / std::pow(__max, _Tp(2) / _Tp(3)); | |
if (__x < _Tp(0) || __y < _Tp(0)) | |
std::__throw_domain_error(("Argument less than zero " "in __ellint_rd.") | |
); | |
else if (__x + __y < __lolim || __z < __lolim) | |
std::__throw_domain_error(("Argument too small " "in __ellint_rd.") | |
); | |
else | |
{ | |
const _Tp __c0 = _Tp(1) / _Tp(4); | |
const _Tp __c1 = _Tp(3) / _Tp(14); | |
const _Tp __c2 = _Tp(1) / _Tp(6); | |
const _Tp __c3 = _Tp(9) / _Tp(22); | |
const _Tp __c4 = _Tp(3) / _Tp(26); | |
_Tp __xn = __x; | |
_Tp __yn = __y; | |
_Tp __zn = __z; | |
_Tp __sigma = _Tp(0); | |
_Tp __power4 = _Tp(1); | |
_Tp __mu; | |
_Tp __xndev, __yndev, __zndev; | |
const unsigned int __max_iter = 100; | |
for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) | |
{ | |
__mu = (__xn + __yn + _Tp(3) * __zn) / _Tp(5); | |
__xndev = (__mu - __xn) / __mu; | |
__yndev = (__mu - __yn) / __mu; | |
__zndev = (__mu - __zn) / __mu; | |
_Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); | |
__epsilon = std::max(__epsilon, std::abs(__zndev)); | |
if (__epsilon < __errtol) | |
break; | |
_Tp __xnroot = std::sqrt(__xn); | |
_Tp __ynroot = std::sqrt(__yn); | |
_Tp __znroot = std::sqrt(__zn); | |
_Tp __lambda = __xnroot * (__ynroot + __znroot) | |
+ __ynroot * __znroot; | |
__sigma += __power4 / (__znroot * (__zn + __lambda)); | |
__power4 *= __c0; | |
__xn = __c0 * (__xn + __lambda); | |
__yn = __c0 * (__yn + __lambda); | |
__zn = __c0 * (__zn + __lambda); | |
} | |
_Tp __ea = __xndev * __yndev; | |
_Tp __eb = __zndev * __zndev; | |
_Tp __ec = __ea - __eb; | |
_Tp __ed = __ea - _Tp(6) * __eb; | |
_Tp __ef = __ed + __ec + __ec; | |
_Tp __s1 = __ed * (-__c1 + __c3 * __ed | |
/ _Tp(3) - _Tp(3) * __c4 * __zndev * __ef | |
/ _Tp(2)); | |
_Tp __s2 = __zndev | |
* (__c2 * __ef | |
+ __zndev * (-__c3 * __ec - __zndev * __c4 - __ea)); | |
return _Tp(3) * __sigma + __power4 * (_Tp(1) + __s1 + __s2) | |
/ (__mu * std::sqrt(__mu)); | |
} | |
} | |
# 399 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/ell_integral.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__comp_ellint_2(_Tp __k) | |
{ | |
if (__isnan(__k)) | |
return std::numeric_limits<_Tp>::quiet_NaN(); | |
else if (std::abs(__k) == 1) | |
return _Tp(1); | |
else if (std::abs(__k) > _Tp(1)) | |
std::__throw_domain_error(("Bad argument in __comp_ellint_2.")); | |
else | |
{ | |
const _Tp __kk = __k * __k; | |
return __ellint_rf(_Tp(0), _Tp(1) - __kk, _Tp(1)) | |
- __kk * __ellint_rd(_Tp(0), _Tp(1) - __kk, _Tp(1)) / _Tp(3); | |
} | |
} | |
# 433 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/ell_integral.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__ellint_2(_Tp __k, _Tp __phi) | |
{ | |
if (__isnan(__k) || __isnan(__phi)) | |
return std::numeric_limits<_Tp>::quiet_NaN(); | |
else if (std::abs(__k) > _Tp(1)) | |
std::__throw_domain_error(("Bad argument in __ellint_2.")); | |
else | |
{ | |
const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() | |
+ _Tp(0.5L)); | |
const _Tp __phi_red = __phi | |
- __n * __numeric_constants<_Tp>::__pi(); | |
const _Tp __kk = __k * __k; | |
const _Tp __s = std::sin(__phi_red); | |
const _Tp __ss = __s * __s; | |
const _Tp __sss = __ss * __s; | |
const _Tp __c = std::cos(__phi_red); | |
const _Tp __cc = __c * __c; | |
const _Tp __E = __s | |
* __ellint_rf(__cc, _Tp(1) - __kk * __ss, _Tp(1)) | |
- __kk * __sss | |
* __ellint_rd(__cc, _Tp(1) - __kk * __ss, _Tp(1)) | |
/ _Tp(3); | |
if (__n == 0) | |
return __E; | |
else | |
return __E + _Tp(2) * __n * __comp_ellint_2(__k); | |
} | |
} | |
# 492 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/ell_integral.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__ellint_rc(_Tp __x, _Tp __y) | |
{ | |
const _Tp __min = std::numeric_limits<_Tp>::min(); | |
const _Tp __lolim = _Tp(5) * __min; | |
if (__x < _Tp(0) || __y < _Tp(0) || __x + __y < __lolim) | |
std::__throw_domain_error(("Argument less than zero " "in __ellint_rc.") | |
); | |
else | |
{ | |
const _Tp __c0 = _Tp(1) / _Tp(4); | |
const _Tp __c1 = _Tp(1) / _Tp(7); | |
const _Tp __c2 = _Tp(9) / _Tp(22); | |
const _Tp __c3 = _Tp(3) / _Tp(10); | |
const _Tp __c4 = _Tp(3) / _Tp(8); | |
_Tp __xn = __x; | |
_Tp __yn = __y; | |
const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); | |
const _Tp __errtol = std::pow(__eps / _Tp(30), _Tp(1) / _Tp(6)); | |
_Tp __mu; | |
_Tp __sn; | |
const unsigned int __max_iter = 100; | |
for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) | |
{ | |
__mu = (__xn + _Tp(2) * __yn) / _Tp(3); | |
__sn = (__yn + __mu) / __mu - _Tp(2); | |
if (std::abs(__sn) < __errtol) | |
break; | |
const _Tp __lambda = _Tp(2) * std::sqrt(__xn) * std::sqrt(__yn) | |
+ __yn; | |
__xn = __c0 * (__xn + __lambda); | |
__yn = __c0 * (__yn + __lambda); | |
} | |
_Tp __s = __sn * __sn | |
* (__c3 + __sn*(__c1 + __sn * (__c4 + __sn * __c2))); | |
return (_Tp(1) + __s) / std::sqrt(__mu); | |
} | |
} | |
# 561 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/ell_integral.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__ellint_rj(_Tp __x, _Tp __y, _Tp __z, _Tp __p) | |
{ | |
const _Tp __min = std::numeric_limits<_Tp>::min(); | |
const _Tp __lolim = std::pow(_Tp(5) * __min, _Tp(1)/_Tp(3)); | |
if (__x < _Tp(0) || __y < _Tp(0) || __z < _Tp(0)) | |
std::__throw_domain_error(("Argument less than zero " "in __ellint_rj.") | |
); | |
else if (__x + __y < __lolim || __x + __z < __lolim | |
|| __y + __z < __lolim || __p < __lolim) | |
std::__throw_domain_error(("Argument too small " "in __ellint_rj") | |
); | |
else | |
{ | |
const _Tp __c0 = _Tp(1) / _Tp(4); | |
const _Tp __c1 = _Tp(3) / _Tp(14); | |
const _Tp __c2 = _Tp(1) / _Tp(3); | |
const _Tp __c3 = _Tp(3) / _Tp(22); | |
const _Tp __c4 = _Tp(3) / _Tp(26); | |
_Tp __xn = __x; | |
_Tp __yn = __y; | |
_Tp __zn = __z; | |
_Tp __pn = __p; | |
_Tp __sigma = _Tp(0); | |
_Tp __power4 = _Tp(1); | |
const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); | |
const _Tp __errtol = std::pow(__eps / _Tp(8), _Tp(1) / _Tp(6)); | |
_Tp __mu; | |
_Tp __xndev, __yndev, __zndev, __pndev; | |
const unsigned int __max_iter = 100; | |
for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) | |
{ | |
__mu = (__xn + __yn + __zn + _Tp(2) * __pn) / _Tp(5); | |
__xndev = (__mu - __xn) / __mu; | |
__yndev = (__mu - __yn) / __mu; | |
__zndev = (__mu - __zn) / __mu; | |
__pndev = (__mu - __pn) / __mu; | |
_Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); | |
__epsilon = std::max(__epsilon, std::abs(__zndev)); | |
__epsilon = std::max(__epsilon, std::abs(__pndev)); | |
if (__epsilon < __errtol) | |
break; | |
const _Tp __xnroot = std::sqrt(__xn); | |
const _Tp __ynroot = std::sqrt(__yn); | |
const _Tp __znroot = std::sqrt(__zn); | |
const _Tp __lambda = __xnroot * (__ynroot + __znroot) | |
+ __ynroot * __znroot; | |
const _Tp __alpha1 = __pn * (__xnroot + __ynroot + __znroot) | |
+ __xnroot * __ynroot * __znroot; | |
const _Tp __alpha2 = __alpha1 * __alpha1; | |
const _Tp __beta = __pn * (__pn + __lambda) | |
* (__pn + __lambda); | |
__sigma += __power4 * __ellint_rc(__alpha2, __beta); | |
__power4 *= __c0; | |
__xn = __c0 * (__xn + __lambda); | |
__yn = __c0 * (__yn + __lambda); | |
__zn = __c0 * (__zn + __lambda); | |
__pn = __c0 * (__pn + __lambda); | |
} | |
_Tp __ea = __xndev * (__yndev + __zndev) + __yndev * __zndev; | |
_Tp __eb = __xndev * __yndev * __zndev; | |
_Tp __ec = __pndev * __pndev; | |
_Tp __e2 = __ea - _Tp(3) * __ec; | |
_Tp __e3 = __eb + _Tp(2) * __pndev * (__ea - __ec); | |
_Tp __s1 = _Tp(1) + __e2 * (-__c1 + _Tp(3) * __c3 * __e2 / _Tp(4) | |
- _Tp(3) * __c4 * __e3 / _Tp(2)); | |
_Tp __s2 = __eb * (__c2 / _Tp(2) | |
+ __pndev * (-__c3 - __c3 + __pndev * __c4)); | |
_Tp __s3 = __pndev * __ea * (__c2 - __pndev * __c3) | |
- __c2 * __pndev * __ec; | |
return _Tp(3) * __sigma + __power4 * (__s1 + __s2 + __s3) | |
/ (__mu * std::sqrt(__mu)); | |
} | |
} | |
# 661 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/ell_integral.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__comp_ellint_3(_Tp __k, _Tp __nu) | |
{ | |
if (__isnan(__k) || __isnan(__nu)) | |
return std::numeric_limits<_Tp>::quiet_NaN(); | |
else if (__nu == _Tp(1)) | |
return std::numeric_limits<_Tp>::infinity(); | |
else if (std::abs(__k) > _Tp(1)) | |
std::__throw_domain_error(("Bad argument in __comp_ellint_3.")); | |
else | |
{ | |
const _Tp __kk = __k * __k; | |
return __ellint_rf(_Tp(0), _Tp(1) - __kk, _Tp(1)) | |
+ __nu | |
* __ellint_rj(_Tp(0), _Tp(1) - __kk, _Tp(1), _Tp(1) - __nu) | |
/ _Tp(3); | |
} | |
} | |
# 701 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/ell_integral.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__ellint_3(_Tp __k, _Tp __nu, _Tp __phi) | |
{ | |
if (__isnan(__k) || __isnan(__nu) || __isnan(__phi)) | |
return std::numeric_limits<_Tp>::quiet_NaN(); | |
else if (std::abs(__k) > _Tp(1)) | |
std::__throw_domain_error(("Bad argument in __ellint_3.")); | |
else | |
{ | |
const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() | |
+ _Tp(0.5L)); | |
const _Tp __phi_red = __phi | |
- __n * __numeric_constants<_Tp>::__pi(); | |
const _Tp __kk = __k * __k; | |
const _Tp __s = std::sin(__phi_red); | |
const _Tp __ss = __s * __s; | |
const _Tp __sss = __ss * __s; | |
const _Tp __c = std::cos(__phi_red); | |
const _Tp __cc = __c * __c; | |
const _Tp __Pi = __s | |
* __ellint_rf(__cc, _Tp(1) - __kk * __ss, _Tp(1)) | |
+ __nu * __sss | |
* __ellint_rj(__cc, _Tp(1) - __kk * __ss, _Tp(1), | |
_Tp(1) - __nu * __ss) / _Tp(3); | |
if (__n == 0) | |
return __Pi; | |
else | |
return __Pi + _Tp(2) * __n * __comp_ellint_3(__k, __nu); | |
} | |
} | |
} | |
} | |
# 51 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/specfun.h" 2 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/exp_integral.tcc" 1 3 | |
# 50 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/exp_integral.tcc" 3 | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
# 64 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/exp_integral.tcc" 3 | |
namespace __detail | |
{ | |
template<typename _Tp> _Tp __expint_E1(_Tp); | |
# 81 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/exp_integral.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__expint_E1_series(_Tp __x) | |
{ | |
const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); | |
_Tp __term = _Tp(1); | |
_Tp __esum = _Tp(0); | |
_Tp __osum = _Tp(0); | |
const unsigned int __max_iter = 1000; | |
for (unsigned int __i = 1; __i < __max_iter; ++__i) | |
{ | |
__term *= - __x / __i; | |
if (std::abs(__term) < __eps) | |
break; | |
if (__term >= _Tp(0)) | |
__esum += __term / __i; | |
else | |
__osum += __term / __i; | |
} | |
return - __esum - __osum | |
- __numeric_constants<_Tp>::__gamma_e() - std::log(__x); | |
} | |
# 118 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/exp_integral.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__expint_E1_asymp(_Tp __x) | |
{ | |
_Tp __term = _Tp(1); | |
_Tp __esum = _Tp(1); | |
_Tp __osum = _Tp(0); | |
const unsigned int __max_iter = 1000; | |
for (unsigned int __i = 1; __i < __max_iter; ++__i) | |
{ | |
_Tp __prev = __term; | |
__term *= - __i / __x; | |
if (std::abs(__term) > std::abs(__prev)) | |
break; | |
if (__term >= _Tp(0)) | |
__esum += __term; | |
else | |
__osum += __term; | |
} | |
return std::exp(- __x) * (__esum + __osum) / __x; | |
} | |
# 155 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/exp_integral.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__expint_En_series(unsigned int __n, _Tp __x) | |
{ | |
const unsigned int __max_iter = 1000; | |
const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); | |
const int __nm1 = __n - 1; | |
_Tp __ans = (__nm1 != 0 | |
? _Tp(1) / __nm1 : -std::log(__x) | |
- __numeric_constants<_Tp>::__gamma_e()); | |
_Tp __fact = _Tp(1); | |
for (int __i = 1; __i <= __max_iter; ++__i) | |
{ | |
__fact *= -__x / _Tp(__i); | |
_Tp __del; | |
if ( __i != __nm1 ) | |
__del = -__fact / _Tp(__i - __nm1); | |
else | |
{ | |
_Tp __psi = -__numeric_constants<_Tp>::gamma_e(); | |
for (int __ii = 1; __ii <= __nm1; ++__ii) | |
__psi += _Tp(1) / _Tp(__ii); | |
__del = __fact * (__psi - std::log(__x)); | |
} | |
__ans += __del; | |
if (std::abs(__del) < __eps * std::abs(__ans)) | |
return __ans; | |
} | |
std::__throw_runtime_error(("Series summation failed " "in __expint_En_series.") | |
); | |
} | |
# 201 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/exp_integral.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__expint_En_cont_frac(unsigned int __n, _Tp __x) | |
{ | |
const unsigned int __max_iter = 1000; | |
const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); | |
const _Tp __fp_min = std::numeric_limits<_Tp>::min(); | |
const int __nm1 = __n - 1; | |
_Tp __b = __x + _Tp(__n); | |
_Tp __c = _Tp(1) / __fp_min; | |
_Tp __d = _Tp(1) / __b; | |
_Tp __h = __d; | |
for ( unsigned int __i = 1; __i <= __max_iter; ++__i ) | |
{ | |
_Tp __a = -_Tp(__i * (__nm1 + __i)); | |
__b += _Tp(2); | |
__d = _Tp(1) / (__a * __d + __b); | |
__c = __b + __a / __c; | |
const _Tp __del = __c * __d; | |
__h *= __del; | |
if (std::abs(__del - _Tp(1)) < __eps) | |
{ | |
const _Tp __ans = __h * std::exp(-__x); | |
return __ans; | |
} | |
} | |
std::__throw_runtime_error(("Continued fraction failed " "in __expint_En_cont_frac.") | |
); | |
} | |
# 246 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/exp_integral.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__expint_En_recursion(unsigned int __n, _Tp __x) | |
{ | |
_Tp __En; | |
_Tp __E1 = __expint_E1(__x); | |
if (__x < _Tp(__n)) | |
{ | |
__En = __E1; | |
for (unsigned int __j = 2; __j < __n; ++__j) | |
__En = (std::exp(-__x) - __x * __En) / _Tp(__j - 1); | |
} | |
else | |
{ | |
__En = _Tp(1); | |
const int __N = __n + 20; | |
_Tp __save = _Tp(0); | |
for (int __j = __N; __j > 0; --__j) | |
{ | |
__En = (std::exp(-__x) - __j * __En) / __x; | |
if (__j == __n) | |
__save = __En; | |
} | |
_Tp __norm = __En / __E1; | |
__En /= __norm; | |
} | |
return __En; | |
} | |
# 290 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/exp_integral.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__expint_Ei_series(_Tp __x) | |
{ | |
_Tp __term = _Tp(1); | |
_Tp __sum = _Tp(0); | |
const unsigned int __max_iter = 1000; | |
for (unsigned int __i = 1; __i < __max_iter; ++__i) | |
{ | |
__term *= __x / __i; | |
__sum += __term / __i; | |
if (__term < std::numeric_limits<_Tp>::epsilon() * __sum) | |
break; | |
} | |
return __numeric_constants<_Tp>::__gamma_e() + __sum + std::log(__x); | |
} | |
# 321 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/exp_integral.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__expint_Ei_asymp(_Tp __x) | |
{ | |
_Tp __term = _Tp(1); | |
_Tp __sum = _Tp(1); | |
const unsigned int __max_iter = 1000; | |
for (unsigned int __i = 1; __i < __max_iter; ++__i) | |
{ | |
_Tp __prev = __term; | |
__term *= __i / __x; | |
if (__term < std::numeric_limits<_Tp>::epsilon()) | |
break; | |
if (__term >= __prev) | |
break; | |
__sum += __term; | |
} | |
return std::exp(__x) * __sum / __x; | |
} | |
# 354 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/exp_integral.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__expint_Ei(_Tp __x) | |
{ | |
if (__x < _Tp(0)) | |
return -__expint_E1(-__x); | |
else if (__x < -std::log(std::numeric_limits<_Tp>::epsilon())) | |
return __expint_Ei_series(__x); | |
else | |
return __expint_Ei_asymp(__x); | |
} | |
# 378 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/exp_integral.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__expint_E1(_Tp __x) | |
{ | |
if (__x < _Tp(0)) | |
return -__expint_Ei(-__x); | |
else if (__x < _Tp(1)) | |
return __expint_E1_series(__x); | |
else if (__x < _Tp(100)) | |
return __expint_En_cont_frac(1, __x); | |
else | |
return __expint_E1_asymp(__x); | |
} | |
# 408 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/exp_integral.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__expint_asymp(unsigned int __n, _Tp __x) | |
{ | |
_Tp __term = _Tp(1); | |
_Tp __sum = _Tp(1); | |
for (unsigned int __i = 1; __i <= __n; ++__i) | |
{ | |
_Tp __prev = __term; | |
__term *= -(__n - __i + 1) / __x; | |
if (std::abs(__term) > std::abs(__prev)) | |
break; | |
__sum += __term; | |
} | |
return std::exp(-__x) * __sum / __x; | |
} | |
# 442 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/exp_integral.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__expint_large_n(unsigned int __n, _Tp __x) | |
{ | |
const _Tp __xpn = __x + __n; | |
const _Tp __xpn2 = __xpn * __xpn; | |
_Tp __term = _Tp(1); | |
_Tp __sum = _Tp(1); | |
for (unsigned int __i = 1; __i <= __n; ++__i) | |
{ | |
_Tp __prev = __term; | |
__term *= (__n - 2 * (__i - 1) * __x) / __xpn2; | |
if (std::abs(__term) < std::numeric_limits<_Tp>::epsilon()) | |
break; | |
__sum += __term; | |
} | |
return std::exp(-__x) * __sum / __xpn; | |
} | |
# 476 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/exp_integral.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__expint(unsigned int __n, _Tp __x) | |
{ | |
if (__isnan(__x)) | |
return std::numeric_limits<_Tp>::quiet_NaN(); | |
else if (__n <= 1 && __x == _Tp(0)) | |
return std::numeric_limits<_Tp>::infinity(); | |
else | |
{ | |
_Tp __E0 = std::exp(__x) / __x; | |
if (__n == 0) | |
return __E0; | |
_Tp __E1 = __expint_E1(__x); | |
if (__n == 1) | |
return __E1; | |
if (__x == _Tp(0)) | |
return _Tp(1) / static_cast<_Tp>(__n - 1); | |
_Tp __En = __expint_En_recursion(__n, __x); | |
return __En; | |
} | |
} | |
# 516 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/exp_integral.tcc" 3 | |
template<typename _Tp> | |
inline _Tp | |
__expint(_Tp __x) | |
{ | |
if (__isnan(__x)) | |
return std::numeric_limits<_Tp>::quiet_NaN(); | |
else | |
return __expint_Ei(__x); | |
} | |
} | |
} | |
# 52 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/specfun.h" 2 3 | |
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/hypergeometric.tcc" 1 3 | |
# 44 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/hypergeometric.tcc" 3 | |
namespace std __attribute__ ((__visibility__ ("default"))) | |
{ | |
# 60 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/hypergeometric.tcc" 3 | |
namespace __detail | |
{ | |
# 83 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/hypergeometric.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__conf_hyperg_series(_Tp __a, _Tp __c, _Tp __x) | |
{ | |
const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); | |
_Tp __term = _Tp(1); | |
_Tp __Fac = _Tp(1); | |
const unsigned int __max_iter = 100000; | |
unsigned int __i; | |
for (__i = 0; __i < __max_iter; ++__i) | |
{ | |
__term *= (__a + _Tp(__i)) * __x | |
/ ((__c + _Tp(__i)) * _Tp(1 + __i)); | |
if (std::abs(__term) < __eps) | |
{ | |
break; | |
} | |
__Fac += __term; | |
} | |
if (__i == __max_iter) | |
std::__throw_runtime_error(("Series failed to converge " "in __conf_hyperg_series.") | |
); | |
return __Fac; | |
} | |
# 120 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/hypergeometric.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__conf_hyperg_luke(_Tp __a, _Tp __c, _Tp __xin) | |
{ | |
const _Tp __big = std::pow(std::numeric_limits<_Tp>::max(), _Tp(0.16L)); | |
const int __nmax = 20000; | |
const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); | |
const _Tp __x = -__xin; | |
const _Tp __x3 = __x * __x * __x; | |
const _Tp __t0 = __a / __c; | |
const _Tp __t1 = (__a + _Tp(1)) / (_Tp(2) * __c); | |
const _Tp __t2 = (__a + _Tp(2)) / (_Tp(2) * (__c + _Tp(1))); | |
_Tp __F = _Tp(1); | |
_Tp __prec; | |
_Tp __Bnm3 = _Tp(1); | |
_Tp __Bnm2 = _Tp(1) + __t1 * __x; | |
_Tp __Bnm1 = _Tp(1) + __t2 * __x * (_Tp(1) + __t1 / _Tp(3) * __x); | |
_Tp __Anm3 = _Tp(1); | |
_Tp __Anm2 = __Bnm2 - __t0 * __x; | |
_Tp __Anm1 = __Bnm1 - __t0 * (_Tp(1) + __t2 * __x) * __x | |
+ __t0 * __t1 * (__c / (__c + _Tp(1))) * __x * __x; | |
int __n = 3; | |
while(1) | |
{ | |
_Tp __npam1 = _Tp(__n - 1) + __a; | |
_Tp __npcm1 = _Tp(__n - 1) + __c; | |
_Tp __npam2 = _Tp(__n - 2) + __a; | |
_Tp __npcm2 = _Tp(__n - 2) + __c; | |
_Tp __tnm1 = _Tp(2 * __n - 1); | |
_Tp __tnm3 = _Tp(2 * __n - 3); | |
_Tp __tnm5 = _Tp(2 * __n - 5); | |
_Tp __F1 = (_Tp(__n - 2) - __a) / (_Tp(2) * __tnm3 * __npcm1); | |
_Tp __F2 = (_Tp(__n) + __a) * __npam1 | |
/ (_Tp(4) * __tnm1 * __tnm3 * __npcm2 * __npcm1); | |
_Tp __F3 = -__npam2 * __npam1 * (_Tp(__n - 2) - __a) | |
/ (_Tp(8) * __tnm3 * __tnm3 * __tnm5 | |
* (_Tp(__n - 3) + __c) * __npcm2 * __npcm1); | |
_Tp __E = -__npam1 * (_Tp(__n - 1) - __c) | |
/ (_Tp(2) * __tnm3 * __npcm2 * __npcm1); | |
_Tp __An = (_Tp(1) + __F1 * __x) * __Anm1 | |
+ (__E + __F2 * __x) * __x * __Anm2 + __F3 * __x3 * __Anm3; | |
_Tp __Bn = (_Tp(1) + __F1 * __x) * __Bnm1 | |
+ (__E + __F2 * __x) * __x * __Bnm2 + __F3 * __x3 * __Bnm3; | |
_Tp __r = __An / __Bn; | |
__prec = std::abs((__F - __r) / __F); | |
__F = __r; | |
if (__prec < __eps || __n > __nmax) | |
break; | |
if (std::abs(__An) > __big || std::abs(__Bn) > __big) | |
{ | |
__An /= __big; | |
__Bn /= __big; | |
__Anm1 /= __big; | |
__Bnm1 /= __big; | |
__Anm2 /= __big; | |
__Bnm2 /= __big; | |
__Anm3 /= __big; | |
__Bnm3 /= __big; | |
} | |
else if (std::abs(__An) < _Tp(1) / __big | |
|| std::abs(__Bn) < _Tp(1) / __big) | |
{ | |
__An *= __big; | |
__Bn *= __big; | |
__Anm1 *= __big; | |
__Bnm1 *= __big; | |
__Anm2 *= __big; | |
__Bnm2 *= __big; | |
__Anm3 *= __big; | |
__Bnm3 *= __big; | |
} | |
++__n; | |
__Bnm3 = __Bnm2; | |
__Bnm2 = __Bnm1; | |
__Bnm1 = __Bn; | |
__Anm3 = __Anm2; | |
__Anm2 = __Anm1; | |
__Anm1 = __An; | |
} | |
if (__n >= __nmax) | |
std::__throw_runtime_error(("Iteration failed to converge " "in __conf_hyperg_luke.") | |
); | |
return __F; | |
} | |
# 227 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/hypergeometric.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__conf_hyperg(_Tp __a, _Tp __c, _Tp __x) | |
{ | |
const _Tp __c_nint = ::std::nearbyint(__c); | |
if (__isnan(__a) || __isnan(__c) || __isnan(__x)) | |
return std::numeric_limits<_Tp>::quiet_NaN(); | |
else if (__c_nint == __c && __c_nint <= 0) | |
return std::numeric_limits<_Tp>::infinity(); | |
else if (__a == _Tp(0)) | |
return _Tp(1); | |
else if (__c == __a) | |
return std::exp(__x); | |
else if (__x < _Tp(0)) | |
return __conf_hyperg_luke(__a, __c, __x); | |
else | |
return __conf_hyperg_series(__a, __c, __x); | |
} | |
# 271 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/hypergeometric.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__hyperg_series(_Tp __a, _Tp __b, _Tp __c, _Tp __x) | |
{ | |
const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); | |
_Tp __term = _Tp(1); | |
_Tp __Fabc = _Tp(1); | |
const unsigned int __max_iter = 100000; | |
unsigned int __i; | |
for (__i = 0; __i < __max_iter; ++__i) | |
{ | |
__term *= (__a + _Tp(__i)) * (__b + _Tp(__i)) * __x | |
/ ((__c + _Tp(__i)) * _Tp(1 + __i)); | |
if (std::abs(__term) < __eps) | |
{ | |
break; | |
} | |
__Fabc += __term; | |
} | |
if (__i == __max_iter) | |
std::__throw_runtime_error(("Series failed to converge " "in __hyperg_series.") | |
); | |
return __Fabc; | |
} | |
template<typename _Tp> | |
_Tp | |
__hyperg_luke(_Tp __a, _Tp __b, _Tp __c, _Tp __xin) | |
{ | |
const _Tp __big = std::pow(std::numeric_limits<_Tp>::max(), _Tp(0.16L)); | |
const int __nmax = 20000; | |
const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); | |
const _Tp __x = -__xin; | |
const _Tp __x3 = __x * __x * __x; | |
const _Tp __t0 = __a * __b / __c; | |
const _Tp __t1 = (__a + _Tp(1)) * (__b + _Tp(1)) / (_Tp(2) * __c); | |
const _Tp __t2 = (__a + _Tp(2)) * (__b + _Tp(2)) | |
/ (_Tp(2) * (__c + _Tp(1))); | |
_Tp __F = _Tp(1); | |
_Tp __Bnm3 = _Tp(1); | |
_Tp __Bnm2 = _Tp(1) + __t1 * __x; | |
_Tp __Bnm1 = _Tp(1) + __t2 * __x * (_Tp(1) + __t1 / _Tp(3) * __x); | |
_Tp __Anm3 = _Tp(1); | |
_Tp __Anm2 = __Bnm2 - __t0 * __x; | |
_Tp __Anm1 = __Bnm1 - __t0 * (_Tp(1) + __t2 * __x) * __x | |
+ __t0 * __t1 * (__c / (__c + _Tp(1))) * __x * __x; | |
int __n = 3; | |
while (1) | |
{ | |
const _Tp __npam1 = _Tp(__n - 1) + __a; | |
const _Tp __npbm1 = _Tp(__n - 1) + __b; | |
const _Tp __npcm1 = _Tp(__n - 1) + __c; | |
const _Tp __npam2 = _Tp(__n - 2) + __a; | |
const _Tp __npbm2 = _Tp(__n - 2) + __b; | |
const _Tp __npcm2 = _Tp(__n - 2) + __c; | |
const _Tp __tnm1 = _Tp(2 * __n - 1); | |
const _Tp __tnm3 = _Tp(2 * __n - 3); | |
const _Tp __tnm5 = _Tp(2 * __n - 5); | |
const _Tp __n2 = __n * __n; | |
const _Tp __F1 = (_Tp(3) * __n2 + (__a + __b - _Tp(6)) * __n | |
+ _Tp(2) - __a * __b - _Tp(2) * (__a + __b)) | |
/ (_Tp(2) * __tnm3 * __npcm1); | |
const _Tp __F2 = -(_Tp(3) * __n2 - (__a + __b + _Tp(6)) * __n | |
+ _Tp(2) - __a * __b) * __npam1 * __npbm1 | |
/ (_Tp(4) * __tnm1 * __tnm3 * __npcm2 * __npcm1); | |
const _Tp __F3 = (__npam2 * __npam1 * __npbm2 * __npbm1 | |
* (_Tp(__n - 2) - __a) * (_Tp(__n - 2) - __b)) | |
/ (_Tp(8) * __tnm3 * __tnm3 * __tnm5 | |
* (_Tp(__n - 3) + __c) * __npcm2 * __npcm1); | |
const _Tp __E = -__npam1 * __npbm1 * (_Tp(__n - 1) - __c) | |
/ (_Tp(2) * __tnm3 * __npcm2 * __npcm1); | |
_Tp __An = (_Tp(1) + __F1 * __x) * __Anm1 | |
+ (__E + __F2 * __x) * __x * __Anm2 + __F3 * __x3 * __Anm3; | |
_Tp __Bn = (_Tp(1) + __F1 * __x) * __Bnm1 | |
+ (__E + __F2 * __x) * __x * __Bnm2 + __F3 * __x3 * __Bnm3; | |
const _Tp __r = __An / __Bn; | |
const _Tp __prec = std::abs((__F - __r) / __F); | |
__F = __r; | |
if (__prec < __eps || __n > __nmax) | |
break; | |
if (std::abs(__An) > __big || std::abs(__Bn) > __big) | |
{ | |
__An /= __big; | |
__Bn /= __big; | |
__Anm1 /= __big; | |
__Bnm1 /= __big; | |
__Anm2 /= __big; | |
__Bnm2 /= __big; | |
__Anm3 /= __big; | |
__Bnm3 /= __big; | |
} | |
else if (std::abs(__An) < _Tp(1) / __big | |
|| std::abs(__Bn) < _Tp(1) / __big) | |
{ | |
__An *= __big; | |
__Bn *= __big; | |
__Anm1 *= __big; | |
__Bnm1 *= __big; | |
__Anm2 *= __big; | |
__Bnm2 *= __big; | |
__Anm3 *= __big; | |
__Bnm3 *= __big; | |
} | |
++__n; | |
__Bnm3 = __Bnm2; | |
__Bnm2 = __Bnm1; | |
__Bnm1 = __Bn; | |
__Anm3 = __Anm2; | |
__Anm2 = __Anm1; | |
__Anm1 = __An; | |
} | |
if (__n >= __nmax) | |
std::__throw_runtime_error(("Iteration failed to converge " "in __hyperg_luke.") | |
); | |
return __F; | |
} | |
# 438 "/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/tr1/hypergeometric.tcc" 3 | |
template<typename _Tp> | |
_Tp | |
__hyperg_reflect(_Tp __a, _Tp __b, _Tp __c, _Tp __x) | |
{ | |
const _Tp __d = __c - __a - __b; | |
const int __intd = std::floor(__d + _Tp(0.5L)); | |
const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); | |
const _Tp __toler = _Tp(1000) * __eps; | |
const _Tp __log_max = std::log(std::numeric_limits<_Tp>::max()); | |
const bool __d_integer = (std::abs(__d - __intd) < __toler); | |
if (__d_integer) | |
{ | |
const _Tp __ln_omx = std::log(_Tp(1) - __x); | |
const _Tp __ad = std::abs(__d); | |
_Tp __F1, __F2; | |
_Tp __d1, __d2; | |
if (__d >= _Tp(0)) | |
{ | |
__d1 = __d; | |
__d2 = _Tp(0); | |
} | |
else | |
{ | |
__d1 = _Tp(0); | |
__d2 = __d; | |
} | |
const _Tp __lng_c = __log_gamma(__c); | |
if (__ad < __eps) | |
{ | |
__F1 = _Tp(0); | |
} | |
else | |
{ | |
bool __ok_d1 = true; | |
_Tp __lng_ad, __lng_ad1, __lng_bd1; | |
if (true) | |
{ | |
__lng_ad = __log_gamma(__ad); | |
__lng_ad1 = __log_gamma(__a + __d1); | |
__lng_bd1 = __log_gamma(__b + __d1); | |
} | |
if (false) | |
{ | |
__ok_d1 = false; | |
} | |
if (__ok_d1) | |
{ | |
_Tp __sum1 = _Tp(1); | |
_Tp __term = _Tp(1); | |
_Tp __ln_pre1 = __lng_ad + __lng_c + __d2 * __ln_omx | |
- __lng_ad1 - __lng_bd1; | |
for (int __i = 1; __i < __ad; ++__i) | |
{ | |
const int __j = __i - 1; | |
__term *= (__a + __d2 + __j) * (__b + __d2 + __j) | |
/ (_Tp(1) + __d2 + __j) / __i * (_Tp(1) - __x); | |
__sum1 += __term; | |
} | |
if (__ln_pre1 > __log_max) | |
std::__throw_runtime_error(("Overflow of gamma functions" " in __hyperg_luke.") | |
); | |
else | |
__F1 = std::exp(__ln_pre1) * __sum1; | |
} | |
else | |
{ | |
__F1 = _Tp(0); | |
} | |
} | |
bool __ok_d2 = true; | |
_Tp __lng_ad2, __lng_bd2; | |
if (true) | |
{ | |
__lng_ad2 = __log_gamma(__a + __d2); | |
__lng_bd2 = __log_gamma(__b + __d2); | |
} | |
if (false) | |
{ | |
__ok_d2 = false; | |
} | |
if (__ok_d2) | |
{ | |
const int __maxiter = 2000; | |
const _Tp __psi_1 = -__numeric_constants<_Tp>::__gamma_e(); | |
const _Tp __psi_1pd = __psi(_Tp(1) + __ad); | |
const _Tp __psi_apd1 = __psi(__a + __d1); | |
const _Tp __psi_bpd1 = __psi(__b + __d1); | |
_Tp __psi_term = __psi_1 + __psi_1pd - __psi_apd1 | |
- __psi_bpd1 - __ln_omx; | |
_Tp __fact = _Tp(1); | |
_Tp __sum2 = __psi_term; | |
_Tp __ln_pre2 = __lng_c + __d1 * __ln_omx | |
- __lng_ad2 - __lng_bd2; | |
int __j; | |
for (__j = 1; __j < __maxiter; ++__j) | |
{ | |
const _Tp __term1 = _Tp(1) / _Tp(__j) | |
+ _Tp(1) / (__ad + __j); | |
const _Tp __term2 = _Tp(1) / (__a + __d1 + _Tp(__j - 1)) | |
+ _Tp(1) / (__b + __d1 + _Tp(__j - 1)); | |
__psi_term += __term1 - __term2; | |
__fact *= (__a + __d1 + _Tp(__j - 1)) | |
* (__b + __d1 + _Tp(__j - 1)) | |
/ ((__ad + __j) * __j) * (_Tp(1) - __x); | |
const _Tp __delta = __fact * __psi_term; | |
__sum2 += __delta; | |
if (std::abs(__delta) < __eps * std::abs(__sum2)) | |
break; | |
} | |
if (__j == __maxiter) | |
std::__throw_runtime_error(("Sum F2 failed to converge " "in __hyperg_reflect") | |
); | |
if (__sum2 == _Tp(0)) | |
__F2 = _Tp(0); | |
else | |
__F2 = std::exp(__ln_pre2) * __sum2; | |
} | |
else | |
{ | |
__F2 = _Tp(0); | |
} | |
const _Tp __sgn_2 = (__intd % 2 == 1 ? -_Tp(1) : _Tp(1)); | |
const _Tp __F = __F1 + __sgn_2 * __F2; | |
return __F; | |
} | |
else | |
{ | |
bool __ok1 = true; | |
_Tp __sgn_g1ca = _Tp(0), __ln_g1ca = _Tp(0); | |
_Tp __sgn_g1cb = _Tp(0), __ln_g1cb = _Tp(0); | |
if (true) | |
{ | |
__sgn_g1ca = __log_gamma_sign(__c - __a); | |
__ln_g1ca = __log_gamma(__c - __a); | |
__sgn_g1cb = __log_gamma_sign(__c - __b); | |
__ln_g1cb = __log_gamma(__c - __b); | |
} | |
if (false) | |
{ | |
__ok1 = false; | |
} | |
bool __ok2 = true; | |
_Tp __sgn_g2a = _Tp(0), __ln_g2a = _Tp(0); | |
_Tp __sgn_g2b = _Tp(0), __ln_g2b = _Tp(0); | |
if (true) | |
{ | |
__sgn_g2a = __log_gamma_sign(__a); | |
__ln_g2a = __log_gamma(__a); | |
__sgn_g2b = __log_gamma_sign(__b); | |
__ln_g2b = __log_gamma(__b); | |
} | |
if (false) | |
{ | |
__ok2 = false; | |
} | |
const _Tp __sgn_gc = __log_gamma_sign(__c); | |
const _Tp __ln_gc = __log_gamma(__c); | |
const _Tp __sgn_gd = __log_gamma_sign(__d); | |
const _Tp __ln_gd = __log_gamma(__d); | |
const _Tp __sgn_gmd = __log_gamma_sign(-__d); | |
const _Tp __ln_gmd = __log_gamma(-__d); | |
const _Tp __sgn1 = __sgn_gc * __sgn_gd * __sgn_g1ca * __sgn_g1cb; | |
const _Tp __sgn2 = __sgn_gc * __sgn_gmd * __sgn_g2a * __sgn_g2b; | |
_Tp __pre1, __pre2; | |
if (__ok1 && __ok2) | |
{ | |
_Tp __ln_pre1 = __ln_gc + __ln_gd - __ln_g1ca - __ln_g1cb; | |
_Tp __ln_pre2 = __ln_gc + __ln_gmd - __ln_g2a - __ln_g2b | |
+ __d * std::log(_Tp(1) - __x); | |
if (__ln_pre1 < __log_max && __ln_pre2 < __log_max) | |
{ | |
__pre1 = std::exp(__ln_pre1); | |
__pre2 = std::exp(__ln_pre2); | |
__pre1 *= __sgn1; | |
__pre2 *= __sgn2; | |
} | |
else | |
{ | |
std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") | |
); | |
} | |
} | |
else if (__ok1 && !__ok2) | |
{ | |
_Tp __ln_pre1 = __ln_gc + __ln_gd - __ln_g1ca - __ln_g1cb; | |
if (__ln_pre1 < __log_max) | |
{ | |
__pre1 = std::exp(__ln_pre1); | |
__pre1 *= __sgn1; | |
__pre2 = _Tp(0); | |
} | |
else | |
{ | |
std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") | |
); | |
} | |
} | |
else if (!__ok1 && __ok2) | |
{ | |
_Tp __ln_pre2 = __ln_gc + __ln_gmd - __ln_g2a - __ln_g2b | |
+ __d * std::log(_Tp(1) - __x); | |
if (__ln_pre2 < __log_max) | |
{ | |
__pre1 = _Tp(0); | |
__pre2 = std::exp(__ln_pre2); | |
__pre2 *= __sgn2; | |
} | |
else | |
{ | |
std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") | |
); | |
} | |
} | |
else | |
{ | |
__pre1 = _Tp(0); | |
__pre2 = _Tp(0); | |
std::__throw_runtime_error(("Underflow of gamma functions " "in __hyperg_reflect") | |
); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment