MongoDB C++ Driver
mongocxx-3.7.0
|
17 #include <bsoncxx/builder/basic/helpers.hpp>
18 #include <bsoncxx/builder/concatenate.hpp>
19 #include <bsoncxx/builder/core.hpp>
21 #include <bsoncxx/config/prelude.hpp>
24 BSONCXX_INLINE_NAMESPACE_BEGIN
31 void value_append(core* core, T&& t);
49 template <
typename Arg,
typename... Args>
50 BSONCXX_INLINE
void append(Arg&& a, Args&&... args) {
51 append_(std::forward<Arg>(a));
52 append(std::forward<Args>(args)...);
66 BSONCXX_INLINE
void append_(T&& t) {
67 impl::value_append(_core, std::forward<T>(t));
83 BSONCXX_INLINE_NAMESPACE_END
86 #include <bsoncxx/config/postlude.hpp>
Top level namespace for MongoDB C++ BSON functionality.
Definition: element.hpp:24
void append(Arg &&a, Args &&... args)
Appends multiple BSON values.
Definition: sub_array.hpp:50
sub_array(core *core)
Default constructor.
Definition: sub_array.hpp:44
Container to concatenate an array.
Definition: concatenate.hpp:62
void append()
Inductive base-case for the variadic append(...)
Definition: sub_array.hpp:59
A low-level interface for constructing BSON documents and arrays.
Definition: core.hpp:42
bson_value::view view()
Provides a view of the underlying BSON value.
Definition: list.hpp:90
An internal class of builder::basic.
Definition: sub_array.hpp:39
A JSON-like builder for creating arrays.
Definition: list.hpp:166
core & concatenate(const document::view &view)
Appends the keys from a BSON document into this BSON datum.