-
Notifications
You must be signed in to change notification settings - Fork 129
Expand file tree
/
Copy pathany_of.mwiki
More file actions
27 lines (22 loc) · 762 Bytes
/
Copy pathany_of.mwiki
File metadata and controls
27 lines (22 loc) · 762 Bytes
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
{{simdpp/title|any_of}}
{{misc/navbar}}
{{dcl begin}}
{{dcl |
template<typename T, typename UnaryPredicate>
bool any_of(T const* first, T const* last, UnaryPredicate pred);
}}
{{dcl end}}
{{misc/navbar}}
{{tt|all_of}} Checks if unary predicate p returns true for {{tt|at least one}} element in the range {{tt|[first, last)}}.
===Parameters===
{{par begin}}
{{par | first, last | the range of elements to examine}}
{{par | pred | unary predicate
{{par end}}
===Return value===
{{tt|true}} if unary predicate returns {{tt|true}} for at least one element in the range, {{tt|false}} otherwise. Returns {{tt|false}} if the range is empty.
===See also===
{{dsc begin}}
{{dsc inc | algorithm/dsc none_of}}
{{dsc inc | algorithm/dsc all_of}}
{{dsc end}}