Namespaces
Variants

std:: nostopstate, std:: nostopstate_t

From cppreference.net
Concurrency support library
Threads
(C++11)
(C++20)
this_thread namespace
(C++11)
(C++11)
Cooperative cancellation
Mutual exclusion
Generic lock management
Condition variables
(C++11)
Semaphores
Latches and Barriers
(C++20)
(C++20)
Futures
(C++11)
(C++11)
(C++11)
Safe reclamation
Hazard pointers
Atomic types
(C++11)
(C++20)
Initialization of atomic types
(C++11) (deprecated in C++20)
(C++11) (deprecated in C++20)
Memory ordering
(C++11) (deprecated in C++26)
Free functions for atomic operations
Free functions for atomic flags
ヘッダーで定義 <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 の対応する定数オブジェクトインスタンス。非デフォルトコンストラクタにおけるプレースホルダー値として使用されます。

関連項目

1つまたは複数の std::jthread に対する停止要求を表すクラス
(クラス)