std::stop_callback_for_t
From cppreference.com
| Defined in header <stop_token>
|
||
template< class T, class Callback >
using stop_callback_for_t = T::template callback_type<Callback>;
|
(since C++26) | |
The alias template stop_callback_for_t is used to obtain the stop callback type of the type T.
Notes
The corresponding stop_callback_for_t for standard stop token types and any valid Callback are:
- specialization of
std::stop_callbackforstd::stop_token, - specialization of
std::inplace_stop_callbackforstd::inplace_stop_token, and - unspecified type without stoppable callback registration and deregistration for
std::never_stop_token.
| Feature-test macro | Value | Std | Feature |
|---|---|---|---|
__cpp_lib_senders |
202406L |
(C++26) | std::stop_callback_for_t
|