69 _core->
append(std::forward<T>(t));
96 return wrap_document();
105 BSONCXX_INLINE array_context<base>
operator<<(
const open_array_type) {
115 operator single_context();
117#if !defined(_MSC_VER) && !defined(__INTEL_COMPILER)
120 std::is_same<value_context, decltype(std::declval<value_context>() << 1 <<
"str")>::value,
121 "value_context must be templatized on a key_context");
125 BSONCXX_INLINE base unwrap() {
129 BSONCXX_INLINE array_context<base> wrap_array() {
130 return array_context<base>(_core);
133 BSONCXX_INLINE key_context<base> wrap_document() {
134 return key_context<base>(_core);
A stream context which expects a key, which can later be followed by value, then more key/value pairs...
Definition key_context.hpp:49
A stream context which appends a single value.
Definition single_context.hpp:36
A stream context which expects a value, which can later be followed by more key/value pairs.
Definition value_context.hpp:48
std::enable_if<!util::is_functor< T, void(single_context)>::value, base >::type operator<<(T &&t)
<< operator for accepting a real value and appending it to the core builder.
Definition value_context.hpp:68
value_context(core *core)
Create a value_context given a core builder.
Definition value_context.hpp:56