Closed GoogleCodeExporter closed 8 years ago
Original comment by jaredhoberock
on 28 Sep 2010 at 4:19
Original comment by jaredhoberock
on 28 Sep 2010 at 4:19
Original comment by jaredhoberock
on 28 Sep 2010 at 4:19
Original comment by jaredhoberock
on 22 Oct 2010 at 10:09
I could really use this too. Not just in reduce_by_key, but also
remove_copy_if.
Original comment by andrew.c...@gmail.com
on 1 Dec 2010 at 8:09
Why is this useful for remove_copy_if?
Original comment by jaredhoberock
on 2 Dec 2010 at 11:36
I am calling remove_copy_if over a range of tuples. My pred is get<1>(*i) !=
-1. If this fails, then I want to write get<0>(*i) the output range, and
would prefer to just discard get<1>(*i)
Original comment by andrew.c...@gmail.com
on 2 Dec 2010 at 11:48
[deleted comment]
and so, I would do this by writing to
make_zip_iterator(make_tuple(values.begin(), make_discard_iterator()))
Original comment by andrew.c...@gmail.com
on 2 Dec 2010 at 11:56
Makes sense, I hadn't considered making discard_iterator a member of a
zip_iterator
Original comment by jaredhoberock
on 2 Dec 2010 at 11:58
This issue was closed by revision e78242b754.
Original comment by jaredhoberock
on 4 Feb 2011 at 4:04
Thanks for the patch! I'm going to test it right now, but it already looks
great!
Original comment by janick.m...@gmail.com
on 4 Feb 2011 at 9:15
Original issue reported on code.google.com by
janick.m...@gmail.com
on 28 Sep 2010 at 12:30