| 848 | // f is a visitor function that will be repeatedly called with (index, element) arguments |
| 849 | template <class F> |
| 850 | void ForEach(F&& f) { |
| 851 | SubsetIndexing->ForEach( |
| 852 | [src = this->Src, f = std::move(f)](TSize index, TSize srcIndex) { |
| 853 | f(index, (*src)[srcIndex]); |
| 854 | } |
| 855 | ); |
| 856 | }; |
| 857 | |
| 858 | template <class F> |
| 859 | void ForEach(F&& f) const { |