20#include <bsoncxx/stdx/string_view.hpp>
22#include <bsoncxx/config/prelude.hpp>
25inline namespace v_noabi {
29 class Traits = std::char_traits<CharT>,
30 class Allocator = std::allocator<CharT>>
31BSONCXX_INLINE std::basic_string<CharT, Traits, Allocator> to_string(
32 stdx::basic_string_view<CharT, Traits> value,
const Allocator& alloc = Allocator()) {
33 return std::basic_string<CharT, Traits, Allocator>{value.data(), value.length(), alloc};
40#include <bsoncxx/config/postlude.hpp>
The top-level namespace for bsoncxx library entities.
Definition element.hpp:24