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

Class MetaNode

include/sonic/dom/dynamicnode.h:351–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349#endif
350
351 struct MetaNode {
352 size_t cap;
353 map_type* map;
354
355 ~MetaNode() {
356 if (map) {
357 map->~map_type();
358 Allocator::Free(map);
359 }
360 }
361 MetaNode() : cap{0}, map{nullptr} {}
362 MetaNode(size_t n) : cap{n}, map{nullptr} {}
363 void SetMetaCap(size_t n) { cap = n; }
364 };
365
366 // Set APIs
367 DNode& setNullImpl() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected