stringOfTypeOf

The string representation of the type of something. Alias parameter overload.

  1. eponymoustemplate stringOfTypeOf(T)
  2. eponymoustemplate stringOfTypeOf(alias T)
    enum stringOfTypeOf ()

Parameters

T

Symbol whose type to get the string representation of.

Return Value

The string representation of the type.

Examples

static struct Foo {}

Foo foo;
int i;
alias n = int;

static assert(stringOfTypeOf!foo == "Foo");
static assert(stringOfTypeOf!i == "int");
static assert(stringOfTypeOf!n == "int");