StackOverflow 文件 C++ 教程 基本型別關鍵字 char32 t char32 t Created: November-22, 2018 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 浮動char16 t