MCPcopy Create free account
hub / github.com/AllentDan/LibtorchTutorials / clear

Method clear

lesson7-Detection/src/utils/tinystr.h:178–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176 }
177
178 void clear ()
179 {
180 //Lee:
181 //The original was just too strange, though correct:
182 // TiXmlString().swap(*this);
183 //Instead use the quit & re-init:
184 quit();
185 init(0,0);
186 }
187
188 /* Function to reserve a big amount of data when we know we'll need it. Be aware that this
189 function DOES NOT clear the content of the TiXmlString if any exists.

Callers 10

from_jsonFunction · 0.80
~input_stream_adapterMethod · 0.80
get_characterMethod · 0.80
resetFunction · 0.80
get_cbor_objectMethod · 0.80
get_msgpack_objectMethod · 0.80
get_ubjson_objectMethod · 0.80
destroyFunction · 0.80
clearFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected