MCPcopy Create free account
hub / github.com/catboost/catboost / PopValue

Method PopValue

util/generic/queue.h:51–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers 1

Y_UNIT_TESTFunction · 0.45

Calls 7

pop_heapFunction · 0.50
moveFunction · 0.50
emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
backMethod · 0.45
pop_backMethod · 0.45

Tested by

no test coverage detected