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

Method Find

library/cpp/blockcodecs/core/stream.cpp:44–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 }
43
44 inline const ICodec* Find(TCodecID id) const {
45 TByID::const_iterator it = ByID.find(id);
46
47 if (it != ByID.end()) {
48 return it->second;
49 }
50
51 ythrow yexception() << "can not find codec by id " << id;
52 }
53
54 typedef THashMap<TCodecID, const ICodec*> TByID;
55 TByID ByID;

Callers 1

CodecByIDFunction · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected