Using std.container.BinaryHeap like C++
Paulo Pinto via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Aug 17 11:54:30 PDT 2014
Hi,
I was wondering if it is possible to use the BinaryHeap store like
the C++'s make_heap/pop_heap/push_heap functions.
I would like to port to D some A* C++ code I have which rearranges the
priorities on the underlying store, followed by another
make_heap() call on the vector used as store.
Doing the same in D by calling again heapify() does not seem to provide
similar behavior.
Just curious about it, as I don't plan to invest too much time on it.
Thanks,
Paulo
More information about the Digitalmars-d-learn
mailing list