cpp/locale/codecvt utf8 utf16

is a std facet which encapsulates conversion between a UTF-8 encoded byte string and UTF-16 encoded character string. If is a 32-bit type, one UTF-16 code unit will be stored in each 32-bit character of the output sequence.

This is an N:M conversion facet, and cannot be used with std (which only permits 1:N conversions, such as UTF-32/UTF-8, between the internal and the external encodings). This facet can be used with std.

Member functions
{{member|{{small|std::codecvt_utf8_utf16::}}codecvt_utf8_utf16| {{dcl begin}} {{dcl|1= explicit codecvt_utf8_utf16( std::size_t refs = 0 ); }} {{dcl end}}

Constructs a new {{tt|std::codecvt_utf8_utf16}} facet, passes the initial reference counter {{c|refs}} to the base class.

Parameters
}}