std::coroutine_handle<Promise>::operator=
来自cppreference.com
< cpp | coroutine | coroutine handle
coroutine_handle& operator=( std::nullptr_t ) noexcept; |
(1) | (C++20 起) |
coroutine_handle& operator=( const coroutine_handle& other ) = default; |
(2) | (C++20 起) |
coroutine_handle& operator=( coroutine_handle&& other ) = default; |
(3) | (C++20 起) |
替换底层地址。
2,3) 替换底层地址为 other 的底层地址。复制与移动赋值运算符等价于隐式声明者。
参数
other | - | 作为赋值来源的另一 coroutine_handle
|
返回值
*this