Go to the SVN repository for this file.
1 #ifndef CORELIB___STDBACKPORT__HPP 2 #define CORELIB___STDBACKPORT__HPP 38 #include <type_traits> 44 #ifndef __cpp_lib_remove_cvref 47 typedefstd::remove_cv_t<std::remove_reference_t<T>>
type;
54 #ifndef __cpp_lib_to_underlying 55 template<
classEnum >
56constexpr std::underlying_type_t<Enum>
to_underlying( Enum e ) noexcept
58 return static_cast<std::underlying_type_t<Enum>
>(e);
64 #ifndef __cpp_lib_hardware_interference_size 74 template<
typenameT>
77 template<
typenameT>
80 template<
typenameT, std::
size_tN>
83 template<
typenameT, std::
size_tN>
84 struct array_size<
T[
N]>: std::integral_constant<size_t, N> {};
86 template<
typenameT>
92 template<
typenameT>
95 template<
typenameT>
98 template<
typenameT>
101 template<
typenameT,
size_tN>
106 template<
typenameT,
size_tN>
111 template<
typenameT>
114 template<
typename T,
119-> std::array<_Elem, N>
128 return to_array_impl(std::forward<T>(
a), std::make_index_sequence<N>{});
130 template<
typenameT,
size_tN>
139 size_t N=
sizeof...(TArgs),
140 typename_Tuple=
typenamestd::enable_if<(
N>1),
141std::tuple<TArgs...>>
::type,
142 typename T= std::tuple_element_t<0, _Tuple>
146 T_array[] = { std::forward<TArgs>(args)... };
147 return to_array_impl(_array, std::make_index_sequence<N>{});
153 #ifndef __cpp_lib_to_array 161 template<
typenameT,
size_tN>
constexpr auto make_array(TArgs &&...args)
constexpr auto to_array_impl(T &&a, std::index_sequence< I... >) -> std::array< _Elem, N >
constexpr size_t get_array_size(T &&)
typename array_elem< T >::type array_elem_t
const GenericPointer< typename T::ValueType > T2 value
constexpr size_t hardware_destructive_interference_size
constexpr std::underlying_type_t< Enum > to_underlying(Enum e) noexcept
constexpr auto to_array(T &&a)
typename remove_cvref< T >::type remove_cvref_t
constexpr size_t hardware_constructive_interference_size
std::remove_cv_t< std::remove_reference_t< T > > type
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4