Namespaces
Variants

std:: stop_callback_for_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>
template < class T, class CallbackFn >
using stop_callback_for_t = T :: template callback_type < CallbackFn > ;
(C++26부터)

별칭 템플릿 stop_callback_for_t 는 타입 T 의 중단 콜백 타입을 얻기 위해 사용됩니다.

참고 사항

해당하는 stop_callback_for_t 는 표준 스톱 토큰 타입과 유효한 CallbackFn 에 대해 다음과 같습니다:

  • std:: stop_callback std:: stop_token 전문화,
  • std :: inplace_stop_callback std :: inplace_stop_token 전문화, 및
  • std :: never_stop_token 에 대한 정지 가능 콜백 등록 및 등록 해제가 없는 미지정 타입.