1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
hi(all_of) hi(any_of) hi(none_of)
itemization(
it() Header file: tt(<algorithm>)
it() Function prototypes:
itemization(
itt(bool all_of([ExecPol,] InputIterator first,
InputIterator last, Predicate pred);)
itt(bool any_of([ExecPol,] InputIterator first,
InputIterator last, Predicate pred);)
itt(bool none_of([ExecPol,] InputIterator first,
InputIterator last, Predicate pred);)
)
it() Description:
itemization(
it() The first prototype returns tt(true) if the unary predicate
tt(pred) returns tt(true) for all elements reached from the iterator range
rangett(first, last); otherwise tt(false) is returned.
it() The second prototype returns tt(true) if the unary predicate
tt(pred) returns tt(true) for at least on of the elements reached from the
iterator range rangett(first, last); otherwise tt(false) is returned.
it() The third prototype returns tt(true) if the unary predicate
tt(pred) returns tt(true) for none of the elements reached from the iterator
range rangett(first, last); otherwise tt(false) is returned.
)
it() Example:
verbinclude(-a examples/allof.cc)
)
|