Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::stop_callback_for_t

      From cppreference.com
      <cpp‎ |thread
       
       
      Concurrency support library
      Threads
      (C++11)
      (C++20)
      this_thread namespace
      (C++11)
      (C++11)
      (C++11)
      Cooperative cancellation
      stop_callback_for_t
      (C++26)
      Mutual exclusion
      Generic lock management
      (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)
      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
       
      Defined in header<stop_token>
      template<class T,class CallbackFn>
      using stop_callback_for_t= T::template callback_type<CallbackFn>;
      (since C++26)

      The alias templatestop_callback_for_t is used to obtain the stop callback type of the typeT.

      [edit]Notes

      The correspondingstop_callback_for_t for standard stop token types and any validCallbackFn are:

      • specialization ofstd::stop_callback forstd::stop_token,
      • specialization ofstd::inplace_stop_callback forstd::inplace_stop_token, and
      • unspecified type without stoppable callback registration and deregistration forstd::never_stop_token.
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/thread/stop_callback_for_t&oldid=177582"

      [8]ページ先頭

      ©2009-2025 Movatter.jp