Document non-short-circuiting behavior of allSatisfy/anySatisfy.

This commit is contained in:
David Nadlinger 2012-07-15 00:49:28 +02:00
parent 41cca054a5
commit 395e360d74

View file

@ -560,6 +560,9 @@ unittest
Tests whether all given items satisfy a template predicate, i.e. evaluates to
$(D F!(T[0]) && F!(T[1]) && ... && F!(T[$ - 1])).
Evaluation is $(I not) short-circuited if a false result is encountered; the
template predicate must be instantiable with all the given items.
Example:
----
static assert(!allSatisfy!(isIntegral, int, double));
@ -592,6 +595,9 @@ unittest
Tests whether all given items satisfy a template predicate, i.e. evaluates to
$(D F!(T[0]) || F!(T[1]) || ... || F!(T[$ - 1])).
Evaluation is $(I not) short-circuited if a true result is encountered; the
template predicate must be instantiable with all the given items.
Example:
----
static assert(!anySatisfy!(isIntegral, string, double));