Returns the number of arguments of function func. arity is undefined for variadic functions.
void foo(){} static assert(arity!foo == 0); void bar(uint){} static assert(arity!bar == 1); void variadicFoo(uint...){} static assert(!__traits(compiles, arity!variadicFoo));
See Implementation
Returns the number of arguments of function func. arity is undefined for variadic functions.