CppDS.com

C++ 98 11 14 17 20 手册

std::error_condition::operator=

来自cppreference.com
 
 
工具库
通用工具
日期和时间
函数对象
格式化库 (C++20)
(C++11)
关系运算符 (C++20 中弃用)
整数比较函数
(C++20)
swap 与类型运算
(C++14)
(C++11)
(C++11)
(C++11)
(C++17)
常用词汇类型
(C++11)
(C++17)
(C++17)
(C++17)
(C++17)

初等字符串转换
(C++17)
(C++17)
 
 
 
error_condition& operator=( const error_condition& other ) noexcept;
(1) (C++11 起)
(隐式声明)
template< class ErrorConditionEnum >
error_condition& operator=( ErrorConditionEnum e ) noexcept;
(2) (C++11 起)

赋值内容给 error_condition 。

1) 复制赋值运算符。赋值 other 的内容。
2) 为枚举 e 赋值 error_condition for enum 。等效于调用 make_error_condition() 。不参与重载决议除非 is_error_condition_enum<ErrorConditionEnum>::valuetrue

参数

other - 用以赋值的另一 error_condition
e - 错误条件枚举

返回值

*this

关闭