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

Method Erase

library/cpp/cache/cache.h:636–643  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

634 }
635
636 void Erase(TIterator it) {
637 TItem* item = const_cast<TItem*>(&*it.Iter);
638 List.Erase(item);
639 TDeleter::Destroy(item->Value);
640 Index.erase(it.Iter);
641
642 Y_ASSERT(Index.size() == List.GetSize());
643 }
644
645 bool Empty() const {
646 return Index.empty();

Callers 3

PickOutMethod · 0.45
ClearMethod · 0.45
Y_UNIT_TESTFunction · 0.45

Calls 4

DestroyFunction · 0.50
eraseMethod · 0.45
sizeMethod · 0.45
GetSizeMethod · 0.45

Tested by

no test coverage detected