| 96 | /* generic implementation for the input iterator case */ |
| 97 | template<class InputIterator, class Predicate> |
| 98 | inline bool __any_if( InputIterator first, InputIterator last, Predicate pred, std::input_iterator_tag ){ |
| 99 | for ( ; first!=last ; first++ ) if ( pred(*first) ) return true ; |
| 100 | return false; |
| 101 | } |
| 102 | |
| 103 | /* RAI case */ |
| 104 | template<class RandomAccessIterator, class Predicate> |