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

Function GetMapPointer

library/cpp/json/ordered_maps/json_value_ordered.cpp:1064–1071  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1062 //****************************************************************
1063
1064 bool GetMapPointer(const TJsonValue& jv, const size_t index, const TJsonValue::TMapType** value) {
1065 const TJsonValue* v;
1066 if (!jv.GetValuePointer(index, &v) || !v->IsMap()) {
1067 return false;
1068 }
1069 *value = &v->GetMap();
1070 return true;
1071 }
1072
1073 bool GetArrayPointer(const TJsonValue& jv, const size_t index, const TJsonValue::TArray** value) {
1074 const TJsonValue* v;

Callers 1

Y_UNIT_TESTFunction · 0.50

Calls 3

GetValuePointerMethod · 0.45
IsMapMethod · 0.45
GetMapMethod · 0.45

Tested by

no test coverage detected