The OpenD Programming Language

isSaturatedRandomEngine

Test if T is a saturated random-bit generator. A random number generator is saturated if T.max == ReturnType!T.max. A type should define enum isRandomEngine = true; to be a random engine.

template isSaturatedRandomEngine (
T
) {
static if(isRandomEngine!T)
enum isSaturatedRandomEngine;
static if(!(isRandomEngine!T))
enum isSaturatedRandomEngine;
}

Meta