Section

std::wstring_convert

Class template std::wstring_convert performs conversions between byte string std::string and wide string std::basic_string, using an individual code conversion facet Codecvt. std::wstring_convert assumes ownership of the conversion facet, and cannot use a facet managed by a locale.

# Declarations

template<
class Codecvt,
class Elem = wchar_t,
class Wide_alloc = std::allocator<Elem>,
class Byte_alloc = std::allocator<char>
> class wstring_convert;

(since C++11) (deprecated in C++17) (removed in C++26)

# See also