Namespaces
Variants

std:: unstoppable_token

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>
template < class Token >

concept unstoppable_token =
std :: stoppable_token < Token > &&
requires ( const Token tok ) {
requires std:: bool_constant < ( ! tok. stop_possible ( ) ) > :: value ;

} ;
(C++26부터)

unstoppable_token<Token> 개념은 stoppable_token 에 대한 추가 요구사항을 지정하며, 이 타입은 중지를 허용하지 않습니다. 즉, tok. stop_possible ( ) 표현식은 상수 표현식에서 사용 가능해야 하며 false 를 반환해야 합니다.