Namespaces
Variants

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

From cppreference.net
Utilities library
Coroutine support
Coroutine traits
Coroutine handle
No-op coroutines
Trivial awaitables
Range generators
(C++23)
constexpr operator coroutine_handle <> ( ) const noexcept ;
(自 C++20 起)

此转换函数将 std:: coroutine_handle < Promise > 值转换为持有相同底层地址的 std:: coroutine_handle <> 。它实际上擦除了承诺类型。

参数

(无)

返回值

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

另请参阅

比较两个 coroutine_handle 对象
(函数)