PrevUpHomeNext

Function template foreach_subrange

boost::text::foreach_subrange

Synopsis

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


template<typename FwdIter, typename Sentinel, typename Func, typename Proj> 
  Func foreach_subrange(FwdIter first, Sentinel last, Func f, Proj proj);

Description

Calls f(sub) for each subrange sub in [first, last). A subrange is a contiguous subsequence of elements that for each element e, proj(e) each compares equal to proj() of the first element of the subsequence. Subranges passed to f are non-overlapping.


PrevUpHomeNext