Iota

Template, similar to iota(), but generates a tuple at compile time.

Useful for "static foreach" loops, where range extrema are compile time constants:

foreach (i; Iota!(3))
a[i] = b[i];

// becomes unrolled and compiled as:
a[0] = b[0];
a[1] = b[1];
a[2] = b[2];

Members

Aliases

Iota
alias Iota = ExpressionList!()
Undocumented in source.
Iota
alias Iota = ExpressionList!(Iota!(stop - 1), stop - 1)
Undocumented in source.

Meta