| 7 | // The find algorithm |
| 8 | template <class InputIterator, class T> |
| 9 | InputIterator find(InputIterator first, InputIterator last, const T& value) { |
| 10 | while (first != last) { |
| 11 | if (*first == value) { |
| 12 | return first; |
| 13 | } |
| 14 | ++first; |
| 15 | } |
| 16 | return last; |
| 17 | } |
| 18 | |
| 19 | // The remove algorithm |
| 20 | template <class ForwardIterator, class T> |