\brief Decrease the priority of an item to the given value. This function decreases the priority of an item to the given value. \param i The item. \param p The priority. \pre \e i must be stored in the heap with priority at least \e p.
| 283 | /// \param p The priority. |
| 284 | /// \pre \e i must be stored in the heap with priority at least \e p. |
| 285 | void decrease(const Item &i, const Prio &p) { |
| 286 | int idx = _iim[i]; |
| 287 | bubbleUp(idx, Pair(i,p)); |
| 288 | } |
| 289 | |
| 290 | /// \brief Increase the priority of an item to the given value. |
| 291 | /// |
no test coverage detected