Repeat

template Repeat (
size_t n
L...
) if (
n > 0
) {}

Members

Aliases

Repeat
alias Repeat = L
Undocumented in source.
Repeat
alias Repeat = AliasSeq!(L, Repeat!(n - 1, L))
Undocumented in source.

Parameters

n

The number of times to repeat L.

L

The sequence to be repeated.

Return Value

L repeated n times.

Examples

static assert(is(Repeat!(1, uint, int) == AliasSeq!(uint, int)));
static assert(is(Repeat!(2, uint, int) == AliasSeq!(uint, int, uint, int)));
static assert(is(Repeat!(3) == AliasSeq!()));

Meta