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

Method Value

util/system/tls.cpp:67–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 };
66
67 inline TStoredValue* Value(const TKey* key) {
68 TStoredValue*& ret = *ValuePtr((size_t)key->Key);
69
70 if (!ret) {
71 THolder<TStoredValue> sv(new TStoredValue(key));
72
73 Storage_.PushFront(sv.Get());
74 ret = sv.Release();
75 }
76
77 return ret;
78 }
79
80 inline TStoredValue** ValuePtr(size_t idx) {
81 // do not grow vector too much

Callers 2

GetMethod · 0.45
SetMethod · 0.45

Calls 3

PushFrontMethod · 0.45
GetMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected