MCPcopy Create free account
hub / github.com/bytedance/sonic-cpp / DestroyMap

Method DestroyMap

include/sonic/dom/dynamicnode.h:300–307  ·  view source on GitHub ↗

* @brief Destory the created map. This means that you don't want maintain the * map anymore. */

Source from the content-addressed store, hash-verified

298 * map anymore.
299 */
300 void DestroyMap() {
301 sonic_assert(this->IsObject());
302 if (getMap()) {
303 getMap()->~map_type();
304 Allocator::Free(getMap());
305 setMap(nullptr);
306 }
307 }
308
309 using BaseNode::RemoveMember;
310

Callers 1

mainFunction · 0.80

Calls 1

IsObjectMethod · 0.80

Tested by

no test coverage detected