17 #include <bsoncxx/builder/basic/impl.hpp>
18 #include <bsoncxx/builder/basic/kvp.hpp>
19 #include <bsoncxx/builder/basic/sub_document.hpp>
20 #include <bsoncxx/builder/core.hpp>
21 #include <bsoncxx/document/value.hpp>
22 #include <bsoncxx/document/view.hpp>
24 #include <bsoncxx/config/prelude.hpp>
27 BSONCXX_INLINE_NAMESPACE_BEGIN
85 BSONCXX_INLINE_NAMESPACE_END
88 #include <bsoncxx/config/postlude.hpp>
void clear()
Reset the underlying BSON to an empty document.
Definition: document.hpp:75
A low-level interface for constructing BSON documents and arrays.
Definition: core.hpp:42
A read-only BSON document that owns its underlying buffer.
Definition: value.hpp:33
A read-only, non-owning view of a BSON document.
Definition: view.hpp:33
void clear()
Delete the contents of the underlying BSON datum.
An internal class of builder::basic.
Definition: sub_document.hpp:38
bsoncxx::document::value extract()
Transfer ownership of the underlying document to the caller.
Definition: document.hpp:68
document::view view_document() const
Get a view over the document.
document::value extract_document()
Transfer ownership of the underlying document to the caller.
A traditional builder-style interface for constructing a BSON document.
Definition: document.hpp:37
Definition: element.hpp:24
bsoncxx::document::view view() const
Definition: document.hpp:45