std::coroutine_handle<Promise>::operator coroutine_handle<>

constexpr operator coroutine_handle<>() const noexcept;
(C++20 起)

此转换函数将 std::coroutine_handle<Promise> 值转换成保有相同底层地址的 std::coroutine_handle<> 。它等效地擦除承诺类型。

参数

(无)

返回值

std::coroutine_handle<>::from_address(address())

参阅

比较二个 coroutine_handle 对象
(函数)