MCPcopy Create free account
hub / github.com/boostorg/parser / foreach_subrange

Function foreach_subrange

include/boost/parser/detail/text/algorithm.hpp:169–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167 non-overlapping. */
168 template<typename FwdIter, typename Sentinel, typename Func>
169 Func foreach_subrange(FwdIter first, Sentinel last, Func f)
170 {
171 while (first != last) {
172 auto const & x = *first;
173 auto const next = boost::parser::detail::text::find_not(first, last, x);
174 if (first != next) {
175 f(boost::parser::detail::text::foreach_subrange_range<FwdIter, Sentinel>(
176 first, next));
177 }
178 first = next;
179 }
180 return f;
181 }
182
183 /** Calls `f(sub)` for each subrange `sub` in `[first, last)`. A subrange
184 is a contiguous subsequence of elements that for each element `e`,

Callers

nothing calls this directly

Calls 2

find_notFunction · 0.85
find_if_notFunction · 0.85

Tested by

no test coverage detected