函式
<ios> <iostream>

std::make_error_code (io_errc)

error_code make_error_code (io_errc e);
error_code make_error_code (io_errc e) noexcept;
建立錯誤碼
io_errc 列舉值 e 建立一個 iostream_categoryerror_code 物件。

它返回的結果與
1
error_code(static_cast<int>(e),iostream_category());

error_code 的建構函式過載處理 io_errc 型別時,會呼叫此函式。

引數

e
型別為 io_errc 的列舉值。

返回值

表示列舉值 eerror_code 物件。

異常安全

無異常保證:此函式從不丟擲異常。

另見