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

Function clear

include/jsoncons/basic_json.hpp:4138–4154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4136 }
4137
4138 void clear()
4139 {
4140 switch (storage_kind())
4141 {
4142 case json_storage_kind::array:
4143 cast<array_storage>().value().clear();
4144 break;
4145 case json_storage_kind::object:
4146 cast<object_storage>().value().clear();
4147 break;
4148 case json_storage_kind::json_ref:
4149 cast<json_ref_storage>().value().clear();
4150 break;
4151 default:
4152 break;
4153 }
4154 }
4155
4156 object_iterator erase(const_object_iterator pos)
4157 {

Callers

nothing calls this directly

Calls 3

storage_kindFunction · 0.85
clearMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected