Is this as simple as swap_ranges + reverse_iterator?
difference_type N = distance(first, last);
BidirectionalIterator half(first); advance(half, N / 2);
swap_ranges(first, half, make_reverse_iterator(last));
http://code.google.com/p/thrust/source/browse/thrust/detail/reverse.inl
Original issue reported on code.google.com by wnbell on 24 Jan 2011 at 7:34
Original issue reported on code.google.com by
wnbell
on 24 Jan 2011 at 7:34