std:: stop_callback_for_t
From cppreference.net
C++
Concurrency support library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Défini dans l'en-tête
<stop_token>
|
||
|
template
<
class
T,
class
CallbackFn
>
using stop_callback_for_t = T :: template callback_type < CallbackFn > ; |
(depuis C++26) | |
L'alias de modèle
stop_callback_for_t
est utilisé pour obtenir le type de rappel d'arrêt du type
T
.
Notes
Le
stop_callback_for_t
correspondant pour les types de jeton d'arrêt standard et toute
CallbackFn
valide sont :
- spécialisation de std:: stop_callback pour std:: stop_token ,
- spécialisation de std :: inplace_stop_callback pour std :: inplace_stop_token , et
- type non spécifié sans enregistrement ni désenregistrement de rappel interruptible pour std :: never_stop_token .