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

Function bool_example

examples/src/bson_examples.cpp:131–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131void bool_example()
132{
133 std::map<std::string, bool> m{ {"a", true} };
134
135 std::vector<char> buffer;
136 bson::encode_bson(m, buffer);
137 std::cout << jsoncons::byte_string_view(buffer) << "\n\n";
138}
139
140void array_example()
141{

Callers 1

mainFunction · 0.85

Calls 2

encode_bsonFunction · 0.85
byte_string_viewClass · 0.85

Tested by

no test coverage detected