ExprType

get the type of a single-symbol expression

template ExprType (
alias symbol
) {}

Members

Aliases

ExprType
alias ExprType = typeof(symbol.identity)
Undocumented in source.

Examples

auto a (){return 1;}
auto b = 1;

static assert (!(is (typeof(a) == typeof(b))));
static assert (is (typeof(a()) == typeof(b)));
static assert (is (typeof(a()) == ExprType!a));
static assert (is (ExprType!a == ExprType!b));

Meta