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

Function Clear

include/sonic/dom/genericnode.h:575–578  ·  view source on GitHub ↗

* @brief make this array or object empty * @return void */

Source from the content-addressed store, hash-verified

573 * @return void
574 */
575 void Clear() noexcept {
576 sonic_assert(this->IsContainer());
577 downCast()->clearImpl();
578 }
579
580 /**
581 * @brief Get object begin iterator.

Callers 1

~MemoryPoolAllocatorMethod · 0.85

Calls 2

downCastFunction · 0.85
IsContainerMethod · 0.80

Tested by

no test coverage detected