sp::integer_sequence
, and related free functions.
More...
|
template<typename... Ts> |
using | sp::cat_integer_sequences = decltype(catHelper(Ts{}...)) |
| Concatenate multiple integer sequences. More...
|
|
template<typename T , int N> |
using | sp::make_integer_sequence = __make_integer_seq< sp::integer_sequence, T, N > |
| Make a sequence of integers 0, 1, 2, ... N - 1 , in type T . More...
|
|
template<int Start, int Stride, int Steps> |
using | sp::strided_int_sequence = decltype(stridedIntegerSequenceHelper< Start, Stride >(__make_integer_seq< sp::integer_sequence, int, Steps >{})) |
| Create a sequence of integers over some range, with a given stride. More...
|
|
sp::integer_sequence
, and related free functions.
◆ HANDY_SHORTHANDS
#define HANDY_SHORTHANDS |
( |
|
N, |
|
|
|
T |
|
) |
| |
Value: \
template<int Len> \
using make_ ## N ## _sequence = __make_integer_seq<sp::integer_sequence, T, Len>; \
\ \
template<T... Ns> \
\ \
template<typename... Ts> \
\ \
template<int Start, int End> \
using make_bounded_ ## N ## _sequence = typename make_ ## N ## _sequence<End - Start>:: \
template map<tm::Add<Start>, T>;
Encodes a sequence of integral type T.
Definition: integer_sequence.hpp:113
◆ cat_integer_sequences
Concatenate multiple integer sequences.
Example
decltype(catHelper(Ts{}...)) cat_integer_sequences
Concatenate multiple integer sequences.
Definition: integer_sequence.hpp:634
- Template Parameters
-
Ts | Several integer sequences (of the same type) to concatenate. |
◆ make_integer_sequence
template<typename T , int N>
Make a sequence of integers 0, 1, 2, ... N - 1
, in type T
.
◆ strided_int_sequence
template<int Start, int Stride, int Steps>
Create a sequence of integers over some range, with a given stride.
Produces the sequence start, start + stride, start + (2 * stride), ...
up to a limit of Steps
-many terms.
- Template Parameters
-
Start | The first integer in the sequence |
Stride | The distance between adjacent elements in the sequence. |
Steps | The number of elements in the output sequence. |