17 #include <bsoncxx/builder/basic/array-fwd.hpp>
19 #include <bsoncxx/array/value.hpp>
20 #include <bsoncxx/array/view.hpp>
21 #include <bsoncxx/builder/basic/impl.hpp>
22 #include <bsoncxx/builder/basic/kvp.hpp>
23 #include <bsoncxx/builder/basic/sub_array.hpp>
24 #include <bsoncxx/builder/core.hpp>
26 #include <bsoncxx/config/prelude.hpp>
53 _core = std::move(arr._core);
108 template <
typename... Args>
111 array.append(std::forward<Args>(args)...);
112 return array.extract();
124 using ::bsoncxx::v_noabi::builder::basic::make_array;
130 #include <bsoncxx/config/postlude.hpp>
A read-only BSON array that owns its underlying buffer.
Definition: value.hpp:36
A read-only, non-owning view of a BSON document.
Definition: view.hpp:36
A JSON-like builder for creating arrays.
Definition: list.hpp:180
A traditional builder-style interface for constructing a BSON array.
Definition: array.hpp:37
void clear()
Reset the underlying BSON to an empty array.
Definition: array.hpp:90
array & operator=(array &&arr) noexcept
Move assignment operator.
Definition: array.hpp:52
bsoncxx::v_noabi::array::view view() const
Definition: array.hpp:60
array(array &&arr) noexcept
Move constructor.
Definition: array.hpp:47
array()
Default constructor.
Definition: array.hpp:42
bsoncxx::v_noabi::array::value extract()
Transfer ownership of the underlying array to the caller.
Definition: array.hpp:83
An internal class of builder::basic.
Definition: sub_array.hpp:41
sub_array(core *core)
Default constructor.
Definition: sub_array.hpp:46
A low-level interface for constructing BSON documents and arrays.
Definition: core.hpp:45
void clear()
Deletes the contents of the underlying BSON datum.
bsoncxx::v_noabi::array::view view_array() const
Gets a view over the array.
bsoncxx::v_noabi::array::value extract_array()
Transfers ownership of the underlying document to the caller.
The top-level namespace for bsoncxx library entities.
Definition: element-fwd.hpp:19