A way to filter range by indices, to get min_element from filtered indices only?
In comments to this question is-there-a-way-to-iterate-over-at-most-n-elements-using-range-based-for-loop there was additional question - is this possible to have "index view" on a container, i.e. to have subrange with some indexes filtered out. Additionally I encountered a problem to find minimum value from a range with some indexes filtered out. I.e. is it possible to replace such code as below with std and/or boost algorithms, filters - to make it more readable and maintainable: template <typename Range, typename IndexPredicate> auto findMin(const Range& range, IndexPredicate ipred) ->