5#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_INTEGER_SEQUENCES_SEQUENTIAL_VALUES_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_INTEGER_SEQUENCES_SEQUENTIAL_VALUES_HPP_
15#include "arene/base/stdlib_choice/cstddef.hpp"
16#include "arene/base/stdlib_choice/enable_if.hpp"
17#include "arene/base/stdlib_choice/integer_sequence.hpp"
24namespace sequential_values_detail {
29static constexpr std::size_t max_number_of_elements{65535U};
35template <std::
size_t NumElements>
36extern constexpr bool is_valid_size_v = NumElements <= max_number_of_elements;
45 ElementType... Indices,
47constexpr auto make_index_sequence_array(std::integer_sequence<ElementType, Indices...>)
48 -> array<ElementType,
sizeof...(Indices)> {
66extern constexpr auto sequential_values_from = sequential_values_detail::make_index_sequence_array<ElementType>(
Definition accumulate.hpp:37
constexpr auto sequential_values_between
An array holding a sequence of integer values starting at Begin, ending at End and incrementing by 1 ...
constexpr auto sequential_values
An array holding a sequence of integer values starting at 0, incrementing by 1 each time.
constexpr auto sequential_values_from
An array holding a sequence of integer values starting at Begin, incrementing by 1 each time.
typename constraints_impl::constraints< EnableIfs... >::type constraints
Helper used to express template constraints in a consistent way using std::enable_if_t.
Definition constraints.hpp:51
typename make_integer_sequence_detail::make_from_impl< Type, Begin, Size >::type make_integer_sequence_from
Create an integer_sequence starting from a particular value.
Definition make_integer_sequence.hpp:92
Definition accumulate.hpp:36
::size_t size_t
A type suitable for holding the size of an object.
Definition cstddef.hpp:29
typename enable_if< Condition, Type >::type enable_if_t
Type alias to support constraining templates. Is an alias for the specified type if the Condition is ...
Definition enable_if.hpp:41