Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::coroutine_handle<Promise>::destroy

      From cppreference.com
      <cpp‎ |coroutine‎ |coroutine handle
       
       
      Utilities library
       
      Coroutine support
      Coroutine traits
      Coroutine handle
      No-op coroutines
      Trivial awaitables
      Range generators
      (C++23)
       
       
      Member of other specializations
      void destroy()const;
      (1)(since C++20)
      Member of specializationstd::coroutine_handle<std::noop_coroutine_promise>
      constexprvoid destroy()constnoexcept;
      (2)(since C++20)
      1) Destroys the coroutine state of the coroutine to which*this refers, or does nothing if the coroutine is a no-op coroutine.
      2) Does nothing.

      The behavior is undefined if destroying is needed and*this does not refer to a suspended coroutine.

      Contents

      [edit]Parameters

      (none)

      [edit]Return value

      (none)

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      resumes execution of the coroutine
      (public member function)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/coroutine/coroutine_handle/destroy&oldid=162092"

      [8]ページ先頭

      ©2009-2025 Movatter.jp