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

Method Set

library/cpp/json/json_reader.cpp:207–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205
206 template <class T>
207 void Set(const T& t) {
208 if (Access(S.top()).IsArray()) {
209 Access(S.top()).AppendValue(t);
210 } else {
211 Access(S.top()) = t;
212 S.pop();
213 }
214 }
215
216 bool Null() {
217 Set(NJson::JSON_NULL);

Callers

nothing calls this directly

Calls 4

AppendValueMethod · 0.80
AccessEnum · 0.50
IsArrayMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected