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

Method Find

library/cpp/cache/cache.h:546–551  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

544 }
545
546 TIterator Find(const TKey& key) {
547 TIndexIterator it = Index.find(key);
548 if (it != Index.end())
549 List.Promote(const_cast<TItem*>(&*it));
550 return TIterator(it);
551 }
552
553 TIterator FindWithoutPromote(const TKey& key) const {
554 return TIterator(Index.find(key));

Callers 4

GetOrNullMethod · 0.45
EraseMethod · 0.45
GetValueMethod · 0.45
Y_UNIT_TESTFunction · 0.45

Calls 4

TIteratorClass · 0.70
findMethod · 0.45
endMethod · 0.45
PromoteMethod · 0.45

Tested by

no test coverage detected