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

Reply via email to