命名空间
变体
操作

std::future_error::operator=

来自 cppreference.cn
< cpp‎ | thread‎ | future error
 
 
并发支持库
线程
(C++20)
this_thread 命名空间
(C++11)
(C++11)
(C++11)
协同取消
互斥
通用锁管理
条件变量
信号量
门闩和屏障
期值
安全回收
(C++26)
危险指针
原子类型
原子类型的初始化
(C++11)(C++20 中已弃用)
(C++11)(C++20 中已弃用)
内存排序
(C++11)(C++26 中已弃用)
原子操作的自由函数
原子标志的自由函数
 
 
future_error& operator=( const future_error& other ) noexcept;
(C++11 起)

将内容赋值为 other 的内容。如果 *thisother 都具有动态类型 std::future_error,则在赋值后 std::strcmp(what(), other.what()) == 0

[编辑] 参数

其他 - 另一个要赋值的 future_error 对象

[编辑] 返回值

*this

[编辑] 示例