C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Why not a copy_if() algorithm?

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language, library and standards
View previous topic :: View next topic  
Author Message
Prateek R Karandikar
Guest





PostPosted: Sun Sep 05, 2004 3:57 pm    Post subject: Why not a copy_if() algorithm? Reply with 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 ]

Back to top
Paul Evans
Guest





PostPosted: Thu Sep 09, 2004 6:47 pm    Post subject: Re: Why not a copy_if() algorithm? Reply with quote



[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





PostPosted: Sat Sep 11, 2004 12:11 am    Post subject: Re: Why not a copy_if() algorithm? Reply with quote




"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
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language, library and standards All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.