Closed GoogleCodeExporter closed 8 years ago
IIRC we decided that InputIterator was fine, since reduce_by_key is more like
unique_copy [1] than unique [2]. Specifically, you can respect InputIterator
semantics by storing the result of *first in a temporary variable.
[1] http://www.sgi.com/tech/stl/unique_copy.html
[2] http://www.sgi.com/tech/stl/unique.html
Original comment by wnbell
on 18 Dec 2010 at 9:06
Original issue reported on code.google.com by
jaredhoberock
on 7 Dec 2010 at 6:04