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

Method Erase

library/cpp/cache/cache.h:409–414  ·  view source on GitHub ↗

This method doesn't remove items from the heap. Erased items are stored in Removed set and will be deleted on-access (using FixHeap method)

Source from the content-addressed store, hash-verified

407 // Erased items are stored in Removed set
408 // and will be deleted on-access (using FixHeap method)
409 void Erase(TItem* item) {
410 Y_ASSERT(Size > 0);
411
412 --Size;
413 Removed.insert(item);
414 }
415
416 void Promote(TItem*) {
417 // do nothing

Callers

nothing calls this directly

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected