名稱空間
變體
操作

std::text_encoding::environment_is

來自 cppreference.com
< cpp‎ | text‎ | text_encoding
template< id I >
static bool environment_is();
(C++26 起)

檢查環境編碼是否等於 MIBenum 值為指定值 I 的編碼。此函式的呼叫等價於 return environment() == I;

除非 CHAR_BIT8,否則此函式被刪除。

[編輯] 模板引數

I - 一個要比較其值的 text_encoding::id

[編輯] 返回值

如果 environment() 等於 I 則為 true;否則為 false

[編輯] 示例