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

Method copyToRoot

include/sonic/dom/generic_document.h:288–291  ·  view source on GitHub ↗

Note: it is a callback function in parse.parse_impl

Source from the content-addressed store, hash-verified

286
287 // Note: it is a callback function in parse.parse_impl
288 void copyToRoot(DNode<Allocator>& node) {
289 // copy to inherited DNode member
290 NodeType::operator=(std::move(node));
291 }
292
293 std::unique_ptr<Allocator> own_alloc_{nullptr};
294 Allocator* alloc_{nullptr}; // maybe external allocator

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected