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

Function GetMapPointer

library/cpp/json/writer/json_value.cpp:1044–1051  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1042 //****************************************************************
1043
1044 bool GetMapPointer(const TJsonValue& jv, const size_t index, const TJsonValue::TMapType** value) {
1045 const TJsonValue* v;
1046 if (!jv.GetValuePointer(index, &v) || !v->IsMap()) {
1047 return false;
1048 }
1049 *value = &v->GetMap();
1050 return true;
1051 }
1052
1053 bool GetArrayPointer(const TJsonValue& jv, const size_t index, const TJsonValue::TArray** value) {
1054 const TJsonValue* v;

Callers 1

Y_UNIT_TESTFunction · 0.70

Calls 3

GetValuePointerMethod · 0.45
IsMapMethod · 0.45
GetMapMethod · 0.45

Tested by

no test coverage detected