allTuple

Detect whether all elements of a generic tuple A satisfy the predicate pred.

Returns true for an empty tuple.

Members

Aliases

predTemplate
alias predTemplate = unaryPred!pred
Undocumented in source.

Manifest constants

allTuple
enum allTuple;
Undocumented in source.
allTuple
enum allTuple;
Undocumented in source.
allTuple
enum allTuple;
Undocumented in source.

Examples

static assert( allTuple!(`false`));
static assert( allTuple!(`isIntegral!T`, byte, int));
static assert(!allTuple!("a & 1", 1, 2, 3));

Analog of $(STDREF algorithm, all) for generic tuples except pred must be explicitly specified.

Meta