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 向けの、停止可能コールバックの登録・登録解除機能を持たない未規定の型