std::coroutine_handle<Promise>::operator coroutine_handle<>
来自cppreference.com
< cpp | coroutine | coroutine handle
constexpr operator coroutine_handle<>() const noexcept; | (C++20 起) | |
此转换函数将 std::coroutine_handle<Promise> 值转换成保有相同底层地址的 std::coroutine_handle<>。它实际上擦除了承诺类型。
参数
(无)
返回值
std::coroutine_handle<>::from_address(address())
参阅
(C++20) | 比较两个 coroutine_handle 对象 (函数) |