OXIESEC PANEL
- Current Dir:
/
/
usr
/
include
/
c++
/
7
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
01/31/2023 12:38:15 PM
rwxr-xr-x
📄
algorithm
2.46 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
any
18.48 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
array
11.12 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
atomic
40.01 KB
12/04/2019 02:25:41 PM
rw-r--r--
📁
backward
-
01/31/2023 12:38:15 PM
rwxr-xr-x
📁
bits
-
01/31/2023 12:38:15 PM
rwxr-xr-x
📄
bitset
44.81 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
cassert
1.61 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
ccomplex
1.3 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
cctype
2.35 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
cerrno
1.73 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
cfenv
2 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
cfloat
1.84 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
chrono
29.38 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
cinttypes
2.11 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
ciso646
1.43 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
climits
1.87 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
clocale
1.86 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
cmath
47.35 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
codecvt
5.22 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
complex
52.93 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
complex.h
1.43 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
condition_variable
8.74 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
csetjmp
1.9 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
csignal
1.81 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
cstdalign
1.37 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
cstdarg
1.82 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
cstdbool
1.37 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
cstddef
6.29 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
cstdint
2.12 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
cstdio
4.33 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
cstdlib
6.18 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
cstring
3.05 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
ctgmath
1.33 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
ctime
2.08 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
cuchar
2.16 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
cwchar
6.36 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
cwctype
2.73 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
cxxabi.h
21.46 KB
12/04/2019 02:25:41 PM
rw-r--r--
📁
debug
-
01/31/2023 12:38:15 PM
rwxr-xr-x
📁
decimal
-
01/31/2023 12:38:15 PM
rwxr-xr-x
📄
deque
2.6 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
exception
4.67 KB
12/04/2019 02:25:41 PM
rw-r--r--
📁
experimental
-
01/31/2023 12:38:15 PM
rwxr-xr-x
📁
ext
-
01/31/2023 12:38:15 PM
rwxr-xr-x
📄
fenv.h
1.97 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
forward_list
1.54 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
fstream
33.05 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
functional
38.64 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
future
49.49 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
initializer_list
2.9 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
iomanip
15.75 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
ios
1.56 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
iosfwd
6.76 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
iostream
2.63 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
istream
32.07 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
iterator
2.58 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
limits
67.56 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
list
2.53 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
locale
1.45 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
map
2.5 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
math.h
4.28 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
memory
4.6 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
mutex
17.88 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
new
7.33 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
numeric
5.11 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
optional
30.39 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
ostream
21.46 KB
12/04/2019 02:25:41 PM
rw-r--r--
📁
parallel
-
01/31/2023 12:38:15 PM
rwxr-xr-x
📁
profile
-
01/31/2023 12:38:15 PM
rwxr-xr-x
📄
queue
2.41 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
random
1.65 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
ratio
19.42 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
regex
1.85 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
scoped_allocator
15.84 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
set
2.5 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
shared_mutex
18.95 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
sstream
26.21 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
stack
2.33 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
stdexcept
7.79 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
stdlib.h
2.2 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
streambuf
28.87 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
string
1.89 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
string_view
20.8 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
system_error
11.25 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
tgmath.h
1.33 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
thread
10.03 KB
12/04/2019 02:25:41 PM
rw-r--r--
📁
tr1
-
01/31/2023 12:38:15 PM
rwxr-xr-x
📁
tr2
-
01/31/2023 12:38:15 PM
rwxr-xr-x
📄
tuple
58.22 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
type_traits
90.28 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
typeindex
3.02 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
typeinfo
7.51 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
unordered_map
1.81 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
unordered_set
1.81 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
utility
12.16 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
valarray
39.33 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
variant
42.09 KB
12/04/2019 02:25:41 PM
rw-r--r--
📄
vector
2.68 KB
12/04/2019 02:25:41 PM
rw-r--r--
Editing: utility
Close
// <utility> -*- C++ -*- // Copyright (C) 2001-2017 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 // <http://www.gnu.org/licenses/>. /* * * 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 <bits/c++config.h> #include <bits/stl_relops.h> #include <bits/stl_pair.h> #if __cplusplus >= 201103L #include <type_traits> #include <bits/move.h> #include <initializer_list> namespace std _GLIBCXX_VISIBILITY(default) { _GLIBCXX_BEGIN_NAMESPACE_VERSION /// Finds the size of a given tuple type. template<typename _Tp> struct tuple_size; // _GLIBCXX_RESOLVE_LIB_DEFECTS // 2770. tuple_size<const T> specialization is not SFINAE compatible #if __cplusplus <= 201402L template<typename _Tp, typename = void> struct __tuple_size_cv_impl { }; template<typename _Tp> struct __tuple_size_cv_impl<_Tp, __void_t<decltype(tuple_size<_Tp>::value)>> : integral_constant<size_t, tuple_size<_Tp>::value> { }; // _GLIBCXX_RESOLVE_LIB_DEFECTS // 2313. tuple_size should always derive from integral_constant<size_t, N> template<typename _Tp> struct tuple_size<const _Tp> : __tuple_size_cv_impl<_Tp> { }; template<typename _Tp> struct tuple_size<volatile _Tp> : __tuple_size_cv_impl<_Tp> { }; template<typename _Tp> struct tuple_size<const volatile _Tp> : __tuple_size_cv_impl<_Tp> { }; #else 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> { }; #endif /// Gives the type of the ith element of a given tuple type. template<std::size_t __i, typename _Tp> struct tuple_element; // Duplicate of C++14's tuple_element_t for internal use in C++11 mode template<std::size_t __i, typename _Tp> using __tuple_element_t = typename tuple_element<__i, _Tp>::type; template<std::size_t __i, typename _Tp> struct tuple_element<__i, const _Tp> { typedef typename add_const<__tuple_element_t<__i, _Tp>>::type type; }; template<std::size_t __i, typename _Tp> struct tuple_element<__i, volatile _Tp> { typedef typename add_volatile<__tuple_element_t<__i, _Tp>>::type type; }; template<std::size_t __i, typename _Tp> struct tuple_element<__i, const volatile _Tp> { typedef typename add_cv<__tuple_element_t<__i, _Tp>>::type type; }; #if __cplusplus > 201103L #define __cpp_lib_tuple_element_t 201402 template<std::size_t __i, typename _Tp> 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<typename _T1, typename _T2> struct __is_tuple_like_impl<std::pair<_T1, _T2>> : true_type { }; /// Partial specialization for std::pair template<class _Tp1, class _Tp2> struct tuple_size<std::pair<_Tp1, _Tp2>> : public integral_constant<std::size_t, 2> { }; /// Partial specialization for std::pair template<class _Tp1, class _Tp2> struct tuple_element<0, std::pair<_Tp1, _Tp2>> { typedef _Tp1 type; }; /// Partial specialization for std::pair template<class _Tp1, class _Tp2> struct tuple_element<1, std::pair<_Tp1, _Tp2>> { typedef _Tp2 type; }; template<std::size_t _Int> struct __pair_get; template<> struct __pair_get<0> { template<typename _Tp1, typename _Tp2> static constexpr _Tp1& __get(std::pair<_Tp1, _Tp2>& __pair) noexcept { return __pair.first; } template<typename _Tp1, typename _Tp2> static constexpr _Tp1&& __move_get(std::pair<_Tp1, _Tp2>&& __pair) noexcept { return std::forward<_Tp1>(__pair.first); } template<typename _Tp1, typename _Tp2> static constexpr const _Tp1& __const_get(const std::pair<_Tp1, _Tp2>& __pair) noexcept { return __pair.first; } }; template<> struct __pair_get<1> { template<typename _Tp1, typename _Tp2> static constexpr _Tp2& __get(std::pair<_Tp1, _Tp2>& __pair) noexcept { return __pair.second; } template<typename _Tp1, typename _Tp2> static constexpr _Tp2&& __move_get(std::pair<_Tp1, _Tp2>&& __pair) noexcept { return std::forward<_Tp2>(__pair.second); } template<typename _Tp1, typename _Tp2> static constexpr const _Tp2& __const_get(const std::pair<_Tp1, _Tp2>& __pair) noexcept { return __pair.second; } }; template<std::size_t _Int, class _Tp1, class _Tp2> constexpr typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type& get(std::pair<_Tp1, _Tp2>& __in) noexcept { return __pair_get<_Int>::__get(__in); } template<std::size_t _Int, class _Tp1, class _Tp2> constexpr typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type&& get(std::pair<_Tp1, _Tp2>&& __in) noexcept { return __pair_get<_Int>::__move_get(std::move(__in)); } template<std::size_t _Int, class _Tp1, class _Tp2> constexpr const typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type& get(const std::pair<_Tp1, _Tp2>& __in) noexcept { return __pair_get<_Int>::__const_get(__in); } #if __cplusplus > 201103L #define __cpp_lib_tuples_by_type 201304 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 _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); } #define __cpp_lib_exchange_function 201304 /// Assign @p __new_val to @p __obj and return its previous value. template <typename _Tp, typename _Up = _Tp> inline _Tp exchange(_Tp& __obj, _Up&& __new_val) { return std::__exchange(__obj, std::forward<_Up>(__new_val)); } #endif // Stores a tuple of indices. Used by tuple and pair, and by bind() to // extract the elements in a tuple. template<size_t... _Indexes> struct _Index_tuple { }; // Concatenates two _Index_tuples. template<typename _Itup1, typename _Itup2> struct _Itup_cat; template<size_t... _Ind1, size_t... _Ind2> struct _Itup_cat<_Index_tuple<_Ind1...>, _Index_tuple<_Ind2...>> { using __type = _Index_tuple<_Ind1..., (_Ind2 + sizeof...(_Ind1))...>; }; // Builds an _Index_tuple<0, 1, 2, ..., _Num-1>. template<size_t _Num> struct _Build_index_tuple : _Itup_cat<typename _Build_index_tuple<_Num / 2>::__type, typename _Build_index_tuple<_Num - _Num / 2>::__type> { }; template<> struct _Build_index_tuple<1> { typedef _Index_tuple<0> __type; }; template<> struct _Build_index_tuple<0> { typedef _Index_tuple<> __type; }; #if __cplusplus > 201103L #define __cpp_lib_integer_sequence 201304 /// Class template integer_sequence 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, typename _ISeq = typename _Build_index_tuple<_Num>::__type> struct _Make_integer_sequence; template<typename _Tp, _Tp _Num, size_t... _Idx> struct _Make_integer_sequence<_Tp, _Num, _Index_tuple<_Idx...>> { static_assert( _Num >= 0, "Cannot make integer sequence of negative length" ); typedef integer_sequence<_Tp, static_cast<_Tp>(_Idx)...> __type; }; /// Alias template make_integer_sequence template<typename _Tp, _Tp _Num> using make_integer_sequence = typename _Make_integer_sequence<_Tp, _Num>::__type; /// Alias template index_sequence template<size_t... _Idx> using index_sequence = integer_sequence<size_t, _Idx...>; /// Alias template make_index_sequence template<size_t _Num> using make_index_sequence = make_integer_sequence<size_t, _Num>; /// Alias template index_sequence_for template<typename... _Types> using index_sequence_for = make_index_sequence<sizeof...(_Types)>; #endif #if __cplusplus > 201402L 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> struct __is_in_place_type_impl : false_type { }; template<typename _Tp> struct __is_in_place_type_impl<in_place_type_t<_Tp>> : true_type { }; template<typename _Tp> struct __is_in_place_type : public __is_in_place_type_impl<_Tp> { }; #define __cpp_lib_as_const 201510 template<typename _Tp> constexpr add_const_t<_Tp>& as_const(_Tp& __t) noexcept { return __t; } template<typename _Tp> void as_const(const _Tp&&) = delete; #endif // C++17 _GLIBCXX_END_NAMESPACE_VERSION } // namespace #endif #endif /* _GLIBCXX_UTILITY */