Alias TypeOf

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

alias TypeOf(alias thing) = Quirks.QuirksStruct.thing;

Example

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