Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::unstoppable_token

      From cppreference.com
      <cpp‎ |thread
       
       
      Concurrency support library
      Threads
      (C++11)
      (C++20)
      this_thread namespace
      (C++11)
      (C++11)
      (C++11)
      Cooperative cancellation
      unstoppable_token
      (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 Token>

      concept unstoppable_token=
          std::stoppable_token<Token>&&
          requires(const Token tok){
              requiresstd::bool_constant<(!tok.stop_possible())>::value;

         };
      (since C++26)

      The conceptunstoppable_token<Token> specifies an additional requirement for astoppable_token where the type does not allow stopping. That is, the expressiontok.stop_possible() must be usable in constant expression and returnsfalse.

      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/thread/unstoppable_token&oldid=177999"

      [8]ページ先頭

      ©2009-2025 Movatter.jp