14 template <
typename FwIter,
typename Func>
17 FwIter second = first;
19 for (; second != end; ++first, ++second) {
37 template <
typename FwIter,
typename Func>
40 FwIter second = first;
42 for (; second != end; ++first, ++second) {
43 auto res = f(*first, *second);
FwIter forEachPairUntil(FwIter first, FwIter end, Func f)
Apply a function of all pairs in a sequenc in sorted order until a predicate returns true...
void forEachPair(FwIter first, FwIter end, Func f)
apply a function for each pair of adjacent elements in a range