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

Method ValuePtr

util/system/tls.cpp:80–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78 }
79
80 inline TStoredValue** ValuePtr(size_t idx) {
81 // do not grow vector too much
82 if (idx < 10000) {
83 if (idx >= Values_.size()) {
84 Values_.resize(idx + 1);
85 }
86
87 return &Values_[idx];
88 }
89
90 return &FarValues_[idx];
91 }
92
93 private:
94 TVector<TStoredValue*> Values_;

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected