名稱空間
變體
操作

std::text_encoding::aliases

來自 cppreference.com
< cpp‎ | text‎ | text_encoding
constexpr aliases_view aliases() const noexcept;
(C++26 起)

返回一個非空的 text_encoding::aliases_view 類型範圍,如果 *this 表示一個已知的註冊字元編碼,則該範圍包含其別名。否則,返回一個空的 text_encoding::aliases_view 類型範圍。

[編輯] 引數

(無)

[編輯] 返回值

一個 view,包含由 *this 表示的已知註冊字元編碼的別名;否則為一個空範圍。

[編輯] 示例