 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Prateek R Karandikar Guest
|
Posted: Mon Sep 06, 2004 3:23 pm Post subject: Why isn't there a heap class? |
|
|
TC++PL 1. : [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
|
Posted: Tue Sep 07, 2004 3:06 am Post subject: Re: Why isn't there a heap class? |
|
|
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
|
Posted: Tue Sep 07, 2004 10:30 pm Post subject: Re: Why isn't there a heap class? |
|
|
[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 1. : [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 |
|
 |
|
|
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
|
|