MCPcopy Create free account
hub / github.com/arangodb/velocypack / buildObject

Function buildObject

examples/exampleAttributeTranslation.cpp:26–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26static Builder buildObject(Options const* options) {
27 Builder b(options);
28
29 b(Value(ValueType::Object));
30 b.add("foo", Value(42));
31 b.add("bar", Value("some string value"));
32 b.add("baz", Value(true));
33 b.close();
34
35 return b;
36}
37
38int main(int, char* []) {
39 VELOCYPACK_GLOBAL_EXCEPTION_TRY

Callers 1

mainFunction · 0.85

Calls 2

ValueClass · 0.50
addMethod · 0.45

Tested by

no test coverage detected