17 #include <bsoncxx/builder/core.hpp>
18 #include <bsoncxx/builder/stream/array_context.hpp>
19 #include <bsoncxx/builder/stream/key_context.hpp>
20 #include <bsoncxx/builder/stream/value_context.hpp>
22 #include <bsoncxx/config/prelude.hpp>
25 inline namespace v_noabi {
54 return wrap_document();
62 BSONCXX_INLINE array_context<>
operator<<(open_array_type) {
77 _core->
append(std::forward<T>(t));
85 BSONCXX_INLINE key_context<> wrap_document() {
86 return key_context<>(_core);
113 #include <bsoncxx/config/postlude.hpp>
A low-level interface for constructing BSON documents and arrays.
Definition: core.hpp:43
core & append(const types::b_double &value)
Appends a BSON double.
core & open_array()
Opens a sub-array within this BSON datum.
core & open_document()
Opens a sub-document within this BSON datum.
A stream context which expects any number of values.
Definition: array_context.hpp:52
A stream context which expects a key, which can later be followed by value, then more key/value pairs...
Definition: key_context.hpp:49
A stream context which appends a single value.
Definition: single_context.hpp:36
key_context operator<<(open_document_type)
<< operator for opening a new subdocument in the core builder.
Definition: single_context.hpp:51
void operator<<(T &&t)
<< operator for accepting a real value and appending it to the core builder.
Definition: single_context.hpp:76
single_context(core *core)
Create a single_context given a core builder.
Definition: single_context.hpp:44
A stream context which expects a value, which can later be followed by more key/value pairs.
Definition: value_context.hpp:48
The top-level namespace for bsoncxx library entities.
Definition: element.hpp:24
The type of a stream manipulator to open a subdocument.
Definition: helpers.hpp:32