名前空間
変種
操作

std::stop_source:: operator=

From cppreference.com
< cpp‎ | thread‎ | stop source
 
 
並行性サポートライブラリ
スレッド
(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)
future
(C++11)
(C++11)
(C++11)
(C++11)
安全なメモリ解放 (Safe Reclamation)
(C++26)
ハザードポインタ
アトミック型
(C++11)
(C++20)
アトミック型の初期化
(C++11)(C++20で非推奨)
(C++11)(C++20で非推奨)
メモリオーダー
(C++11)(C++26で非推奨)
アトミック操作のためのフリー関数
アトミックフラグのためのフリー関数
 
 
std::stop_source& operator=( const std::stop_source& other ) noexcept;
(1) (C++20以降)
std::stop_source& operator=( std::stop_source&& other ) noexcept;
(2) (C++20以降)

other の stop-state で、stop-state を置き換えます。

1) *this の stop-state に、other の stop-state をコピー代入します。これは、stop_source(other).swap(*this) と同等です。
2) *this の stop-state に、other の stop-state をムーブ代入します。代入後、*thisother の以前の stop-state を含み、other は stop-state を持ちません。これは、stop_source(std::move(other)).swap(*this) と同等です。

[編集] パラメータ

その他 - stop-state を共有する、または stop-state を取得する別の stop_source オブジェクト
English 日本語 中文(简体) 中文(繁體)