stringOfTypeOf

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

Should logically be called stringOf, but it's meant to make it easy to get the string types of a mixture of types and symbols.

  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");