17 #include <bsoncxx/builder/basic/document.hpp>
18 #include <bsoncxx/builder/basic/kvp.hpp>
19 #include <bsoncxx/types/bson_value/value.hpp>
21 #include <bsoncxx/config/prelude.hpp>
26 namespace bson_value {
33 BSONCXX_INLINE bson_value::value make_value(T&& t) {
34 auto doc = builder::basic::make_document(builder::basic::kvp(
"v", std::forward<T>(t)));
35 return doc.view()[
"v"].get_owning_value();
45 namespace bson_value {
47 using ::bsoncxx::v_noabi::types::bson_value::make_value;
53 #include <bsoncxx/config/postlude.hpp>
The top-level namespace for bsoncxx library entities.
Definition: element-fwd.hpp:19