char16 t

Version >= C++ 11

無符號整數型別,與 uint_least16_t 具有相同的大小和對齊,因此足以容納 UTF-16 程式碼單元。

const char16_t message[] = u"Hello World\n";            // Chinese for "hello, world\n"
std::cout << sizeof(message)/sizeof(char16_t) << "\n"; // prints 7