* \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 * */
| 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. |