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

Function double_example

examples/src/bson_examples.cpp:122–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122void double_example()
123{
124 std::map<std::string, double> m{ {"a", 123.4567} };
125
126 std::vector<char> buffer;
127 bson::encode_bson(m, buffer);
128 std::cout << jsoncons::byte_string_view(buffer) << "\n\n";
129}
130
131void bool_example()
132{

Callers 1

mainFunction · 0.85

Calls 2

encode_bsonFunction · 0.85
byte_string_viewClass · 0.85

Tested by

no test coverage detected