std::coroutine_handle<Promise>:: operator coroutine_handle<>
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Coroutine traits | ||||
|
(C++20)
|
||||
| Coroutine handle | ||||
|
(C++20)
|
||||
| No-op coroutines | ||||
|
(C++20)
|
||||
|
(C++20)
|
||||
| Trivial awaitables | ||||
|
(C++20)
|
||||
|
(C++20)
|
||||
| Range generators | ||||
|
(C++23)
|
| Member functions | ||||
| Conversion | ||||
|
coroutine_handle::operator coroutine_handle<>
|
||||
| Observers | ||||
| Control | ||||
| Promise access | ||||
| Export/import | ||||
| Non-member functions | ||||
| Helper classes | ||||
|
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
对象
(函数) |