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

Method Encode

library/cpp/json/converter/converter.h:55–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 template <typename T, typename E>
54 struct TDefaultMapEncoder {
55 static TJsonValue Encode(const T& value) {
56 TJsonValue result(NJson::JSON_MAP);
57 auto& encodedMap = result.GetMapSafe();
58 for (const auto& [key, element] : value) {
59 encodedMap[key] = TConverter<E>::Encode(element);
60 }
61 return result;
62 }
63 };
64
65 template <typename T, typename E>

Callers

nothing calls this directly

Calls 1

EncodeFunction · 0.50

Tested by

no test coverage detected