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 의 해당 상수 객체 인스턴스로, 기본 생성자가 아닌 생성자에서 자리 표시자 값으로 사용됩니다.

참고 항목

하나 이상의 std::jthread 중단 요청을 나타내는 클래스
(클래스)