error_condition のオブジェクトに新しい列挙型の値を割り当てます。
template<class _Enum>
error_condition(_Enum error,
typename enable_if<is_error_condition_enum<_Enum>::value,
error_condition>::type&
operator=(Enum _Errcode);
パラメーター
パラメーター |
説明 |
|---|---|
_Errcode |
error_condition にオブジェクトを割り当てる列挙体の値。 |
戻り値
メンバー関数によって新しい列挙型の値が割り当てられている error_condition のオブジェクトへの参照。
解説
このメンバー演算子はエラー コード値として (value_type)error と generic_categoryへのポインターを格納します。*this が返されます。
必要条件
ヘッダー: <system_error>
名前空間: std