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

Function operator_at_examples

examples/src/json_accessor_examples.cpp:123–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123void operator_at_examples()
124{
125 json image_formats(json_array_arg, {"JPEG","PSD","TIFF","DNG"});
126
127 json color_spaces(json_array_arg);
128 color_spaces.push_back("sRGB");
129 color_spaces.push_back("AdobeRGB");
130 color_spaces.push_back("ProPhoto RGB");
131
132 json export_settings;
133 export_settings["File Format Options"]["Color Spaces"] = std::move(color_spaces);
134 export_settings["File Format Options"]["Image Formats"] = std::move(image_formats);
135
136 std::cout << pretty_print(export_settings) << "\n\n";
137}
138
139void return_value_null_or_default_example()
140{

Callers 1

mainFunction · 0.85

Calls 2

pretty_printFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected