BinaryHeap

bearophile bearophileHUGS at lycos.com
Thu Nov 7 01:00:10 PST 2013


Agustin:

> I'm trying to use BinaryHeap and i found out that i cannot use 
> foreach(). My question is, there is any other way to do it?, 
> can i iterate a BinaryHeap?

Please show the code :-)

Perhaps you need to look at the head, pop the head item, look at 
the head, etc.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list