66 BSONCXX_INLINE detail::requires_not_t<base, detail::is_invocable<T, single_context>>
68 _core->
append(std::forward<T>(t));
80 BSONCXX_INLINE detail::requires_t<base, detail::is_invocable<T, single_context>>
82 detail::invoke(std::forward<T>(func), *
this);
91 BSONCXX_INLINE key_context<base>
operator<<(
const open_document_type) {
93 return wrap_document();
101 BSONCXX_INLINE array_context<base>
operator<<(
const open_array_type) {
111 operator single_context();
113#if !defined(_MSC_VER) && !defined(__INTEL_COMPILER)
116 std::is_same<value_context, decltype(std::declval<value_context>() << 1 <<
"str")>::value,
117 "value_context must be templatized on a key_context");
121 BSONCXX_INLINE base unwrap() {
125 BSONCXX_INLINE array_context<base> wrap_array() {
126 return array_context<base>(_core);
129 BSONCXX_INLINE key_context<base> wrap_document() {
130 return key_context<base>(_core);
A stream context which expects a value, which can later be followed by more key/value pairs.
Definition value_context.hpp:48
detail::requires_not_t< base, detail::is_invocable< T, single_context > > operator<<(T &&t)
<< operator for accepting a real value and appending it to the core builder.
Definition value_context.hpp:67