| 49 | } |
| 50 | |
| 51 | inline T PopValue() { |
| 52 | Y_ASSERT(!this->empty()); |
| 53 | auto& container = this->c; |
| 54 | std::pop_heap(container.begin(), container.end(), this->comp); |
| 55 | T value = std::move(container.back()); |
| 56 | container.pop_back(); |
| 57 | return value; |
| 58 | } |
| 59 | |
| 60 | inline S& Container() Y_LIFETIME_BOUND { |
| 61 | return this->c; |