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

Method SetValueByPath

library/cpp/json/ordered_maps/json_value_ordered.cpp:943–950  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

941 }
942
943 bool TJsonValue::SetValueByPath(const TStringBuf path, const TJsonValue& value, char delimiter) {
944 TJsonValue* const ptr = GetValuePtrByPath<true>(this, path, delimiter);
945 if (ptr) {
946 *ptr = value;
947 return true;
948 }
949 return false;
950 }
951
952 bool TJsonValue::SetValueByPath(const TStringBuf path, TJsonValue&& value, char delimiter) {
953 TJsonValue* const ptr = GetValuePtrByPath<true>(this, path, delimiter);

Callers 1

Y_UNIT_TESTFunction · 0.45

Calls 1

moveFunction · 0.50

Tested by

no test coverage detected