C++ 執行緒庫 - 函式 operator=



描述

它用於移動賦值執行緒。

宣告

以下是 std::thread::operator= 函式的宣告。

thread& operator= (thread&& rhs) noexcept;	
thread& operator= (const thread&) = delete;

C++11

thread& operator= (thread&& rhs) noexcept;	
thread& operator= (const thread&) = delete;

引數

rhs − 它是一個執行緒物件。

返回值

它返回 *this。

異常

無丟擲保證 − 從不丟擲異常。

資料競爭

rhs 和物件都被修改。

thread.htm
廣告

© . All rights reserved.