std::coroutine_handle<Promise>:: address
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 | ||||
| Export/import | ||||
|
coroutine_handle::address
|
||||
| Non-member functions | ||||
| Helper classes | ||||
|
constexpr
void
*
address
(
)
const
noexcept
;
|
(C++20부터) | |
coroutine_handle
의 기반 주소를 반환합니다.
반환 값은 현재
coroutine_handle
의 값이 코루틴의 promise 객체로부터 얻어진 경우에만 null이 아닙니다.
목차 |
매개변수
(없음)
반환값
기본 주소.
참고 사항
반환값은 특수화된
std::noop_coroutine_handle
에 대해 널이 아닙니다. 왜냐하면
std::noop_coroutine_handle
는 no-op 코루틴을 참조하지 않고는 생성될 수 없기 때문입니다.
참고 항목
|
[static]
|
포인터로부터 코루틴을 가져옵니다
(public static member function) |