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

Method CleanupBefore

library/cpp/netliba/v12/paged_pod_buffer.h:57–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 }
56
57 void CleanupBefore(const T* regionBegin) {
58 // We leave elements preceding regionBegin in its page, we just don't want to store 100% garbage pages.
59 while (!V.empty() && !(&V.front().front() <= regionBegin && regionBegin <= &V.front().back())) {
60 V.pop_front();
61 }
62 }
63
64 void Clear() {
65 V.resize(1);

Callers 1

ForgetHeadUdpPacketsMethod · 0.80

Calls 4

pop_frontMethod · 0.80
emptyMethod · 0.45
frontMethod · 0.45
backMethod · 0.45

Tested by

no test coverage detected