公共成員函式
<system_error>

std::system_error::code

const error_code& code() const noexcept;
獲取錯誤碼
返回與異常關聯的錯誤碼物件。

此值是傳遞給建構函式的錯誤碼或其等效值(如果使用value類別構造)。

引數



返回值

與該物件關聯的錯誤碼

另見