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 isn't there a heap class?

 
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: Mon Sep 06, 2004 3:23 pm    Post subject: Why isn't there a heap class? Reply with quote



TC++PL Sad1.Cool: [1][a] "If you can
think of "it" as a separate idea, make it a class."

Why isn't there a heap class, instead of functions like
std::make_heap()?

-- --
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
dietmar_kuehl@yahoo.com
Guest





PostPosted: Tue Sep 07, 2004 3:06 am    Post subject: Re: Why isn't there a heap class? Reply with quote



Hi,
Prateek R Karandikar wrote:
Quote:
Why isn't there a heap class, instead of functions like
std::make_heap()?

You might want to have a look at 'std::priority_queue'. This
class is specified and [probably (*)] implemented in terms of
the generic heap functions.

(*) Whether an implementation really uses these functions is
up to the implementation.
--
<mailto:dietmar_kuehl (AT) yahoo (DOT) com> <http://www.dietmar-kuehl.de/>
<http://www.contendix.com> - Software Development & Consulting

---
[ 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
Bill Wade
Guest





PostPosted: Tue Sep 07, 2004 10:30 pm    Post subject: Re: Why isn't there a heap class? Reply with quote



[email]kprateek88 (AT) yahoo (DOT) com[/email] (Prateek R Karandikar) wrote in message news:<607f883e.0409050146.67e9841b (AT) posting (DOT) google.com>...
Quote:
TC++PL Sad1.Cool: [1][a] "If you can
think of "it" as a separate idea, make it a class."

Why isn't there a heap class, instead of functions like
std::make_heap()?

If you want prior art:

Some heap classes were once submitted to boost. I think they've since
been removed, but it looks like some fossils are still at
http://guinness.cs.stevens.edu/packages/boost/libs/pri_queue/

HTH

---
[ 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.