/third_party/json/docs/examples/ |
D | dump.cpp | 9 json j_object = {{"one", 1}, {"two", 2}}; in main() local 15 << j_object.dump() << "\n\n" in main() 16 << j_object.dump(-1) << "\n\n" in main() 17 << j_object.dump(0) << "\n\n" in main() 18 << j_object.dump(4) << "\n\n" in main() 19 << j_object.dump(1, '\t') << "\n\n"; in main()
|
D | find__object_t_key_type.cpp | 9 json j_object = {{"one", 1}, {"two", 2}}; in main() local 12 auto it_two = j_object.find("two"); in main() 13 auto it_three = j_object.find("three"); in main() 17 std::cout << "\"two\" was found: " << (it_two != j_object.end()) << '\n'; in main() 19 std::cout << "\"three\" was found: " << (it_three != j_object.end()) << '\n'; in main()
|
D | find__keytype.c++17.cpp | 11 json j_object = {{"one", 1}, {"two", 2}}; in main() local 14 auto it_two = j_object.find("two"sv); in main() 15 auto it_three = j_object.find("three"sv); in main() 19 std::cout << "\"two\" was found: " << (it_two != j_object.end()) << '\n'; in main() 21 std::cout << "\"three\" was found: " << (it_three != j_object.end()) << '\n'; in main()
|
D | erase__IteratorType_IteratorType.cpp | 12 json j_object = {{"one", 1}, {"two", 2}}; in main() local 20 j_object.erase(j_object.find("two"), j_object.end()); in main() 28 std::cout << j_object << '\n'; in main()
|
D | erase__object_t_key_type.cpp | 9 json j_object = {{"one", 1}, {"two", 2}}; in main() local 12 auto count_one = j_object.erase("one"); in main() 13 auto count_three = j_object.erase("three"); in main() 16 std::cout << j_object << '\n'; in main()
|
D | erase__keytype.c++17.cpp | 11 json j_object = {{"one", 1}, {"two", 2}}; in main() local 14 auto count_one = j_object.erase("one"sv); in main() 15 auto count_three = j_object.erase("three"sv); in main() 18 std::cout << j_object << '\n'; in main()
|
D | operator_ltlt__basic_json.cpp | 10 json j_object = {{"one", 1}, {"two", 2}}; in main() local 14 std::cout << j_object << "\n\n"; in main() 18 std::cout << std::setw(4) << j_object << "\n\n"; in main() 20 std::cout << std::setw(1) << std::setfill('\t') << j_object << "\n\n"; in main()
|
D | erase__IteratorType.cpp | 12 json j_object = {{"one", 1}, {"two", 2}}; in main() local 20 j_object.erase(j_object.find("two")); in main() 28 std::cout << j_object << '\n'; in main()
|
D | count__object_t_key_type.cpp | 9 json j_object = {{"one", 1}, {"two", 2}}; in main() local 12 auto count_two = j_object.count("two"); in main() 13 auto count_three = j_object.count("three"); in main()
|
D | count__keytype.c++17.cpp | 11 json j_object = {{"one", 1}, {"two", 2}}; in main() local 14 auto count_two = j_object.count("two"sv); in main() 15 auto count_three = j_object.count("three"sv); in main()
|
D | contains__object_t_key_type.cpp | 10 json j_object = R"( {"key": "value"} )"_json; in main() local 15 "j_object contains 'key': " << j_object.contains("key") << '\n' << in main() 16 "j_object contains 'another': " << j_object.contains("another") << '\n' << in main()
|
D | contains__keytype.c++17.cpp | 12 json j_object = R"( {"key": "value"} )"_json; in main() local 17 "j_object contains 'key': " << j_object.contains("key"sv) << '\n' << in main() 18 "j_object contains 'another': " << j_object.contains("another"sv) << '\n' << in main()
|
D | basic_json__InputIt_InputIt.cpp | 11 json j_object = {{"one", "eins"}, {"two", "zwei"}}; in main() local 16 json j_object_range(j_object.begin(), j_object.find("two")); in main()
|
D | clear.cpp | 13 json j_object = {{"one", 1}, {"two", 2}}; in main() local 22 j_object.clear(); in main() 31 std::cout << j_object << '\n'; in main()
|
D | type_name.cpp | 14 json j_object = {{"one", 1}, {"two", 2}}; in main() local 24 std::cout << j_object << " is an " << j_object.type_name() << '\n'; in main()
|
D | contains__keytype.c++17.output | 1 j_object contains 'key': true 2 j_object contains 'another': false
|
D | contains__object_t_key_type.output | 1 j_object contains 'key': true 2 j_object contains 'another': false
|
D | items.cpp | 9 json j_object = {{"one", 1}, {"two", 2}}; in main() local 13 for (auto& x : j_object.items()) in main()
|
D | basic_json__list_init_t.cpp | 10 json j_object = { {"one", 1}, {"two", 2} }; in main() local 17 std::cout << j_object << '\n'; in main()
|
D | max_size.cpp | 13 json j_object = {{"one", 1}, {"two", 2}}; in main() local 22 std::cout << j_object.max_size() << '\n'; in main()
|
D | front.cpp | 13 json j_object = {{"one", 1}, {"two", 2}}; in main() local 24 std::cout << j_object.front() << '\n'; in main()
|
D | back.cpp | 12 json j_object = {{"one", 1}, {"two", 2}}; in main() local 22 std::cout << j_object.back() << '\n'; in main()
|
/third_party/json/tests/src/ |
D | unit-algorithms.cpp | 17 json j_object = {{"one", 1}, {"two", 2}}; variable 27 CHECK(std::all_of(j_object.begin(), j_object.end(), [](const json & value) 39 CHECK(std::any_of(j_object.begin(), j_object.end(), [](const json & value) 51 CHECK(std::none_of(j_object.begin(), j_object.end(), [](const json & value) 120 CHECK(std::equal(j_object.begin(), j_object.end(), j_object.begin())); 121 CHECK(!std::equal(j_array.begin(), j_array.end(), j_object.begin()));
|
D | unit-iterators2.cpp | 246 json j_object = {{"one", 1}, {"two", 2}, {"three", 3}}; variable 256 auto it = j_object.begin(); 260 auto it = j_object.cbegin(); 264 auto it = j_object.begin(); 268 auto it = j_object.cbegin(); 272 auto it = j_object.begin(); 276 auto it = j_object.cbegin(); 280 auto it = j_object.begin(); 284 auto it = j_object.cbegin(); 288 auto it = j_object.begin(); [all …]
|
/third_party/json/docs/mkdocs/docs/api/basic_json/ |
D | items.md | 14 for (auto it = j_object.begin(); it != j_object.end(); ++it) 23 for (auto it : j_object) 33 for (auto& el : j_object.items()) 43 for (auto& [key, val] : j_object.items())
|