cpp/locale/codecvt utf8

is a std facet which encapsulates conversion between a UTF-8 encoded byte string and UCS-2 or UTF-32 character string (depending on the type of ). This std facet can be used to read and write UTF-8 files, both text and binary.

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

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

Parameters
}}