Xref: utzoo comp.lang.c++:8746 comp.object:1536 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!dali.cs.montana.edu!milton!ogicse!littlei!dander.hf.intel.com!zack From: dander.hf.intel.com!zack (Zack Smith @dander) Newsgroups: comp.lang.c++,comp.object Subject: Request for code Message-ID: <1259@gandalf.littlei.UUCP> Date: 2 Aug 90 18:39:37 GMT Sender: root@littlei.UUCP Reply-To: zack@dander.hf.intel.com (Zack Smith @dander) Organization: Intel Corp., Development Tools Operation, Hillsboro, OR Lines: 18 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)