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
;
|
(seit C++20) | |
Gibt die zugrundeliegende Adresse des
coroutine_handle
zurück. Der Rückgabewert ist genau dann nicht-null, wenn der aktuelle Wert des
coroutine_handle
von einem Promise-Objekt einer Coroutine erhalten wurde.
Inhaltsverzeichnis |
Parameter
(keine)
Rückgabewert
Die zugrunde liegende Adresse.
Hinweise
Der Rückgabewert ist für die Spezialisierung
std::noop_coroutine_handle
nicht null, weil ein
std::noop_coroutine_handle
nicht erstellt werden kann, ohne auf eine No-Op-Coroutine zu verweisen.
Siehe auch
|
[static]
|
importiert eine Coroutine von einem Zeiger
(öffentliche statische Member-Funktion) |