std::stop_source::operator=
提供: cppreference.com
<tbody>
</tbody>
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 の停止状態で置き換えます。
1)
other の停止状態を *this の停止状態にコピー代入します。 stop_source(other).swap(*this) と同等です。2)
other の停止状態を *this の停止状態にムーブ代入します。 代入後、 *this は other の以前の停止状態を持つようになり、 other は停止状態を持たないようになります。 stop_source(std::move(other)).swap(*this) と同等です。引数
| other | - | 停止状態を共有するまたは取得する別の stop_source オブジェクト。
|
例外
(なし)