The OpenD Programming Language

isNdRandomVariable

Test if T is an n-dimensional random variable.

template isNdRandomVariable (
T
) {
static if(is(typeof(T.isNdRandomVariable) : bool))
static if(T.isNdRandomVariable)
enum isNdRandomVariable;
static if(is(typeof(T.isNdRandomVariable) : bool))
static if(!(T.isNdRandomVariable))
enum isNdRandomVariable;
static if(!(is(typeof(T.isNdRandomVariable) : bool)))
enum isNdRandomVariable;
}

Examples

static assert(isNdRandomVariable!(SphereVariable!double));

Meta