staticMap2

Same as std.typetyple.staticMap, but passes two arguments to the first template.

template staticMap2 (
T...
) {}

Examples

Example

1 template Test(T...)
2 {
3     enum Test = T[0] && T[1];
4 }
5 
6 static assert([staticMap2!(Test, true, true, true, false)] == [true, false]);

Meta