Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      Coroutine support(C++20)

      From cppreference.com
      <cpp
       
       
      Utilities library
       
      Coroutine support
      Coroutine traits
      Coroutine handle
      No-op coroutines
      Trivial awaitables
      Range generators
      (C++23)
       

      The coroutine support library defines several types that provide compile and run-time support forcoroutines.

      Contents

      [edit]Coroutine traits

      Defined in header<coroutine>
      trait type for discovering coroutine promise types
      (class template)[edit]

      [edit]Coroutine handle

      Defined in header<coroutine>
      used to refer to a suspended or executing coroutine
      (class template)[edit]

      [edit]No-op coroutines

      Defined in header<coroutine>
      creates a coroutine handle that has no observable effects when resumed or destroyed
      (function)[edit]
      used for coroutines with no observable effects
      (class)[edit]
      std::coroutine_handle<std::noop_coroutine_promise>, intended to refer to a no-op coroutine
      (typedef)[edit]

      [edit]Trivial awaitables

      Defined in header<coroutine>
      indicates that an await-expression should never suspend
      (class)[edit]
      indicates that an await-expression should always suspend
      (class)[edit]

      [edit]Notes

      Feature-test macroValueStdFeature
      __cpp_lib_coroutine201902L(C++20)Coroutine support library

      [edit]See also

      (C++23)
      Aview that represents synchronouscoroutine generator
      (class template)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/coroutine&oldid=181863"

      [8]ページ先頭

      ©2009-2025 Movatter.jp