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