anySatisfy

Undocumented in source.
template anySatisfy (
alias Condition
T...
) {}

Members

Functions

func
bool func()
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

anySatisfy
enum anySatisfy;
Undocumented in source.

Examples

enum isIntOrString(alias T) = is(typeof(T) == int) || is(typeof(T) == string);
static assert(anySatisfy!(isIntOrString, 0, false));
static assert(!anySatisfy!(isIntOrString, ['s'], false));

enum isIntOrStringT(T) = is(T == int) || is(T == string);
static assert(anySatisfy!(isIntOrStringT, int, bool));
static assert(!anySatisfy!(isIntOrStringT, char[], bool));

Meta