35void value_append(core* core, T&& t);
50 template <
typename Arg,
typename... Args>
51 void append(Arg&& a, Args&&... args) {
52 append_(std::forward<Arg>(a));
53 append(std::forward<Args>(args)...);
65 template <
typename K,
typename V>
66 detail::requires_t<void, detail::is_alike<K, stdx::string_view>>
67 append_(std::tuple<K, V>&& t) {
68 _core->
key_view(std::forward<K>(std::get<0>(t)));
69 impl::value_append(_core, std::forward<V>(std::get<1>(t)));
75 template <
typename K,
typename V>
76 detail::requires_t<void, detail::is_alike<K, std::string>>
77 append_(std::tuple<K, V>&& t) {
78 _core->
key_owned(std::forward<K>(std::get<0>(t)));
79 impl::value_append(_core, std::forward<V>(std::get<1>(t)));
85 template <std::
size_t n,
typename V>
86 void append_(std::tuple<
const char (&)[n], V>&& t) {
88 impl::value_append(_core, std::forward<V>(std::get<1>(t)));
94 void append_(concatenate_doc doc) {
Redeclares bsoncxx::v_noabi::builder::concatenate in the bsoncxx::v_noabi::builder::basic namespace.
The bsoncxx macro guard postlude header.
The bsoncxx macro guard prelude header.
An internal class of builder::basic. Users should almost always construct a builder::basic::document ...
Definition sub_document.hpp:43
void append(Arg &&a, Args &&... args)
Appends multiple basic::kvp key-value pairs.
Definition sub_document.hpp:51
void append()
Inductive base-case for the variadic append(...)
Definition sub_document.hpp:59
A low-level interface for constructing BSON documents and arrays.
Definition core.hpp:46
core & key_owned(std::string key)
Appends a key passed as an STL string. Transfers ownership of the key to this class.
core & key_view(stdx::string_view key)
Appends a key passed as a non-owning stdx::string_view.
core & concatenate(const bsoncxx::v_noabi::document::view &view)
Appends the keys from a BSON document into this BSON datum.
A polyfill for std::string_view.
Definition string_view.hpp:436
Provides concatenators for use with "streaming" BSON builder syntax.
Provides bsoncxx::v_noabi::builder::core.
The top-level namespace within which all bsoncxx library entities are declared.
Provides std::string_view-related polyfills for library API usage.
Declares bsoncxx::v_noabi::builder::basic::sub_document.
Provides <type_traits>-related polyfills for internal use.