RepeatTuple

Repeats A n times.

Members

Aliases

RepeatTuple
alias RepeatTuple = GenericTuple!(A, RepeatTuple!(n - 1, A))
Undocumented in source.
RepeatTuple
alias RepeatTuple = GenericTuple!()
Undocumented in source.

Examples

static assert(is(RepeatTuple!(2, int) == TypeTuple!(int, int)));
static assert(RepeatTuple!(4, 5) == expressionTuple!(5, 5, 5, 5));

Analog of $(STDREF array, replicate) and $(STDREF range, repeat) for generic tuples except n is the first argument and there is no overload without it as tuples can't be infinite. Also it repeats a generic tuple, not only one value.

Meta