std::error_category::default_error_condition
來自 cppreference.com
virtual std::error_condition default_error_condition( int val ) const noexcept; |
(C++11 起) | |
返回給定錯誤值的錯誤條件。
等價於 std::error_condition(val, *this)。
派生自 error_category
的類可以重寫此函式,以將某些錯誤值對映到通用類別。例如,std::system_category 重寫此函式,將與 POSIX errno 值匹配的錯誤值對映到 std::generic_category。
[編輯] 引數
val | - | 要返回錯誤條件的錯誤值 |
[編輯] 返回值
給定錯誤程式碼的錯誤條件。