char32 t

Version >= C++ 11

無符號整數型別,其大小和對齊方式與 uint_least32_t 相同,因此足以容納 UTF-32 程式碼單元。

const char32_t full_house[] = U"🂣🂳🂨🂸🃈";               // non-BMP characters
std::cout << sizeof(full_house)/sizeof(char32_t) << "\n"; // prints 6