[comp.object] Request for code

zack (Zack Smith @dander) (08/03/90)

Has anybody got a C++ class for a heap that I can borrow?

What I need to do is take a bunch of these:

struct item {
	long key;
	void *data;
};

put them in a container, and be able to pull out the item with the smallest
key. I'd also need to know when the container is empty.

Excuse my posting to this newsgroup, I'm trying to avoid reinventing the
wheel, or searching the archives.

Thanks much,

-Zack Smith (zack@dander.hf.intel.com)