typeOf

Can be used to construct a meta function that checks if a symbol is of a type.

  1. auto typeOf(U )
    template typeOf(T)
    @safe
    typeOf
    (
    U
    )
    (
    U
    )
  2. eponymoustemplate typeOf(alias a)

Members

Enums

typeOf
eponymoustemplate typeOf(alias a)
Undocumented in source.

Functions

typeOf
auto typeOf(U )
Undocumented in source. Be warned that the author may not have intended to support it.

Examples

import std.meta : allSatisfy;
static assert(typeOf!int(3));
static assert(allSatisfy!(typeOf!int, 3));

Meta