| 94 | |
| 95 | template <typename T, typename Comp> |
| 96 | void |
| 97 | PriorityQueue<T, Comp>::push(PriorityQueueEntry<T> *entry) |
| 98 | { |
| 99 | ink_release_assert(entry != nullptr); |
| 100 | |
| 101 | int len = _v.size(); |
| 102 | _v.push_back(entry); |
| 103 | entry->index = len; |
| 104 | |
| 105 | _bubble_up(len); |
| 106 | } |
| 107 | |
| 108 | template <typename T, typename Comp> |
| 109 | PriorityQueueEntry<T> * |