69 detail::requires_not_t<
71 detail::is_invocable<T, array_context<>>,
72 detail::is_invocable<T, single_context>,
73 detail::is_alike<T, finalize_type>>
75 _core->
append(std::forward<T>(t));
87 template <
typename Func>
90 detail::disjunction<detail::is_invocable<Func, array_context>, detail::is_invocable<Func, single_context>>>
92 detail::invoke(std::forward<Func>(func), *
this);
106 template <
typename T>
109 std::is_same<base, closed_context>,
110 detail::is_alike<T, finalize_type>>
121 key_context<array_context>
operator<<(open_document_type
const) {
123 return wrap_document();
156 _core->close_array();
185 key_context<array_context> wrap_document() {
186 return key_context<array_context>(_core);
Provides bsoncxx::v_noabi::array::value.
Declares bsoncxx::v_noabi::builder::stream::array_context.
The bsoncxx v_noabi macro guard postlude header.
The bsoncxx v_noabi macro guard prelude header.
array_context(core *core)
Create an array_context given a core builder.
Definition array_context.hpp:59
A read-only BSON array that owns its underlying buffer.
Definition value.hpp:37
A low-level interface for constructing BSON documents and arrays.
Definition core.hpp:46
core & append(types::b_double const &value)
Appends a BSON double.
bsoncxx::v_noabi::array::value extract_array()
Transfers ownership of the underlying document to the caller.
core & open_document()
Opens a sub-document within this BSON datum.
core & open_array()
Opens a sub-array within this BSON datum.
A stream context which expects any number of values.
Definition array_context.hpp:51
array_context operator<<(concatenate_array array)
<< operator for concatenating another array.
Definition array_context.hpp:135
detail::requires_not_t< array_context &, detail::is_invocable< T, array_context<> >, detail::is_invocable< T, single_context >, detail::is_alike< T, finalize_type > > operator<<(T &&t)
<< operator for accepting a real value and appending it to the core builder.
Definition array_context.hpp:74
base operator<<(close_array_type const)
<< operator for closing a subarray in the core builder.
Definition array_context.hpp:155
array_context(core *core)
Create an array_context given a core builder.
Definition array_context.hpp:59
A streaming interface for constructing a BSON array.
Definition array.hpp:42
bsoncxx::v_noabi::array::view view() const
Definition array.hpp:52
A stream context which appends a single value.
Definition single_context.hpp:38
Provides bsoncxx::v_noabi::builder::stream::closed_context.
Provides concatenators for use with "streaming" BSON builder syntax.
Provides bsoncxx::v_noabi::builder::core.
Declares bsoncxx::v_noabi::builder::stream::key_context.
Declares entities used with "streaming" BSON builder syntax.
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.
Declares bsoncxx::v_noabi::builder::stream::single_context.
Provides stream manipulators for use with "streaming" BSON builder syntax.
Container to concatenate an array.
Definition concatenate.hpp:64
The type of a stream manipulator to close a subarray.
Definition helpers.hpp:68
The type of a stream manipulator to open a subarray.
Definition helpers.hpp:53