| 1120 | } |
| 1121 | |
| 1122 | void |
| 1123 | usingParseInto() |
| 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 |
no test coverage detected