std:: nostopstate, std:: nostopstate_t
From cppreference.net
<
cpp
|
thread
|
stop source
C++
Concurrency support library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::stop_source
| Member functions | ||||
| Modifiers | ||||
| Observers | ||||
| Non-member functions | ||||
| Helper tags | ||||
|
std::nostopstate
std::nostopstate_t
|
|
ヘッダーで定義
<stop_token>
|
||
|
struct
nostopstate_t
{
explicit
nostopstate_t
(
)
=
default
;
}
;
|
(1) | (C++20以降) |
|
inline
constexpr
std::
nostopstate_t
nostopstate
{
}
;
|
(2) | (C++20以降) |
1)
プレースホルダーとして使用するための空タグ型。
std::stop_source
の非デフォルトコンストラクタで使用され、
構築された
std::stop_source
を空の状態(関連する停止状態なし)にする。
2)
空の
std::stop_source
を構築する際に使用する
std::nostopstate_t
の対応する定数オブジェクトインスタンス。非デフォルトコンストラクタにおけるプレースホルダー値として使用されます。
関連項目
|
(C++20)
|
1つまたは複数の
std::jthread
に対する停止要求を表すクラス
(クラス) |