std::error_condition::operator=
来自cppreference.com
| |
(1) | (C++11 起) |
| |
(2) | (C++11 起) (隐式声明) |
| |
(3) | (C++11 起) (隐式声明) |
赋值内容给错误条件。
1) 将枚举
e 赋值给错误条件。实际上对 e 调用仅由实参依赖查找找到的 make_error_condition 然后再以结果替换 *this。此重载只有在 std::is_error_condition_enum<ErrorConditionEnum>::value 为 true 时才会参与重载决议。2,3) 隐式定义的复制赋值运算符与移动赋值运算符将
other 的内容赋值给 *this。参数
| e | - | 错误条件枚举 |
| other | - | 用以赋值的另一错误条件 |
返回值
*this。
缺陷报告
下列更改行为的缺陷报告追溯地应用于以前出版的 C++ 标准。
