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

Method GetValuePointer

library/cpp/json/ordered_maps/json_value_ordered.cpp:809–815  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

807 }
808
809 bool TJsonValue::GetValuePointer(const size_t index, const TJsonValue** value) const noexcept {
810 if (Type == JSON_ARRAY && index < Value.Array->size()) {
811 *value = &(*Value.Array)[index];
812 return true;
813 }
814 return false;
815 }
816
817 bool TJsonValue::GetValuePointer(const TStringBuf key, const TJsonValue** value) const noexcept {
818 if (Type == JSON_MAP) {

Callers 2

GetMapPointerFunction · 0.45
GetArrayPointerFunction · 0.45

Calls 3

sizeMethod · 0.45
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected