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

Function GetArrayPointer

library/cpp/json/ordered_maps/json_value_ordered.cpp:1073–1080  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1071 }
1072
1073 bool GetArrayPointer(const TJsonValue& jv, const size_t index, const TJsonValue::TArray** value) {
1074 const TJsonValue* v;
1075 if (!jv.GetValuePointer(index, &v) || !v->IsArray()) {
1076 return false;
1077 }
1078 *value = &v->GetArray();
1079 return true;
1080 }
1081
1082 bool GetMapPointer(const TJsonValue& jv, const TStringBuf key, const TJsonValue::TMapType** value) {
1083 const TJsonValue* v;

Callers 2

Y_UNIT_TESTFunction · 0.50
Y_UNIT_TESTFunction · 0.50

Calls 3

GetValuePointerMethod · 0.45
IsArrayMethod · 0.45
GetArrayMethod · 0.45

Tested by

no test coverage detected