std::coroutine_handle<Promise>:: promise
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 | ||||
| Promise access | ||||
|
coroutine_handle::promise
|
||||
| Export/import | ||||
| Non-member functions | ||||
| Helper classes | ||||
|
기본 템플릿의 멤버
|
||
|
Promise
&
promise
(
)
const
;
|
(C++20부터) | |
std::coroutine_handle<std::noop_coroutine_promise>
특수화의 멤버
|
||
|
std::
noop_coroutine_promise
&
promise
(
)
const
noexcept
;
|
(C++20부터) | |
promise 객체에 대한 참조를 얻습니다.
* this 가 파괴되지 않은 promise 객체를 가진 코루틴을 참조하지 않는 경우, 동작은 정의되지 않습니다.
이 함수는 특수화 std:: coroutine_handle <> 에 대해 제공되지 않습니다.
목차 |
매개변수
(없음)
반환값
프라미스 객체에 대한 참조입니다.
참고 사항
no-op 코루틴의 promise 객체는 해당 코루틴을 참조하는 std::noop_coroutine_handle 가 존재하는 한 소멸되지 않습니다.
참고 항목
|
[static]
|
코루틴의 promise 객체로부터
coroutine_handle
를 생성합니다
(public static member function) |