std::error_condition::error_condition
提供: cppreference.com
<tbody>
</tbody>
error_condition() noexcept; |
(1) | (C++11以上) |
error_condition( const error_condition& other ) noexcept; |
(2) | (C++11以上) (暗黙に宣言) |
error_condition( int val, const error_category& cat ) noexcept; |
(3) | (C++11以上) |
template< class ErrorConditionEnum > error_condition( ErrorConditionEnum e ) noexcept; |
(4) | (C++11以上) |
新しいエラーコンディションを構築します。
1) デフォルトコンストラクタ。 エラーコンディションを一般カテゴリとエラーコード
0 で初期化します。2) コピーコンストラクタ。 エラーコンディションを
other の内容で初期化します。3) エラーコンディションをエラーコード
val およびエラーカテゴリ cat で初期化します。4) エラーエラーコンディションを列挙子
e で初期化します。 実質的に make_error_condition() を呼びます。 is_error_condition_enum<ErrorConditionEnum>::value が true でなければ、オーバーロード解決に参加しません。引数
| other | - | 初期化するための別のエラーコンディション |
| val | - | エラーコード |
| cat | - | エラーカテゴリ |
| e | - | エラーコンディションの列挙子 |
関連項目
| std::errc のエラーコンディションを構築します (関数) | |
| 入出力ストリームの error_condition を構築します (関数) | |
| フューチャーの error_condition を構築します (関数) |