- coroutine[meta header]
- std[meta namespace]
- coroutine_handle[meta class]
- function[meta id-type]
- cpp20[meta cpp]
coroutine_handle& operator=(nullptr_t) noexcept;コルーチンハンドルをリセットし、有効なコルーチンを指さない状態にする。
*this
address() == nullptr
投げない
#include <cassert>
#include <coroutine>
int main()
{
std::coroutine_handle<> h;
h = nullptr;
assert(h.address() == nullptr);
}- = nullptr[color ff0000]
- address()[link address.md]
- C++20
- Clang: ??
- GCC: 11.1
- Visual C++: ??