Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::coroutine_handle<Promise>::address

      From cppreference.com
      <cpp‎ |coroutine‎ |coroutine handle
       
       
      Utilities library
       
      Coroutine support
      Coroutine traits
      Coroutine handle
      No-op coroutines
      Trivial awaitables
      Range generators
      (C++23)
       
       
      constexprvoid* address()constnoexcept;
      (since C++20)

      Returns the underlying address of thecoroutine_handle. The return value is non-null if and only if the current value of thecoroutine_handle is obtained from a promise object of a coroutine.

      Contents

      [edit]Parameters

      (none)

      [edit]Return value

      The underlying address.

      [edit]Notes

      The return value is non-null for specializationstd::noop_coroutine_handle, because astd::noop_coroutine_handle cannot be created without referring to a no-op coroutine.

      [edit]See also

      [static]
      imports a coroutine from a pointer
      (public static member function)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/coroutine/coroutine_handle/address&oldid=162094"

      [8]ページ先頭

      ©2009-2026 Movatter.jp