17 #include <bsoncxx/builder/basic/sub_array-fwd.hpp>
19 #include <bsoncxx/builder/basic/helpers.hpp>
20 #include <bsoncxx/builder/concatenate.hpp>
21 #include <bsoncxx/builder/core.hpp>
23 #include <bsoncxx/config/prelude.hpp>
33 void value_append(core* core, T&& t);
51 template <
typename Arg,
typename... Args>
52 BSONCXX_INLINE
void append(Arg&& a, Args&&... args) {
53 append_(std::forward<Arg>(a));
54 append(std::forward<Args>(args)...);
68 BSONCXX_INLINE
void append_(T&& t) {
69 impl::value_append(_core, std::forward<T>(t));
88 #include <bsoncxx/config/postlude.hpp>
A JSON-like builder for creating arrays.
Definition: list.hpp:180
An internal class of builder::basic.
Definition: sub_array.hpp:41
void append()
Inductive base-case for the variadic append(...)
Definition: sub_array.hpp:61
sub_array(core *core)
Default constructor.
Definition: sub_array.hpp:46
void append(Arg &&a, Args &&... args)
Appends multiple BSON values.
Definition: sub_array.hpp:52
A low-level interface for constructing BSON documents and arrays.
Definition: core.hpp:45
core & concatenate(const bsoncxx::v_noabi::document::view &view)
Appends the keys from a BSON document into this BSON datum.
bson_value::view view()
Provides a view of the underlying BSON value.
Definition: list.hpp:103
The top-level namespace for bsoncxx library entities.
Definition: element-fwd.hpp:19
Container to concatenate an array.
Definition: concatenate.hpp:64