staticMapN

Undocumented in source.

Members

Aliases

staticMapN
alias staticMapN = ExpressionList!()
Undocumented in source.
staticMapN
alias staticMapN = ExpressionList!(F!(T[0..i]))
Undocumented in source.
staticMapN
alias staticMapN = ExpressionList!(F!(T[0..i]), staticMapN!(i, F, T[i..$]))
Undocumented in source.

Examples

Example

template Test(bool a, bool b)
{
    enum Test = a && b;
}

static assert([staticMapN!(2, Test, true, true, true, false)] == [true, false]);

template Test3(alias T1, alias T2, alias T3)
{
    alias Test3 = StrictExpressionList!(T3, T2, T1);
} 

template Dummy(T) {
	enum toString = text("Dummy!", T.stringof);
}

static assert( staticEqual!( StrictExpressionList!(staticMapN!(3, Test3, Dummy!int, Dummy!float, Dummy!real)), StrictExpressionList!(StrictExpressionList!(Dummy!real, Dummy!float, Dummy!int) )) ); 

Meta