Determines the type of T. If T is already a type, $(D_PSYMBOL TypeOf) aliases itself to T.
$(D_PSYMBOL TypeOf) evaluates to $(D_KEYWORD void) for template arguments.
The symbols that don't have a type and aren't types cannot be used as arguments to $(D_PSYMBOL TypeOf).
Expression, type or template.
The type of T.
struct S(T) { } static assert(is(TypeOf!S == void)); static assert(is(TypeOf!int == int)); static assert(is(TypeOf!true == bool)); static assert(!is(TypeOf!(tanya.meta)));
See Implementation
Determines the type of T. If T is already a type, $(D_PSYMBOL TypeOf) aliases itself to T.
$(D_PSYMBOL TypeOf) evaluates to $(D_KEYWORD void) for template arguments.
The symbols that don't have a type and aren't types cannot be used as arguments to $(D_PSYMBOL TypeOf).