isNogc

Check if fun is a @nogc function.

enum bool isNogc(alias fun);

Examples

static int foo(int x) @nogc pure nothrow;
static int goo(int x) pure nothrow;
static assert(isNogc!foo);
static assert(!isNogc!goo);

See Also

Meta