PrevUpHomeNext

Function template foreach_subrange_if

boost::text::foreach_subrange_if

Synopsis

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


template<typename FwdIter, typename Sentinel, typename Pred, typename Func> 
  Func foreach_subrange_if(FwdIter first, Sentinel last, Pred p, Func f);

Description

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


PrevUpHomeNext