MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / decrease

Method decrease

include/win/boost/heap/fibonacci_heap.hpp:505–509  ·  view source on GitHub ↗

* \b Effects: Assigns \c v to the element handled by \c handle & updates the priority queue. * * \b Complexity: Logarithmic. * * \b Note: The new value is expected to be less than the current one * */

Source from the content-addressed store, hash-verified

503 * \b Note: The new value is expected to be less than the current one
504 * */
505 void decrease (handle_type handle, const_reference v)
506 {
507 handle.node_->value = super_t::make_node(v);
508 decrease(handle);
509 }
510
511 /**
512 * \b Effects: Updates the heap after the element handled by \c handle has been changed.

Callers

nothing calls this directly

Calls 2

make_nodeFunction · 0.85
updateFunction · 0.50

Tested by

no test coverage detected