ParameterToGen

A template that turns a T into a Gen!T unless T is already a Gen or no Gen for given T is available.

template ParameterToGen (
T
) {}

Examples

1 alias GenInt = ParameterToGen!int;
2 
3 static fun(int i)
4 {
5     assert(i == 1337);
6 }
7 
8 GenInt a;
9 a.value = 1337;
10 fun(a);

Meta