(Available since version 1.0)
Heap::update — Updates a node in the heap to a new value
Updates a node in the heap from its current value to a
new value, value2
. Where the
current value is given by executing
Heap::value() on
value1
.
If two nodes in the heap have the same value then only one will be changed.
value1
The current value.
value2
The new value.
No value is returned.
Throws SEIDS::Heaps::UpdateException when
value1
is not in the heap.