Heap question
bearophile
bearophileHUGS at lycos.com
Sat Aug 13 06:44:36 PDT 2011
I'd like to create an empty heap, and then add to it an arbitrary (and statically unknown) number of items, keeping the heap invariant valid all the time (this means the heap invariant is valid after each item is added to the heap, so I am free to pop items in any moment). Do you know if this is possible (and how) with the heap of std.container?
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list