allSatisfy

Undocumented in source.
template allSatisfy (
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

allSatisfy
enum allSatisfy;
Undocumented in source.

Examples

enum isIntOrString(alias T) = is(typeof(T) == int) || is(typeof(T) == string);
static assert(allSatisfy!(isIntOrString, 0, ""));
static assert(!allSatisfy!(isIntOrString, 0, false, ""));

enum isIntOrStringT(T) = is(T == int) || is(T == string);
static assert(allSatisfy!(isIntOrStringT, int, string));
static assert(!allSatisfy!(isIntOrStringT, int, bool, string));

Meta