std::coroutine_handle<Promise>:: destroy
From cppreference.net
<
cpp
|
coroutine
|
coroutine handle
C++
Utilities library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Coroutine support
| Coroutine traits | ||||
|
(C++20)
|
||||
| Coroutine handle | ||||
|
(C++20)
|
||||
| No-op coroutines | ||||
|
(C++20)
|
||||
|
(C++20)
|
||||
| Trivial awaitables | ||||
|
(C++20)
|
||||
|
(C++20)
|
||||
| Range generators | ||||
|
(C++23)
|
std::coroutine_handle
| Member functions | ||||
| Conversion | ||||
| Observers | ||||
| Control | ||||
|
coroutine_handle::destroy
|
||||
| Promise access | ||||
| Export/import | ||||
| Non-member functions | ||||
| Helper classes | ||||
|
다른 특수화의 멤버
|
||
|
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) |