 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Prateek R Karandikar Guest
|
Posted: Sun Sep 05, 2004 3:57 pm Post subject: Why not a copy_if() algorithm? |
|
|
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 ]
|
|
| Back to top |
|
 |
Paul Evans Guest
|
Posted: Thu Sep 09, 2004 6:47 pm Post subject: Re: Why not a copy_if() algorithm? |
|
|
[email]kprateek88 (AT) yahoo (DOT) com[/email] (Prateek R Karandikar) wrote in message news:<607f883e.0409050147.16c2fdef (AT) posting (DOT) google.com>...
| Quote: | 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 ]
|
|
| Back to top |
|
 |
Jeff Flinn Guest
|
Posted: Sat Sep 11, 2004 12:11 am Post subject: Re: Why not a copy_if() algorithm? |
|
|
"Prateek R Karandikar" <kprateek88 (AT) yahoo (DOT) com> wrote
| Quote: | 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 ]
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|