17 #include <bsoncxx/builder/basic/array-fwd.hpp>
18 #include <bsoncxx/builder/basic/document-fwd.hpp>
20 #include <bsoncxx/builder/basic/impl.hpp>
21 #include <bsoncxx/builder/basic/kvp.hpp>
22 #include <bsoncxx/builder/basic/sub_document.hpp>
23 #include <bsoncxx/builder/core.hpp>
24 #include <bsoncxx/document/value.hpp>
25 #include <bsoncxx/document/view.hpp>
27 #include <bsoncxx/config/prelude.hpp>
55 _core = std::move(doc._core);
110 template <
typename... Args>
113 document.append(std::forward<Args>(args)...);
126 using ::bsoncxx::v_noabi::builder::basic::make_document;
132 #include <bsoncxx/config/postlude.hpp>
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:85
document(document &&doc) noexcept
Move constructor.
Definition: document.hpp:48
document & operator=(document &&doc) noexcept
Move assignment operator.
Definition: document.hpp:54
document()
Default constructor.
Definition: document.hpp:43
bsoncxx::v_noabi::document::view view() const
Definition: document.hpp:62
void clear()
Reset the underlying BSON to an empty document.
Definition: document.hpp:92
An internal class of builder::basic.
Definition: sub_document.hpp:43
A low-level interface for constructing BSON documents and arrays.
Definition: core.hpp:45
void clear()
Deletes the contents of the underlying BSON datum.
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 JSON-like builder for creating documents.
Definition: list.hpp:156
A read-only BSON document that owns its underlying buffer.
Definition: value.hpp:38
A read-only, non-owning view of a BSON document.
Definition: view.hpp:35
The top-level namespace for bsoncxx library entities.
Definition: element-fwd.hpp:19