isPurelyCallableWith

Check if fun is a function purely callable with arguments T.

enum bool isPurelyCallableWith(alias fun, T...);

Examples

static int foo(int x) @safe pure nothrow { return x; }
static assert(isPure!foo);
static assert(isPurelyCallableWith!(foo, int));

Meta