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

Method Encode

library/cpp/json/converter/converter.h:28–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 template <typename T, typename E>
27 struct TDefaultArrayEncoder {
28 static TJsonValue Encode(const T& value) {
29 TJsonValue result(NJson::JSON_ARRAY);
30 auto& encodedArray = result.GetArraySafe();
31 for (const auto& element : value) {
32 encodedArray.push_back(TConverter<E>::Encode(element));
33 }
34 return result;
35 }
36 };
37
38 template <typename T, typename E>

Callers

nothing calls this directly

Calls 2

EncodeFunction · 0.50
push_backMethod · 0.45

Tested by

no test coverage detected