46 document() : sub_document(&_core), _core(false) {}
53 document(
document&& doc) noexcept : sub_document(&_core), _core(std::move(doc._core)) {}
59 _core = std::move(doc._core);
70 return _core.view_document();
93 return _core.extract_document();
117template <
typename... Args>
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.
document()
Default constructor.
Definition document.hpp:46
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
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
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.
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::document::value make_document(Args &&... args)
Creates a document from a list of key-value pairs.
Definition document.hpp:118
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_document.