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_
14#include "stdlib/include/stdlib_detail/conditional.hpp"
15#include "stdlib/include/stdlib_detail/cstddef.hpp"
16#include "stdlib/include/stdlib_detail/cstdint.hpp"
17#include "stdlib/include/stdlib_detail/enable_if.hpp"
18#include "stdlib/include/stdlib_detail/is_integral.hpp"
19#include "stdlib/include/stdlib_detail/is_signed.hpp"
31template <
typename Type, Type... Ints>
37 using value_type = Type;
41 static constexpr auto size()
noexcept ->
size_t {
return sizeof...(Ints); }
53template <
class T,
bool DoDouble>
54class fast_expand_sequence;
63template <
typename T, size_t N, T... Is>
64class make_sequence_impl :
public fast_expand_sequence<T, (N >=
sizeof...(Is))>::
template type<N, Is...> {};
85template <
typename T,
T...
Is>
99template <
typename T, size_t N>
106template <
class T,
bool DoDouble>
107class fast_expand_sequence {
116 template <T... Is, T... Js>
126 template <size_t N, T... Is>
134class fast_expand_sequence<T,
true> {
140 template <size_t N, T... Is>
141 using type = make_sequence_impl<T, N -
sizeof...(Is), Is...,
sizeof...(Is) + Is...>;
227template <
typename...
Types>
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
Helper type to check that the requested sequence size is non-negative.
Definition integer_sequence.hpp:173
helper for constructing an integer sequence from 0 to N - 1
Definition integer_sequence.hpp:64
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:41
Definition integer_sequence.hpp:44
constexpr bool is_negative_v
Helper variable used to determine if an integer value is negative.
constexpr auto operator()(::arene::base::result< void, E > const &value) const noexcept(noexcept(hash< E >{}(std::declval< E const & >()))) -> std::size_t
Calculate the hash of a result.
Definition result.hpp:1827