MCPcopy Create free account
hub / github.com/boostorg/json / usingParseInto

Function usingParseInto

test/snippets.cpp:1122–1134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1120}
1121
1122void
1123usingParseInto()
1124{
1125// tag::doc_parse_into_1[]
1126 std::map< std::string, std::vector<int> > vectors;
1127 string_view input = R"( { "even": [2,4,6], "odd": [1,3,5] } )";
1128 parse_into(vectors, input);
1129// end::doc_parse_into_1[]
1130
1131 std::string output = serialize(vectors);
1132 (void)output;
1133 assert( output == R"({"even":[2,4,6],"odd":[1,3,5]})" );
1134}
1135
1136} // namespace
1137

Callers 1

runMethod · 0.85

Calls 2

parse_intoFunction · 0.85
serializeFunction · 0.85

Tested by

no test coverage detected