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

Function main

example/addmember.cpp:6–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include "sonic/sonic.h"
5
6int main() {
7 using NodeType = sonic_json::Node;
8 using Allocator = typename NodeType::AllocatorType;
9 sonic_json::Node node;
10 Allocator alloc;
11
12 node.SetObject();
13 node.AddMember("Key", NodeType("Value", alloc), alloc);
14 std::cout << "Add member successfully!\n";
15 return 0;
16}
17// g++ -I../include/ -march=haswell --std=c++11 get_and_set.cpp -o get_and_set

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected