The OpenD Programming Language

all.all

Returns true if and only if the input range range is empty or _all values found in range satisfy the predicate pred. Performs (at most) O(range.length) evaluations of pred.

template all(alias pred = "a")
bool
all
(
Range
)
(
Range range
)
if (
isInputRange!Range &&
(
__traits(isTemplate, pred) ||
is(typeof(unaryFun!pred(range.front)))
)
)

Meta