A symbol.
$(D_KEYWORD true) if F is a function, function pointer or delegate, $(D_KEYWORD false) otherwise.
static assert(isSomeFunction!(void function())); static assert(isSomeFunction!(() {})); static assert(isSomeFunction!(void delegate())); void func() { } static void staticFunc() { } static assert(isSomeFunction!func); static assert(isSomeFunction!staticFunc); auto functionPointer = &staticFunc; auto dg = &func; static assert(isSomeFunction!functionPointer); static assert(isSomeFunction!dg); static assert(!isSomeFunction!int);
$(D_PSYMBOL isFunction), $(D_PSYMBOL isDelegate), $(D_PSYMBOL isFunctionPointer).