std::coroutine_handle<Promise>::operator=
coroutine_handle& operator=( std::nullptr_t ) noexcept; | (1) | (since C++20) |
coroutine_handle& operator=( const coroutine_handle& other ) = default; | (2) | (since C++20) |
coroutine_handle& operator=( coroutine_handle&& other ) = default; | (3) | (since C++20) |
Заменяет базовый адрес.
1) Заменяет базовый адрес значением нулевого указателя. После присваивания
*this не ссылается на сопроцедуру. Этот оператор присваивания не объявлен для специализации std::coroutine_handle<std::noop_coroutine_promise>.
2,3) Заменяет базовый адрес адресом
other. Операторы присваивания копирования и перемещения эквивалентны неявно объявленным.Параметры
| other | - | другая coroutine_handle для присваивания |
Возвращаемое значение
*this
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/coroutine/coroutine_handle/operator%3D