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

Method EraseValue

library/cpp/json/writer/json_value.cpp:273–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271 }
272
273 void TJsonValue::EraseValue(const TStringBuf key) {
274 if (IsMap()) {
275 TMapType::iterator it = Value.Map->find(key);
276 if (it != Value.Map->end()) {
277 Value.Map->erase(it);
278 }
279 }
280 }
281
282 void TJsonValue::EraseValue(const size_t index) {
283 if (IsArray()) {

Callers 9

Y_UNIT_TESTFunction · 0.45
ParseOptionsFunction · 0.45
FindAndExtractParamFunction · 0.45
MapBuildPlainFoldFunction · 0.45
DeleteSeenOptionFunction · 0.45
CheckFitParamsFunction · 0.45
IsParamsCompatibleMethod · 0.45
RemoveInvalidParamsFunction · 0.45

Calls 7

IsArrayFunction · 0.85
IsMapFunction · 0.50
findMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected