std::stop_callback_for_t - cppreference.com
Namespaces
Variants

std::stop_callback_for_t

From cppreference.com
 
 
Concurrency support library
Threads
(C++11)
(C++20)
this_thread namespace
(C++11)
(C++11)
(C++11)
Cooperative cancellation
Mutual exclusion
(C++11)
Generic lock management
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
Condition variables
(C++11)
Semaphores
Latches and Barriers
(C++20)
(C++20)
Futures
(C++11)
(C++11)
(C++11)
(C++11)
Safe Reclamation
(C++26)
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
 

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 CallbackFn are:

  • specialization of std::stop_callback for std::stop_token,
  • specialization of std::inplace_stop_callback for std::inplace_stop_token, and
  • unspecified type without stoppable callback registration and deregistration for std::never_stop_token.