59 _core = std::move(doc._core);
117template <
typename... Args>
133using ::bsoncxx::v_noabi::builder::basic::make_document;
Declares bsoncxx::v_noabi::builder::basic::array.
Declares bsoncxx::v_noabi::builder::basic::document.
The bsoncxx v_noabi macro guard postlude header.
The bsoncxx v_noabi macro guard prelude header.
A traditional builder-style interface for constructing a BSON document.
Definition document.hpp:41
bsoncxx::v_noabi::document::value extract()
Transfer ownership of the underlying document to the caller.
Definition document.hpp:92
document(document &&doc) noexcept
Move constructor.
Definition document.hpp:53
document()
Default constructor.
Definition document.hpp:46
bsoncxx::v_noabi::document::view view() const
Definition document.hpp:69
void clear()
Reset the underlying BSON to an empty document.
Definition document.hpp:99
document & operator=(document &&doc) noexcept
Move assignment operator.
Definition document.hpp:58
Represents a document element being constructed during an append operation.
Definition sub_document.hpp:46
void append(Arg &&a, Args &&... args)
Appends multiple basic::kvp key-value pairs.
Definition sub_document.hpp:54
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.
Definition value.hpp:39
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.
bsoncxx::v_noabi::document::value make_document(Args &&... args)
Creates a document from a list of key-value pairs.
Definition document.hpp:118
The top-level namespace within which all bsoncxx library entities are declared.
Provides bsoncxx::v_noabi::builder::basic::sub_document.