MatchAll

get all items in a list of zero-parameter templates which successfully compiles

Members

Aliases

MatchAll
alias MatchAll = Filter!(compiles, patterns)
Undocumented in source.

Templates

compiles
template compiles(alias pattern)
Undocumented in source.

Examples

void a ()() {NONSENSE;}
byte b ()() {return 0;}
char c ()() {}
long d ()() {int x; ++x; return x;}

static assert (MatchAll!(a,b,c,d).stringof == q{tuple(b()(), d()())});

Meta