| 4 | #include "sonic/sonic.h" |
| 5 | |
| 6 | int 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 |
nothing calls this directly
no outgoing calls
no test coverage detected