isNestedFunction

Determines if f is a function that requires a context pointer.

template isNestedFunction () {
enum isNestedFunction;
}

Parameters

f

The type to check Returns A bool

Examples

static void f() {}
static void fun()
{
    int i;
    int f() { return i; }

    static assert(isNestedFunction!(f));
}

static assert(!isNestedFunction!f);

Meta