isExpressions

Tells whether Args contains only expressions.

An expression is determined by applying $(D_KEYWORD typeof) to an argument:

static if (is(typeof(Args[i])))
{
 // Args[i] is an expression.
}
else
{
 // Args[i] is not an expression.
}

Members

Variables

isExpressions
enum bool isExpressions;
Undocumented in source.
isExpressions
enum bool isExpressions;
Undocumented in source.
isExpressions
enum bool isExpressions;
Undocumented in source.

Parameters

Args

Alias sequence.

Return Value

$(D_KEYWORD true) if Args consists only of expressions, $(D_KEYWORD false) otherwise.

Examples

static assert(isExpressions!(5, 8, 2));
static assert(isExpressions!());
static assert(!isExpressions!(int, uint, Object));
static assert(!isExpressions!(int, 8, Object));

template T(U)
{
}
static assert(!isExpressions!T);

Meta