lion03 / thrust

Automatically exported from code.google.com/p/thrust
Apache License 2.0
0 stars 0 forks source link

generalize is_sorted_until to InputIterator #224

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
is_sorted_until won't work for InputIterator because it is implemented with 
find_if(zip)

Original issue reported on code.google.com by jaredhoberock on 24 Sep 2010 at 9:33

GoogleCodeExporter commented 8 years ago

Original comment by jaredhoberock on 4 Feb 2011 at 11:03

GoogleCodeExporter commented 8 years ago

Original comment by jaredhoberock on 31 Aug 2011 at 12:12

GoogleCodeExporter commented 8 years ago
c++11 std::is_sorted_until seems to work on ForwardIterators only [1], so no 
need to generalize this.

[1] http://en.cppreference.com/w/cpp/algorithm/is_sorted_until

Original comment by jaredhoberock on 31 Jan 2012 at 12:37