| 30 | /* generic implementation for the input iterator case */ |
| 31 | template<class InputIterator, class T> |
| 32 | inline bool __any( InputIterator first, InputIterator last, const T& value, std::input_iterator_tag ){ |
| 33 | for ( ;first!=last; first++) if ( *first==value ) return true; |
| 34 | return false; |
| 35 | } |
| 36 | |
| 37 | /* RAI case */ |
| 38 | template<class RandomAccessIterator, class T> |