The OpenD Programming Language

isExpressions

Check whether the tuple T is an expression tuple. An expression tuple only contains expressions.

template isExpressions (
T...
) {
static if(!is(typeof(isExpressions) == bool) && (is(Ti) || !__traits(compiles, )))
enum isExpressions;
static if(!is(typeof(isExpressions) == bool))
enum isExpressions;
}

Examples

static assert(isExpressions!(1, 2.0, "a"));
static assert(!isExpressions!(int, double, string));
static assert(!isExpressions!(int, 2.0, "a"));

See Also

Meta