Alias isStatic
Returns is the given thing is either a static function or a static declaration declaration
alias isStatic(alias thing)
= Alias!(__traits(isStaticFunction,thing));
Example
struct S {
static long id;
int age;
static string name() {
return "name";
}
void update(bool force) { }
}
isStatic!(S .id); // true
isStatic!(S .age); // false
isStatic!(S .name); // true
isStatic!(S .update); // false