- coroutine[meta header]
- std[meta namespace]
- coroutine_handle[meta class]
- function[meta id-type]
- cpp20[meta cpp]
constexpr void* address() const noexcept;
コルーチンハンドルに対応するアドレス値を返す。
コルーチンハンドルに対応するアドレス値。
投げない
#include <cassert>
#include <coroutine>
int main()
{
std::coroutine_handle<> h;
assert(h.address() == nullptr);
}
- address()[color ff0000]
- C++20
- Clang: ??
- GCC: 11.1 [mark verified]
- Visual C++: ??