| 179 | /// Like std::for_each but can pass in another range like std::transform |
| 180 | template <class Iterator1, class Iterator2, class F> |
| 181 | F for_each(Iterator1 first1, Iterator1 last1, Iterator2 first2, F f) |
| 182 | { |
| 183 | for(; first1 != last1; ++first1, ++first2) |
| 184 | f(*first1, *first2); |
| 185 | return f; |
| 186 | } |
| 187 | |
| 188 | template <class Iterator1, class Iterator2> |
| 189 | std::ptrdiff_t |
no outgoing calls