命名空间
变体
操作

std::future_error::operator=

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

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

[编辑] 参数

other - 另一个要赋值的 future_error 对象

[编辑] 返回值

*this

[编辑] 示例