TypeOf

Returns the type of thing. Accepts both expressions and types.

Members

Aliases

TypeOf
alias TypeOf = thing
Undocumented in source.
TypeOf
alias TypeOf = typeof(thing)
Undocumented in source.

Examples

struct S {
    long id;
    int age;
    string name() {
        return "name";
    }
}
int number;
S s;

TypeOf!int; // int
TypeOf!number; // int
TypeOf!S; // S
TypeOf!s; // S

Meta