10 Aug
2014
10 Aug
'14
3:33 p.m.
I am trying to create a range consisting of elements in a container at only even indexes. Is there a way to write something like: vec | boost::adaptors::indexed(0) | some_adaptor_to_choose_even_indexes I tried with boost::adaptors::filtered, but the index information is only present in iterators of the generated range, not in its value_type so it is not available in chained adaptors. - Arindam