PrevUpHomeNext

Function template foreach_subrange_of

boost::text::foreach_subrange_of

Synopsis

// In header: <boost/text/algorithm.hpp>


template<typename FwdIter, typename Sentinel, typename T, typename Func> 
  Func foreach_subrange_of(FwdIter first, Sentinel last, T const & x, Func f);

Description

Calls f(sub) for each subrange sub in [first, last). A subrange is a contiguous subsequence of elements, each of which is equal to x. Subranges passed to f are non-overlapping.


PrevUpHomeNext