
2 Mar
2009
2 Mar
'09
4:28 p.m.
David Abrahams wrote:
on Mon Mar 02 2009, Robert Jones <robertgbjones-AT-gmail.com> wrote:
AFAICS there's no issue in principle with something like
vecn | boost::adaptors::sort
[...] The right answer may be to copy the range in that case.
You may not want to copy the range if the elements aren't copiable or are costly to copy. An alternative solution is simply to create an index instead, and use that index to iterate the range.