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

Method Get

library/cpp/containers/comptrie/minimize.cpp:63–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61 }
62
63 size_t Get(size_t key) const {
64 size_t hikey = key & 0xFFFF;
65
66 if (Data.size() <= hikey)
67 return 0;
68
69 const TSizePairVector& sublist = Data[hikey];
70
71 for (const auto& it : sublist) {
72 if (it.first == key)
73 return it.second;
74 }
75
76 return 0;
77 }
78 };
79
80 class TOffsetDeltas {

Calls 1

sizeMethod · 0.45