MCPcopy Create free account
hub / github.com/danielaparker/jsoncons / erase

Function erase

include/jsoncons/basic_json.hpp:4156–4169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4154 }
4155
4156 object_iterator erase(const_object_iterator pos)
4157 {
4158 switch (storage_kind())
4159 {
4160 case json_storage_kind::empty_object:
4161 return object_range().end();
4162 case json_storage_kind::object:
4163 return object_iterator(cast<object_storage>().value().erase(pos));
4164 case json_storage_kind::json_ref:
4165 return cast<json_ref_storage>().value().erase(pos);
4166 default:
4167 JSONCONS_THROW(json_runtime_error<std::domain_error>("Not an object"));
4168 }
4169 }
4170
4171 object_iterator erase(const_object_iterator first, const_object_iterator last)
4172 {

Callers

nothing calls this directly

Calls 8

storage_kindFunction · 0.85
object_rangeFunction · 0.85
not_an_objectClass · 0.85
endMethod · 0.45
eraseMethod · 0.45
valueMethod · 0.45
dataMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected