MCPcopy Create free account
hub / github.com/danielaparker/jsoncons / pool_allocator_examples

Function pool_allocator_examples

examples_boost/pool_allocator.cpp:18–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16using cust_json = basic_json<char,sorted_policy,boost::pool_allocator<char>>;
17
18void pool_allocator_examples()
19{
20 std::cout << "pool_allocator examples\n\n";
21
22 jsoncons::json_decoder<cust_json,boost::pool_allocator<char>> decoder;
23
24 static std::string s("[1,2,3,4,5,6]");
25 std::istringstream is(s);
26
27 basic_json_reader<char,stream_source<char>,boost::pool_allocator<char>> reader(is,decoder);
28 reader.read();
29
30 cust_json j = decoder.get_result();
31
32 std::cout << j << '\n';
33}
34

Callers 1

mainFunction · 0.85

Calls 2

get_resultMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected