std::coroutine_handle<Promise>::destroy

  1. Destroys the coroutine state of the coroutine to which *this refers, or does nothing if the coroutine is a no-op coroutine.

# Declarations

Member of other specializations
void destroy() const;

(since C++20)

Member of specialization std::coroutine_handle<std::noop_coroutine_promise>
constexpr void destroy() const noexcept;

(since C++20)

# Return value

(none)

# Example

This section is incompleteReason: no example

# See also