error_code::operator=
分配一个新的枚举值。error_code 对象。
template<class _Enum>
typename enable_if<is_error_code_enum<_Enum>::value,
error_code>::type&
operator=(_Enum _Errcode);
参数
Parameter |
说明 |
---|---|
_Errcode |
分配给 error_code 对象的枚举值。 |
返回值
按成员函数将新的枚举值的 error_code 对象的引用。
备注
成员运算符存储 (value_type)_Errcode,错误代码值和指向 generic_category。 它返回 *this。
要求
标头: <system_error>
命名空间: std