22 #ifndef IBRCOMMON_ITERATOR_H_
23 #define IBRCOMMON_ITERATOR_H_
30 template<
class _ForwardIterator,
class _Tp>
33 _ForwardIterator _next;
38 : _ForwardIterator(begin), _next(begin), _match(__value)
42 bool next(_ForwardIterator end)
44 if (_next == end)
return false;
46 ((_ForwardIterator&)*
this) = std::find(_next, end, _match);
48 _next = ((_ForwardIterator&)*
this);