17#include <bsoncxx/array/value.hpp>
18#include <bsoncxx/array/view.hpp>
19#include <bsoncxx/builder/basic/impl.hpp>
20#include <bsoncxx/builder/basic/kvp.hpp>
21#include <bsoncxx/builder/basic/sub_array.hpp>
22#include <bsoncxx/builder/core.hpp>
24#include <bsoncxx/config/prelude.hpp>
27BSONCXX_INLINE_NAMESPACE_BEGIN
86BSONCXX_INLINE_NAMESPACE_END
89#include <bsoncxx/config/postlude.hpp>
A read-only BSON array that owns its underlying buffer.
Definition value.hpp:34
A read-only, non-owning view of a BSON document.
Definition view.hpp:33
A traditional builder-style interface for constructing a BSON array.
Definition array.hpp:35
array()
Default constructor.
Definition array.hpp:40
void clear()
Reset the underlying BSON to an empty array.
Definition array.hpp:76
bsoncxx::array::value extract()
Transfer ownership of the underlying array to the caller.
Definition array.hpp:69
bsoncxx::array::view view() const
Definition array.hpp:46
An internal class of builder::basic.
Definition sub_array.hpp:39
A low-level interface for constructing BSON documents and arrays.
Definition core.hpp:42
array::view view_array() const
Get a view over the array.
array::value extract_array()
Transfer ownership of the underlying document to the caller.
void clear()
Delete the contents of the underlying BSON datum.