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);
50 template <
typename Arg,
typename... Args>
51 BSONCXX_INLINE
void append(Arg&& a, Args&&... args) {
52 append_(std::forward<Arg>(a));
53 append(std::forward<Args>(args)...);
68 BSONCXX_INLINE
void append_(T&& t) {
69 impl::value_append(_core, std::forward<T>(t));
77 _core->concatenate(array.
view());
85 BSONCXX_INLINE_NAMESPACE_END
88 #include <bsoncxx/config/postlude.hpp> A low-level interface for constructing BSON documents and arrays.
Definition: core.hpp:42
An internal class of builder::basic.
Definition: sub_array.hpp:39
sub_array(core *core)
Default constructor.
Definition: sub_array.hpp:44
void append(Arg &&a, Args &&... args)
Appends multiple BSON values.
Definition: sub_array.hpp:51
void append()
Inductive base-case for the variadic append(...)
Definition: sub_array.hpp:60
array::view view() const
Accessor that provides a view of the wrapped concatenate array.
Definition: concatenate.hpp:85
A traditional builder-style interface for constructing a BSON array.
Definition: array.hpp:35
Container to concatenate an array.
Definition: concatenate.hpp:62
Top level namespace for MongoDB C++ BSON functionality.
Definition: element.hpp:24