名稱空間
變體
操作

std::make_error_code(std::errc)

來自 cppreference.com
< cpp‎ | error‎ | errc
 
 
 
 
std::errc
非成員函式
make_error_code
輔助類
 
定義於標頭檔案 <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 錯誤程式碼
(函式) [編輯]