5#ifndef INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_INTEGER_SEQUENCE_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_INTEGER_SEQUENCE_HPP_
31template <
typename Type, Type... Ints>
44 static constexpr auto size() noexcept ->
size_t {
return sizeof...(Ints); }
57template <
class T,
bool DoDouble>
67template <
typename T,
size_t N, T... Is>
89template <
typename T, T... Is>
103template <
typename T,
size_t N>
110template <
class T,
bool DoDouble>
120 template <T... Is, T... Js>
130 template <
size_t N, T... Is>
144 template <
size_t N, T... Is>
154template <
typename Type, Type Value,
typename =
void>
167template <
typename Type, Type Value>
176template <
typename Type, Type Size,
bool = is_negative_v<Type, Size>>
185template <
typename Type, Type Size>
211template <
typename Type, Type Size>
217template <
size_t... Ints>
223template <
size_t Size>
229template <
typename... Types>
make_sequence_impl< T, N - sizeof...(Is), Is..., sizeof...(Is)+Is... > type
double the current sequence
Definition integer_sequence.hpp:145
helper for quickly expanding the elements in a sequence
Definition integer_sequence.hpp:111
static constexpr auto finish_sequence(integer_sequence< T, Js... >) -> make_sequence_impl< T, 0, Is..., sizeof...(Is)+Js... >
finishes the sequence since it can no longer be doubled
typedef type
finish the current sequence
Definition integer_sequence.hpp:131
integer_sequence< Type, 0 > type
an unused type alias provided to reduce compiler error messages
Definition integer_sequence.hpp:195
Helper type to check that the requested sequence size is non-negative.
Definition integer_sequence.hpp:177
integer_sequence< T, Is... > type
completed integer sequence type
Definition integer_sequence.hpp:93
integer_sequence< T > type
completed integer sequence type
Definition integer_sequence.hpp:80
helper for constructing an integer sequence from 0 to N - 1
Definition integer_sequence.hpp:68
Implements a compile-time sequence of integers.
Definition integer_sequence.hpp:32
static constexpr auto size() noexcept -> size_t
Returns the number of elements in the sequence.
Definition integer_sequence.hpp:44
T value_type
Definition integer_sequence.hpp:38
Definition integer_sequence.hpp:48
constexpr bool is_negative_v
Helper variable used to determine if an integer value is negative.
make_integer_sequence< size_t, Size > make_index_sequence
A helper alias template for make_integer_sequence<size_t, Size>
Definition integer_sequence.hpp:224
integer_sequence< size_t, Ints... > index_sequence
A helper alias template for integer_sequence<size_t, Ints>
Definition integer_sequence.hpp:218
::size_t size_t
A type suitable for holding the size of an object.
Definition cstddef.hpp:29
constexpr bool is_integral_v
A type trait to check if a type is integral. The value is true if Type is an integral type,...
::int64_t int64_t
A 64-bit signed integer type.
Definition cstdint.hpp:71
make_index_sequence< sizeof...(Types)> index_sequence_for
A helper alias template convert any type parameter pack into an index sequence of the same length.
Definition integer_sequence.hpp:230
typename integer_sequence_detail::make_integer_sequence< Type, Size >::type make_integer_sequence
Helper alias template to simplify creation of std::integer_sequence types with 0, 1,...
Definition integer_sequence.hpp:212