std::stop_token::stop_token
提供: cppreference.com
<tbody>
</tbody>
stop_token() noexcept; |
(1) | (C++20以上) |
stop_token( const stop_token& other ) noexcept; |
(2) | (C++20以上) |
stop_token( stop_token&& other ) noexcept; |
(3) | (C++20以上) |
新しい stop_token オブジェクトを構築します。
1) 紐付いた停止状態を持たない空の
stop_token を構築します。2) コピーコンストラクタ。
other と同じ紐付いた停止状態を持つ stop_token を構築します。3) ムーブコンストラクタ。
other と同じ紐付いた停止状態を持つ stop_token を構築します。 other は有効だけれども未規定な状態になります。引数
| other | - | この stop_token オブジェクトを構築するための別の stop_token オブジェクト。
|
事後条件
1) stop_possible() および stop_requested() がどちらも
false。2)
*this と other が同じ紐付いた停止状態を共有する。 比較すると等しい。3)
*this が other の以前の紐付いた停止状態を持つ。 other.stop_possible() が false。例外
(なし)