46 class Traits = std::char_traits<CharT>,
47 class Allocator = std::allocator<CharT>>
48std::basic_string<CharT, Traits, Allocator>
to_string(
49 v_noabi::stdx::basic_string_view<CharT, Traits> value,
const Allocator& alloc = Allocator()) {
50 return std::basic_string<CharT, Traits, Allocator>{value.data(), value.length(), alloc};
60using ::bsoncxx::v_noabi::string::to_string;
72#if defined(BSONCXX_PRIVATE_DOXYGEN_PREPROCESSOR)
78template <
class CharT,
class Traits,
class Allocator>
79std::basic_string<CharT, Traits, Allocator>
to_string(
80 v_noabi::stdx::basic_string_view<CharT, Traits> value,
const Allocator& alloc);
The bsoncxx macro guard postlude header.
The bsoncxx macro guard prelude header.
std::basic_string< CharT, Traits, Allocator > to_string(v_noabi::stdx::basic_string_view< CharT, Traits > value, const Allocator &alloc)
bsoncxx::v_noabi::string::to_string
std::basic_string< CharT, Traits, Allocator > to_string(v_noabi::stdx::basic_string_view< CharT, Traits > value, const Allocator &alloc=Allocator())
Convert a bsoncxx::v_noabi::stdx::string_view to a std::string.
Definition to_string.hpp:48
The top-level namespace within which all bsoncxx library entities are declared.
Provides std::string_view-related polyfills for library API usage.