118 items
NAME ↑ SIZE MODIFIED PERMS ACTIONS
.. / Parent Directory
backward — dir
2026-06-03 15:44 · rwxr-xr-x
2026-06-03 15:44 rwxr-xr-x
bits — dir
2026-06-03 15:44 · rwxr-xr-x
2026-06-03 15:44 rwxr-xr-x
debug — dir
2026-06-03 15:44 · rwxr-xr-x
2026-06-03 15:44 rwxr-xr-x
decimal — dir
2026-06-03 15:44 · rwxr-xr-x
2026-06-03 15:44 rwxr-xr-x
experimental — dir
2026-06-03 15:44 · rwxr-xr-x
2026-06-03 15:44 rwxr-xr-x
ext — dir
2026-06-03 15:44 · rwxr-xr-x
2026-06-03 15:44 rwxr-xr-x
parallel — dir
2026-06-03 15:44 · rwxr-xr-x
2026-06-03 15:44 rwxr-xr-x
pstl — dir
2026-06-03 15:44 · rwxr-xr-x
2026-06-03 15:44 rwxr-xr-x
tr1 — dir
2026-06-03 15:44 · rwxr-xr-x
2026-06-03 15:44 rwxr-xr-x
tr2 — dir
2026-06-03 15:44 · rwxr-xr-x
2026-06-03 15:44 rwxr-xr-x
2025-09-15 15:41 · rwxr-xr-x
2025-09-15 15:41 rwxr-xr-x
algorithm — 2.97 KB
2025-09-15 15:41 · rw-r--r--
2.97 KB 2025-09-15 15:41 rw-r--r--
any — 18.32 KB
2025-09-15 15:41 · rw-r--r--
18.32 KB 2025-09-15 15:41 rw-r--r--
array — 13.51 KB
2025-09-15 15:41 · rw-r--r--
13.51 KB 2025-09-15 15:41 rw-r--r--
atomic — 47.66 KB
2025-09-15 15:41 · rw-r--r--
47.66 KB 2025-09-15 15:41 rw-r--r--
barrier — 7.84 KB
2025-09-15 15:41 · rw-r--r--
7.84 KB 2025-09-15 15:41 rw-r--r--
bit — 11.9 KB
2025-09-15 15:41 · rw-r--r--
11.9 KB 2025-09-15 15:41 rw-r--r--
bitset — 44.92 KB
2025-09-15 15:41 · rw-r--r--
44.92 KB 2025-09-15 15:41 rw-r--r--
cassert — 1.61 KB
2025-09-15 15:41 · rw-r--r--
1.61 KB 2025-09-15 15:41 rw-r--r--
ccomplex — 1.3 KB
2025-09-15 15:41 · rw-r--r--
1.3 KB 2025-09-15 15:41 rw-r--r--
cctype — 2.35 KB
2025-09-15 15:41 · rw-r--r--
2.35 KB 2025-09-15 15:41 rw-r--r--
cerrno — 1.73 KB
2025-09-15 15:41 · rw-r--r--
1.73 KB 2025-09-15 15:41 rw-r--r--
cfenv — 2 KB
2025-09-15 15:41 · rw-r--r--
2 KB 2025-09-15 15:41 rw-r--r--
cfloat — 1.84 KB
2025-09-15 15:41 · rw-r--r--
1.84 KB 2025-09-15 15:41 rw-r--r--
charconv — 19.3 KB
2025-09-15 15:41 · rw-r--r--
19.3 KB 2025-09-15 15:41 rw-r--r--
chrono — 94.93 KB
2025-09-15 15:41 · rw-r--r--
94.93 KB 2025-09-15 15:41 rw-r--r--
cinttypes — 2.11 KB
2025-09-15 15:41 · rw-r--r--
2.11 KB 2025-09-15 15:41 rw-r--r--
ciso646 — 1.43 KB
2025-09-15 15:41 · rw-r--r--
1.43 KB 2025-09-15 15:41 rw-r--r--
climits — 1.87 KB
2025-09-15 15:41 · rw-r--r--
1.87 KB 2025-09-15 15:41 rw-r--r--
clocale — 1.86 KB
2025-09-15 15:41 · rw-r--r--
1.86 KB 2025-09-15 15:41 rw-r--r--
cmath — 48.22 KB
2025-09-15 15:41 · rw-r--r--
48.22 KB 2025-09-15 15:41 rw-r--r--
codecvt — 5.15 KB
2025-09-15 15:41 · rw-r--r--
5.15 KB 2025-09-15 15:41 rw-r--r--
compare — 27.61 KB
2025-09-15 15:41 · rw-r--r--
27.61 KB 2025-09-15 15:41 rw-r--r--
complex — 55.37 KB
2025-09-15 15:41 · rw-r--r--
55.37 KB 2025-09-15 15:41 rw-r--r--
complex.h — 1.56 KB
2025-09-15 15:41 · rw-r--r--
1.56 KB 2025-09-15 15:41 rw-r--r--
concepts — 11.94 KB
2025-09-15 15:41 · rw-r--r--
11.94 KB 2025-09-15 15:41 rw-r--r--
condition_variable — 12.48 KB
2025-09-15 15:41 · rw-r--r--
12.48 KB 2025-09-15 15:41 rw-r--r--
coroutine — 8.94 KB
2025-09-15 15:41 · rw-r--r--
8.94 KB 2025-09-15 15:41 rw-r--r--
csetjmp — 1.9 KB
2025-09-15 15:41 · rw-r--r--
1.9 KB 2025-09-15 15:41 rw-r--r--
csignal — 1.81 KB
2025-09-15 15:41 · rw-r--r--
1.81 KB 2025-09-15 15:41 rw-r--r--
cstdalign — 1.37 KB
2025-09-15 15:41 · rw-r--r--
1.37 KB 2025-09-15 15:41 rw-r--r--
cstdarg — 1.82 KB
2025-09-15 15:41 · rw-r--r--
1.82 KB 2025-09-15 15:41 rw-r--r--
cstdbool — 1.37 KB
2025-09-15 15:41 · rw-r--r--
1.37 KB 2025-09-15 15:41 rw-r--r--
cstddef — 6.53 KB
2025-09-15 15:41 · rw-r--r--
6.53 KB 2025-09-15 15:41 rw-r--r--
cstdint — 2.28 KB
2025-09-15 15:41 · rw-r--r--
2.28 KB 2025-09-15 15:41 rw-r--r--
cstdio — 4.33 KB
2025-09-15 15:41 · rw-r--r--
4.33 KB 2025-09-15 15:41 rw-r--r--
cstdlib — 6.18 KB
2025-09-15 15:41 · rw-r--r--
6.18 KB 2025-09-15 15:41 rw-r--r--
cstring — 3.08 KB
2025-09-15 15:41 · rw-r--r--
3.08 KB 2025-09-15 15:41 rw-r--r--
ctgmath — 1.33 KB
2025-09-15 15:41 · rw-r--r--
1.33 KB 2025-09-15 15:41 rw-r--r--
ctime — 2.24 KB
2025-09-15 15:41 · rw-r--r--
2.24 KB 2025-09-15 15:41 rw-r--r--
cuchar — 2.16 KB
2025-09-15 15:41 · rw-r--r--
2.16 KB 2025-09-15 15:41 rw-r--r--
cwchar — 6.39 KB
2025-09-15 15:41 · rw-r--r--
6.39 KB 2025-09-15 15:41 rw-r--r--
cwctype — 2.73 KB
2025-09-15 15:41 · rw-r--r--
2.73 KB 2025-09-15 15:41 rw-r--r--
cxxabi.h — 21.76 KB
2025-09-15 15:41 · rw-r--r--
21.76 KB 2025-09-15 15:41 rw-r--r--
deque — 3.88 KB
2025-09-15 15:41 · rw-r--r--
3.88 KB 2025-09-15 15:41 rw-r--r--
exception — 4.9 KB
2025-09-15 15:41 · rw-r--r--
4.9 KB 2025-09-15 15:41 rw-r--r--
execution — 1.76 KB
2025-09-15 15:41 · rw-r--r--
1.76 KB 2025-09-15 15:41 rw-r--r--
fenv.h — 1.97 KB
2025-09-15 15:41 · rw-r--r--
1.97 KB 2025-09-15 15:41 rw-r--r--
filesystem — 1.61 KB
2025-09-15 15:41 · rw-r--r--
1.61 KB 2025-09-15 15:41 rw-r--r--
forward_list — 2.63 KB
2025-09-15 15:41 · rw-r--r--
2.63 KB 2025-09-15 15:41 rw-r--r--
fstream — 39.73 KB
2025-09-15 15:41 · rw-r--r--
39.73 KB 2025-09-15 15:41 rw-r--r--
functional — 39.26 KB
2025-09-15 15:41 · rw-r--r--
39.26 KB 2025-09-15 15:41 rw-r--r--
future — 51.05 KB
2025-09-15 15:41 · rw-r--r--
51.05 KB 2025-09-15 15:41 rw-r--r--
initializer_list — 2.97 KB
2025-09-15 15:41 · rw-r--r--
2.97 KB 2025-09-15 15:41 rw-r--r--
iomanip — 16.16 KB
2025-09-15 15:41 · rw-r--r--
16.16 KB 2025-09-15 15:41 rw-r--r--
ios — 1.56 KB
2025-09-15 15:41 · rw-r--r--
1.56 KB 2025-09-15 15:41 rw-r--r--
iosfwd — 7.34 KB
2025-09-15 15:41 · rw-r--r--
7.34 KB 2025-09-15 15:41 rw-r--r--
iostream — 2.63 KB
2025-09-15 15:41 · rw-r--r--
2.63 KB 2025-09-15 15:41 rw-r--r--
istream — 33.3 KB
2025-09-15 15:41 · rw-r--r--
33.3 KB 2025-09-15 15:41 rw-r--r--
iterator — 2.69 KB
2025-09-15 15:41 · rw-r--r--
2.69 KB 2025-09-15 15:41 rw-r--r--
latch — 2.67 KB
2025-09-15 15:41 · rw-r--r--
2.67 KB 2025-09-15 15:41 rw-r--r--
limits — 69.99 KB
2025-09-15 15:41 · rw-r--r--
69.99 KB 2025-09-15 15:41 rw-r--r--
list — 3.57 KB
2025-09-15 15:41 · rw-r--r--
3.57 KB 2025-09-15 15:41 rw-r--r--
locale — 1.45 KB
2025-09-15 15:41 · rw-r--r--
1.45 KB 2025-09-15 15:41 rw-r--r--
map — 3.84 KB
2025-09-15 15:41 · rw-r--r--
3.84 KB 2025-09-15 15:41 rw-r--r--
math.h — 4.47 KB
2025-09-15 15:41 · rw-r--r--
4.47 KB 2025-09-15 15:41 rw-r--r--
memory — 4.41 KB
2025-09-15 15:41 · rw-r--r--
4.41 KB 2025-09-15 15:41 rw-r--r--
memory_resource — 20.62 KB
2025-09-15 15:41 · rw-r--r--
20.62 KB 2025-09-15 15:41 rw-r--r--
mutex — 23.66 KB
2025-09-15 15:41 · rw-r--r--
23.66 KB 2025-09-15 15:41 rw-r--r--
new — 8.15 KB
2025-09-15 15:41 · rw-r--r--
8.15 KB 2025-09-15 15:41 rw-r--r--
numbers — 6.07 KB
2025-09-15 15:41 · rw-r--r--
6.07 KB 2025-09-15 15:41 rw-r--r--
numeric — 25.5 KB
2025-09-15 15:41 · rw-r--r--
25.5 KB 2025-09-15 15:41 rw-r--r--
optional — 39.23 KB
2025-09-15 15:41 · rw-r--r--
39.23 KB 2025-09-15 15:41 rw-r--r--
ostream — 25.37 KB
2025-09-15 15:41 · rw-r--r--
25.37 KB 2025-09-15 15:41 rw-r--r--
queue — 2.41 KB
2025-09-15 15:41 · rw-r--r--
2.41 KB 2025-09-15 15:41 rw-r--r--
random — 1.65 KB
2025-09-15 15:41 · rw-r--r--
1.65 KB 2025-09-15 15:41 rw-r--r--
ranges — 104.69 KB
2025-09-15 15:41 · rw-r--r--
104.69 KB 2025-09-15 15:41 rw-r--r--
ratio — 19.64 KB
2025-09-15 15:41 · rw-r--r--
19.64 KB 2025-09-15 15:41 rw-r--r--
regex — 2.79 KB
2025-09-15 15:41 · rw-r--r--
2.79 KB 2025-09-15 15:41 rw-r--r--
scoped_allocator — 17.24 KB
2025-09-15 15:41 · rw-r--r--
17.24 KB 2025-09-15 15:41 rw-r--r--
semaphore — 2.93 KB
2025-09-15 15:41 · rw-r--r--
2.93 KB 2025-09-15 15:41 rw-r--r--
set — 3.71 KB
2025-09-15 15:41 · rw-r--r--
3.71 KB 2025-09-15 15:41 rw-r--r--
shared_mutex — 24.01 KB
2025-09-15 15:41 · rw-r--r--
24.01 KB 2025-09-15 15:41 rw-r--r--
source_location — 2.68 KB
2025-09-15 15:41 · rw-r--r--
2.68 KB 2025-09-15 15:41 rw-r--r--
span — 12.82 KB
2025-09-15 15:41 · rw-r--r--
12.82 KB 2025-09-15 15:41 rw-r--r--
sstream — 38.31 KB
2025-09-15 15:41 · rw-r--r--
38.31 KB 2025-09-15 15:41 rw-r--r--
stack — 2.33 KB
2025-09-15 15:41 · rw-r--r--
2.33 KB 2025-09-15 15:41 rw-r--r--
stdexcept — 9.65 KB
2025-09-15 15:41 · rw-r--r--
9.65 KB 2025-09-15 15:41 rw-r--r--
stdlib.h — 2.2 KB
2025-09-15 15:41 · rw-r--r--
2.2 KB 2025-09-15 15:41 rw-r--r--
stop_token — 15.61 KB
2025-09-15 15:41 · rw-r--r--
15.61 KB 2025-09-15 15:41 rw-r--r--
streambuf — 29.19 KB
2025-09-15 15:41 · rw-r--r--
29.19 KB 2025-09-15 15:41 rw-r--r--
string — 4.54 KB
2025-09-15 15:41 · rw-r--r--
4.54 KB 2025-09-15 15:41 rw-r--r--
string_view — 25.59 KB
2025-09-15 15:41 · rw-r--r--
25.59 KB 2025-09-15 15:41 rw-r--r--
syncstream — 8.13 KB
2025-09-15 15:41 · rw-r--r--
8.13 KB 2025-09-15 15:41 rw-r--r--
system_error — 14.65 KB
2025-09-15 15:41 · rw-r--r--
14.65 KB 2025-09-15 15:41 rw-r--r--
tgmath.h — 1.33 KB
2025-09-15 15:41 · rw-r--r--
1.33 KB 2025-09-15 15:41 rw-r--r--
thread — 5.78 KB
2025-09-15 15:41 · rw-r--r--
5.78 KB 2025-09-15 15:41 rw-r--r--
tuple — 61.71 KB
2025-09-15 15:41 · rw-r--r--
61.71 KB 2025-09-15 15:41 rw-r--r--
type_traits — 105.12 KB
2025-09-15 15:41 · rw-r--r--
105.12 KB 2025-09-15 15:41 rw-r--r--
typeindex — 3.43 KB
2025-09-15 15:41 · rw-r--r--
3.43 KB 2025-09-15 15:41 rw-r--r--
typeinfo — 7.56 KB
2025-09-15 15:41 · rw-r--r--
7.56 KB 2025-09-15 15:41 rw-r--r--
unordered_map — 3.39 KB
2025-09-15 15:41 · rw-r--r--
3.39 KB 2025-09-15 15:41 rw-r--r--
unordered_set — 3.26 KB
2025-09-15 15:41 · rw-r--r--
3.26 KB 2025-09-15 15:41 rw-r--r--
utility — 14.48 KB
2025-09-15 15:41 · rw-r--r--
14.48 KB 2025-09-15 15:41 rw-r--r--
valarray — 39.74 KB
2025-09-15 15:41 · rw-r--r--
39.74 KB 2025-09-15 15:41 rw-r--r--
variant — 61.39 KB
2025-09-15 15:41 · rw-r--r--
61.39 KB 2025-09-15 15:41 rw-r--r--
vector — 4.17 KB
2025-09-15 15:41 · rw-r--r--
4.17 KB 2025-09-15 15:41 rw-r--r--
version — 9.05 KB
2025-09-15 15:41 · rw-r--r--
9.05 KB 2025-09-15 15:41 rw-r--r--
ONLINE
11
118 items
11:38:23
TERMINAL FM
Edit
Preview
Download
Rename
Copy
Chmod
Delete
// -*- C++ -*- // Copyright (C) 2001-2021 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the // terms of the GNU General Public License as published by the // Free Software Foundation; either version 3, or (at your option) // any later version. // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // Under Section 7 of GPL version 3, you are granted additional // permissions described in the GCC Runtime Library Exception, version // 3.1, as published by the Free Software Foundation. // You should have received a copy of the GNU General Public License and // a copy of the GCC Runtime Library Exception along with this program; // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see // . /* * * Copyright (c) 1994 * Hewlett-Packard Company * * Permission to use, copy, modify, distribute and sell this software * and its documentation for any purpose is hereby granted without fee, * provided that the above copyright notice appear in all copies and * that both that copyright notice and this permission notice appear * in supporting documentation. Hewlett-Packard Company makes no * representations about the suitability of this software for any * purpose. It is provided "as is" without express or implied warranty. * * * Copyright (c) 1996,1997 * Silicon Graphics Computer Systems, Inc. * * Permission to use, copy, modify, distribute and sell this software * and its documentation for any purpose is hereby granted without fee, * provided that the above copyright notice appear in all copies and * that both that copyright notice and this permission notice appear * in supporting documentation. Silicon Graphics makes no * representations about the suitability of this software for any * purpose. It is provided "as is" without express or implied warranty. */ /** @file include/utility * This is a Standard C++ Library header. */ #ifndef _GLIBCXX_UTILITY #define _GLIBCXX_UTILITY 1 #pragma GCC system_header /** * @defgroup utilities Utilities * * Components deemed generally useful. Includes pair, tuple, * forward/move helpers, ratio, function object, metaprogramming and * type traits, time, date, and memory functions. */ #include #include #include #if __cplusplus >= 201103L #include #include #include #if __cplusplus > 201703L #include #endif namespace std _GLIBCXX_VISIBILITY(default) { _GLIBCXX_BEGIN_NAMESPACE_VERSION /// Finds the size of a given tuple type. template struct tuple_size; // _GLIBCXX_RESOLVE_LIB_DEFECTS // 2313. tuple_size should always derive from integral_constant // 2770. tuple_size specialization is not SFINAE compatible template::type, typename = typename enable_if::value>::type, size_t = tuple_size<_Tp>::value> using __enable_if_has_tuple_size = _Tp; template struct tuple_size> : public tuple_size<_Tp> { }; template struct tuple_size> : public tuple_size<_Tp> { }; template struct tuple_size> : public tuple_size<_Tp> { }; /// Gives the type of the ith element of a given tuple type. template struct tuple_element; // Duplicate of C++14's tuple_element_t for internal use in C++11 mode template using __tuple_element_t = typename tuple_element<__i, _Tp>::type; template struct tuple_element<__i, const _Tp> { typedef typename add_const<__tuple_element_t<__i, _Tp>>::type type; }; template struct tuple_element<__i, volatile _Tp> { typedef typename add_volatile<__tuple_element_t<__i, _Tp>>::type type; }; template struct tuple_element<__i, const volatile _Tp> { typedef typename add_cv<__tuple_element_t<__i, _Tp>>::type type; }; #if __cplusplus >= 201402L // The standard says this macro and alias template should be in // but we define them here, to be available when the partial specializations // of tuple_element> and tuple_element> are defined. #define __cpp_lib_tuple_element_t 201402L template using tuple_element_t = typename tuple_element<__i, _Tp>::type; #endif // Various functions which give std::pair a tuple-like interface. /// Partial specialization for std::pair template struct __is_tuple_like_impl> : true_type { }; /// Partial specialization for std::pair template struct tuple_size> : public integral_constant { }; /// Partial specialization for std::pair template struct tuple_element<0, pair<_Tp1, _Tp2>> { typedef _Tp1 type; }; /// Partial specialization for std::pair template struct tuple_element<1, pair<_Tp1, _Tp2>> { typedef _Tp2 type; }; template struct __pair_get; template<> struct __pair_get<0> { template static constexpr _Tp1& __get(pair<_Tp1, _Tp2>& __pair) noexcept { return __pair.first; } template static constexpr _Tp1&& __move_get(pair<_Tp1, _Tp2>&& __pair) noexcept { return std::forward<_Tp1>(__pair.first); } template static constexpr const _Tp1& __const_get(const pair<_Tp1, _Tp2>& __pair) noexcept { return __pair.first; } template static constexpr const _Tp1&& __const_move_get(const pair<_Tp1, _Tp2>&& __pair) noexcept { return std::forward(__pair.first); } }; template<> struct __pair_get<1> { template static constexpr _Tp2& __get(pair<_Tp1, _Tp2>& __pair) noexcept { return __pair.second; } template static constexpr _Tp2&& __move_get(pair<_Tp1, _Tp2>&& __pair) noexcept { return std::forward<_Tp2>(__pair.second); } template static constexpr const _Tp2& __const_get(const pair<_Tp1, _Tp2>& __pair) noexcept { return __pair.second; } template static constexpr const _Tp2&& __const_move_get(const pair<_Tp1, _Tp2>&& __pair) noexcept { return std::forward(__pair.second); } }; template constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& get(pair<_Tp1, _Tp2>& __in) noexcept { return __pair_get<_Int>::__get(__in); } template 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 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 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)); } #if __cplusplus >= 201402L #define __cpp_lib_tuples_by_type 201304 template constexpr _Tp& get(pair<_Tp, _Up>& __p) noexcept { return __p.first; } template constexpr const _Tp& get(const pair<_Tp, _Up>& __p) noexcept { return __p.first; } template constexpr _Tp&& get(pair<_Tp, _Up>&& __p) noexcept { return std::move(__p.first); } template constexpr const _Tp&& get(const pair<_Tp, _Up>&& __p) noexcept { return std::move(__p.first); } template constexpr _Tp& get(pair<_Up, _Tp>& __p) noexcept { return __p.second; } template constexpr const _Tp& get(const pair<_Up, _Tp>& __p) noexcept { return __p.second; } template constexpr _Tp&& get(pair<_Up, _Tp>&& __p) noexcept { return std::move(__p.second); } template constexpr const _Tp&& get(const pair<_Up, _Tp>&& __p) noexcept { return std::move(__p.second); } #define __cpp_lib_exchange_function 201304 /// Assign @p __new_val to @p __obj and return its previous value. template _GLIBCXX20_CONSTEXPR inline _Tp exchange(_Tp& __obj, _Up&& __new_val) { return std::__exchange(__obj, std::forward<_Up>(__new_val)); } #endif // C++14 // Stores a tuple of indices. Used by tuple and pair, and by bind() to // extract the elements in a tuple. template struct _Index_tuple { }; // Builds an _Index_tuple<0, 1, 2, ..., _Num-1>. template struct _Build_index_tuple { #if __has_builtin(__make_integer_seq) template using _IdxTuple = _Index_tuple<_Indices...>; // Clang defines __make_integer_seq for this purpose. using __type = __make_integer_seq<_IdxTuple, size_t, _Num>; #else // For GCC and other compilers, use __integer_pack instead. using __type = _Index_tuple<__integer_pack(_Num)...>; #endif }; #if __cplusplus >= 201402L #define __cpp_lib_integer_sequence 201304 /// Class template integer_sequence template struct integer_sequence { typedef _Tp value_type; static constexpr size_t size() noexcept { return sizeof...(_Idx); } }; /// Alias template make_integer_sequence template using make_integer_sequence #if __has_builtin(__make_integer_seq) = __make_integer_seq; #else = integer_sequence<_Tp, __integer_pack(_Tp(_Num))...>; #endif /// Alias template index_sequence template using index_sequence = integer_sequence; /// Alias template make_index_sequence template using make_index_sequence = make_integer_sequence; /// Alias template index_sequence_for template using index_sequence_for = make_index_sequence; #endif #if __cplusplus > 201402L struct in_place_t { explicit in_place_t() = default; }; inline constexpr in_place_t in_place{}; template struct in_place_type_t { explicit in_place_type_t() = default; }; template inline constexpr in_place_type_t<_Tp> in_place_type{}; template struct in_place_index_t { explicit in_place_index_t() = default; }; template inline constexpr in_place_index_t<_Idx> in_place_index{}; template inline constexpr bool __is_in_place_type_v = false; template inline constexpr bool __is_in_place_type_v> = true; template using __is_in_place_type = bool_constant<__is_in_place_type_v<_Tp>>; #define __cpp_lib_as_const 201510 template [[nodiscard]] constexpr add_const_t<_Tp>& as_const(_Tp& __t) noexcept { return __t; } template void as_const(const _Tp&&) = delete; #if __cplusplus > 201703L #define __cpp_lib_integer_comparison_functions 202002L template constexpr bool cmp_equal(_Tp __t, _Up __u) noexcept { static_assert(__is_standard_integer<_Tp>::value); static_assert(__is_standard_integer<_Up>::value); if constexpr (is_signed_v<_Tp> == is_signed_v<_Up>) return __t == __u; else if constexpr (is_signed_v<_Tp>) return __t >= 0 && make_unsigned_t<_Tp>(__t) == __u; else return __u >= 0 && __t == make_unsigned_t<_Up>(__u); } template constexpr bool cmp_not_equal(_Tp __t, _Up __u) noexcept { return !std::cmp_equal(__t, __u); } template constexpr bool cmp_less(_Tp __t, _Up __u) noexcept { static_assert(__is_standard_integer<_Tp>::value); static_assert(__is_standard_integer<_Up>::value); if constexpr (is_signed_v<_Tp> == is_signed_v<_Up>) return __t < __u; else if constexpr (is_signed_v<_Tp>) return __t < 0 || make_unsigned_t<_Tp>(__t) < __u; else return __u >= 0 && __t < make_unsigned_t<_Up>(__u); } template constexpr bool cmp_greater(_Tp __t, _Up __u) noexcept { return std::cmp_less(__u, __t); } template constexpr bool cmp_less_equal(_Tp __t, _Up __u) noexcept { return !std::cmp_less(__u, __t); } template constexpr bool cmp_greater_equal(_Tp __t, _Up __u) noexcept { return !std::cmp_less(__t, __u); } template constexpr bool in_range(_Tp __t) noexcept { static_assert(__is_standard_integer<_Res>::value); static_assert(__is_standard_integer<_Tp>::value); using __gnu_cxx::__int_traits; if constexpr (is_signed_v<_Tp> == is_signed_v<_Res>) return __int_traits<_Res>::__min <= __t && __t <= __int_traits<_Res>::__max; else if constexpr (is_signed_v<_Tp>) return __t >= 0 && make_unsigned_t<_Tp>(__t) <= __int_traits<_Res>::__max; else return __t <= make_unsigned_t<_Res>(__int_traits<_Res>::__max); } #if __cplusplus > 202002L #define __cpp_lib_to_underlying 202102L /// Convert an object of enumeration type to its underlying type. template [[nodiscard]] constexpr underlying_type_t<_Tp> to_underlying(_Tp __value) noexcept { return static_cast>(__value); } #endif // C++23 #endif // C++20 #endif // C++17 _GLIBCXX_END_NAMESPACE_VERSION } // namespace #endif #endif /* _GLIBCXX_UTILITY */