| 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 | { |
nothing calls this directly
no test coverage detected