...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::algorithm::find_iterator — find_iterator
template<typename IteratorT> class find_iterator { public:   // construct/copy/destruct   find_iterator();   find_iterator(const find_iterator &);   template<typename FinderT> find_iterator(IteratorT, IteratorT, FinderT);   template<typename FinderT, typename RangeT> find_iterator(RangeT &, FinderT);   // public member functions   bool eof() const;   // private member functions   const match_type & dereference() const;   void increment() ;   bool equal(const find_iterator &) const; };
Find iterator encapsulates a Finder and allows for incremental searching in a string. Each increment moves the iterator to the next match.
Find iterator is a readable forward traversal iterator.
Dereferencing the iterator yields an iterator_range delimiting the current match.
find_iterator
construct/copy/destructfind_iterator();
Construct null iterator. All null iterators are equal.
Postconditions: eof()==true
find_iterator(const find_iterator & Other);
Construct a copy of the find_iterator
template<typename FinderT> Â Â find_iterator(IteratorT Begin, IteratorT End, FinderT Finder);
Construct new find_iterator for a given finder and a range.
template<typename FinderT, typename RangeT> Â Â find_iterator(RangeT & Col, FinderT Finder);
Construct new find_iterator for a given finder and a range.
find_iterator
private member functionsconst match_type & dereference() const;
void increment() ;
bool equal(const find_iterator & Other) const;
Copyright © 2002-2004 Pavol Droba |