58 _core = std::move(arr._core);
116template <
typename... Args>
132using ::bsoncxx::v_noabi::builder::basic::make_array;
145#if defined(BSONCXX_PRIVATE_DOXYGEN_PREPROCESSOR)
152template <
typename... Args>
Provides bsoncxx::v_noabi::array::value.
Provides bsoncxx::v_noabi::array::view.
Declares bsoncxx::v_noabi::builder::basic::array.
The bsoncxx macro guard postlude header.
The bsoncxx macro guard prelude header.
A read-only BSON array that owns its underlying buffer. When a array::value goes out of scope,...
Definition value.hpp:36
A read-only, non-owning view of a BSON document.
Definition view.hpp:36
A traditional builder-style interface for constructing a BSON array.
Definition array.hpp:37
~array()=default
Destructor.
void clear()
Reset the underlying BSON to an empty array.
Definition array.hpp:98
bsoncxx::v_noabi::array::view view() const
Definition array.hpp:68
array(array &&arr) noexcept
Move constructor.
Definition array.hpp:52
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:91
array & operator=(array &&arr) noexcept
Move assignment operator.
Definition array.hpp:57
An internal class of builder::basic. Users should almost always construct a builder::basic::array ins...
Definition sub_array.hpp:41
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:46
void clear()
Deletes the contents of the underlying BSON datum. After calling clear(), the state of this class wil...
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.
Provides bsoncxx::v_noabi::builder::core.
Declares bsoncxx::v_noabi::builder::basic::kvp.
v_noabi::array::value make_array(Args &&... args)
bsoncxx::v_noabi::builder::basic::make_array
bsoncxx::v_noabi::array::value make_array(Args &&... args)
Creates an array from a list of elements.
Definition array.hpp:117
The top-level namespace within which all bsoncxx library entities are declared.
Provides bsoncxx::v_noabi::builder::basic::sub_array.