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

Method Promote

library/cpp/cache/cache.h:259–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257 }
258
259 void Promote(TItem* item) {
260 size_t counter = ++item->Counter;
261 typename TListType::TIterator it = item;
262 while (it != List.End() && counter >= it->Counter) {
263 ++it;
264 }
265 item->LinkBefore(&*it);
266 }
267
268 [[nodiscard]] size_t GetSize() const {
269 return ItemsAmount;

Callers

nothing calls this directly

Calls 2

LinkBeforeMethod · 0.80
EndMethod · 0.45

Tested by

no test coverage detected