名稱空間
變體
操作

std::future_error::operator=

來自 cppreference.com
< 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

[編輯] 示例