typeOf

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

template typeOf(T)
@safe
typeOf
(
U
)
(
U
)

Examples

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

Meta