Alias FunctionAttributes
Returns the functionAttributes of func as an array of strings
alias FunctionAttributes(alias func)
= attributes;
Example
nothrow pure @trusted @nogc void foo();
pure @nogc void bar();
@safe
struct S {
pure void foo() {}
}
FunctionAttributes!foo; // ["nothrow", "pure", "@trusted", "@nogc"]
FunctionAttributes!bar; // ["pure", "@nogc", "@system"]
FunctionAttributes!(S .foo); // ["pure", "@safe"]