58 _core = std::move(arr._core);
69 return _core.view_array();
92 return _core.extract_array();
116template <
typename... Args>
Provides bsoncxx::v_noabi::array::value.
Provides bsoncxx::v_noabi::array::view.
Declares bsoncxx::v_noabi::builder::basic::array.
The bsoncxx v_noabi macro guard postlude header.
The bsoncxx v_noabi macro guard prelude header.
array()
Default constructor.
Definition array.hpp:42
A read-only BSON array that owns its underlying buffer.
Definition value.hpp:37
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
sub_array(core *core)
Default constructor.
Definition sub_array.hpp:49
void append(Arg &&a, Args &&... args)
Appends multiple BSON values.
Definition sub_array.hpp:55
A low-level interface for constructing BSON documents and arrays.
Definition core.hpp:46
Provides bsoncxx::v_noabi::builder::core.
Declares bsoncxx::v_noabi::builder::basic::kvp.
Declares entities used with "basic" BSON builder syntax.
Declares entities used to build BSON documents.
Declares entities used with "basic" BSON builder syntax.
bsoncxx::v_noabi::array::value make_array(Args &&... args)
Creates an array from a list of elements.
Definition array.hpp:117
Declares entities used to build BSON documents.
Declares entities whose ABI stability is NOT guaranteed.
The top-level namespace within which all bsoncxx library entities are declared.
Provides bsoncxx::v_noabi::builder::basic::sub_array.