| 47 | |
| 48 | template<class InputIterator, class Predicate> |
| 49 | bool all_of(InputIterator first, InputIterator last, Predicate pred) |
| 50 | { |
| 51 | while (first != last) |
| 52 | { |
| 53 | if (!pred(*first++)) |
| 54 | return false; |
| 55 | } |
| 56 | |
| 57 | return true; |
| 58 | } |
| 59 | |
| 60 | /** |
| 61 | * 25.2.2, any_of: |
no outgoing calls