stringOfTypeOf

The string representation of a type. Non-alias parameter overload.

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

Parameters

T

Type to get the string representation of.

Return Value

The string representation of the type.

Examples

static struct Foo {}
static struct Bar {}

assert(stringOfTypeOf!Foo == "Foo");
assert(stringOfTypeOf!Bar == "Bar");