isFunctionType

template isFunctionType (
T
) {}

Members

Static variables

isFunctionType
bool isFunctionType;
Undocumented in source.

Parameters

T

type to check

Return Value

true if T is a function, function pointer or delegate

Examples

void foo1() { }
auto foo2 = () { };
static void foo3() { }

static assert (isFunctionType!(typeof(&foo1)));
static assert (isFunctionType!(typeof(foo2)));
static assert (isFunctionType!(typeof(&foo3)));
static assert (isFunctionType!(typeof(foo3)));

Meta