| 129 | |
| 130 | template <class Iterator, class Predicate, class Output> |
| 131 | void group_find(Iterator start, Iterator last, Predicate pred, Output out) |
| 132 | { |
| 133 | start = std::find_if(start, last, pred); |
| 134 | while(start != last) |
| 135 | { |
| 136 | auto it = std::find_if_not(start, last, pred); |
| 137 | out(start, it); |
| 138 | start = std::find_if(it, last, pred); |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | /// Similiar to std::remove_if but instead pass adjacent pairs to the predicate |
| 143 | template <class Iterator, class Predicate> |
no test coverage detected