Namespaces
Variants

std::coroutine_handle<Promise>:: destroy

From cppreference.net
Utilities library
Coroutine support
Coroutine traits
Coroutine handle
No-op coroutines
Trivial awaitables
Range generators
(C++23)
다른 특수화의 멤버
void destroy ( ) const ;
(1) (C++20부터)
std::coroutine_handle<std::noop_coroutine_promise> 특수화의 멤버
constexpr void destroy ( ) const noexcept ;
(2) (C++20부터)
1) 이 코루틴이 참조하는 코루틴의 코루틴 상태를 파괴합니다. 코루틴이 no-op 코루틴인 경우 아무 작업도 수행하지 않습니다.
2) 아무 작업도 수행하지 않습니다.

파괴가 필요하고 * this 가 일시 중단된 코루틴을 참조하지 않는 경우 동작은 정의되지 않습니다.

목차

매개변수

(없음)

반환값

(없음)

예제

참고 항목

코루틴 실행 재개
(public member function)