a without evaluating b if cond is true.
Otherwise, returns b without evaluating a.
A select(bool cond : true, A, B)(A a, lazy B b)Select one of two functions to run via template parameter.
cond | A bool which determines which function is run |
a | The first function |
b | The second function |
a without evaluating b if cond is true.
Otherwise, returns b without evaluating a.
B select(bool cond : false, A, B)(lazy A a, B b)Ditto