std::make_error_code(std::errc)
來自 cppreference.com
定義於標頭檔案 <system_error> |
||
std::error_code make_error_code( std::errc e ) noexcept; |
(C++11 起) | |
為 errc
列舉 e 建立錯誤碼值。
等價於 std::error_code(static_cast<int>(e), std::generic_category())
[編輯] 引數
e | - | 用於建立錯誤碼的錯誤碼列舉 |
[編輯] 返回值
與 e 對應的錯誤碼。
[編輯] 參閱
構造一個 iostream 錯誤碼 (函式) | |
構造一個 future 錯誤程式碼 (函式) |