Topic: Why not a copy_if() algorithm?
Author: NONONE@nowhere.com ("Jeff Flinn")
Date: Sat, 11 Sep 2004 00:11:01 GMT Raw View
"Prateek R Karandikar" <kprateek88@yahoo.com> wrote in message
news:607f883e.0409050147.16c2fdef@posting.google.com...
> Why isn't there a std::copy_if() algorithm that copies element
> satisfying a condition? I have read that it was "somehow" left out of
> the Standard, but there has to be a reason ...
Google groups for copy_if
Jeff F
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html ]
Author: paul_evans7@hotmail.com (Paul Evans)
Date: Thu, 9 Sep 2004 18:47:35 GMT Raw View
kprateek88@yahoo.com (Prateek R Karandikar) wrote in message news:<607f883e.0409050147.16c2fdef@posting.google.com>...
> Why isn't there a std::copy_if() algorithm that copies element
> satisfying a condition? I have read that it was "somehow" left out of
> the Standard, but there has to be a reason ...
>
> -- --
> Abstraction is selective ignorance.
> -Andrew Koenig
> -- --
>
> ---
> [ comp.std.c++ is moderated. To submit articles, try just posting with ]
> [ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
> [ --- Please see the FAQ before posting. --- ]
> [ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html ]
It was the algorithm actually used to copy the commitee selected
elements from the HP STL to the standard C++ library. Copying itself
resulted in infinite recusion that had to be terminated in order to
make the tight deadlines ;-)
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html ]
Author: kprateek88@yahoo.com (Prateek R Karandikar)
Date: Sun, 5 Sep 2004 15:57:04 GMT Raw View
Why isn't there a std::copy_if() algorithm that copies element
satisfying a condition? I have read that it was "somehow" left out of
the Standard, but there has to be a reason ...
-- --
Abstraction is selective ignorance.
-Andrew Koenig
-- --
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html ]