56 _core = std::move(doc._core);
114template <
typename... Args>
130using ::bsoncxx::v_noabi::builder::basic::make_document;
143#if defined(BSONCXX_PRIVATE_DOXYGEN_PREPROCESSOR)
150template <
typename... Args>
Declares bsoncxx::v_noabi::builder::basic::array.
Declares bsoncxx::v_noabi::builder::basic::document.
The bsoncxx macro guard postlude header.
The bsoncxx macro guard prelude header.
A traditional builder-style interface for constructing a BSON document.
Definition document.hpp:38
bsoncxx::v_noabi::document::value extract()
Transfer ownership of the underlying document to the caller.
Definition document.hpp:89
document(document &&doc) noexcept
Move constructor.
Definition document.hpp:50
document()
Default constructor.
Definition document.hpp:43
bsoncxx::v_noabi::document::view view() const
Definition document.hpp:66
void clear()
Reset the underlying BSON to an empty document.
Definition document.hpp:96
document & operator=(document &&doc) noexcept
Move assignment operator.
Definition document.hpp:55
An internal class of builder::basic. Users should almost always construct a builder::basic::document ...
Definition sub_document.hpp:43
void append(Arg &&a, Args &&... args)
Appends multiple basic::kvp key-value pairs.
Definition sub_document.hpp:51
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::document::value extract_document()
Transfers ownership of the underlying document to the caller.
bsoncxx::v_noabi::document::view view_document() const
Gets a view over the document.
A read-only BSON document that owns its underlying buffer. When a document::value goes out of scope,...
Definition value.hpp:38
A read-only, non-owning view of a BSON document.
Definition view.hpp:35
Provides bsoncxx::v_noabi::builder::core.
Provides bsoncxx::v_noabi::document::value.
Provides bsoncxx::v_noabi::document::view.
Declares bsoncxx::v_noabi::builder::basic::kvp.
v_noabi::document::value make_document(Args &&... args)
bsoncxx::v_noabi::builder::basic::make_document
bsoncxx::v_noabi::document::value make_document(Args &&... args)
Creates a document from a list of key-value pairs.
Definition document.hpp:115
The top-level namespace within which all bsoncxx library entities are declared.
Provides bsoncxx::v_noabi::builder::basic::sub_document.