std::coroutine_handle<Promise>::operator=

From cppreference.com
Utilities library
General utilities
Relational operators (deprecated in C++20)
Integer comparison functions
(C++20)(C++20)(C++20)
(C++20)
Swap and type operations
(C++20)
(C++14)
(C++11)
(C++23)
(C++11)
(C++23)
(C++11)
(C++17)
Common vocabulary types
(C++11)
(C++17)
(C++17)
(C++17)
(C++11)
(C++11)
(C++17)
(C++17)
(C++23)



Coroutine support
Coroutine traits
Coroutine handle
No-op coroutines
(C++20)
Trivial awaitables
(C++20)
(C++20)
Range generators
(C++23)
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)

Replaces the underlying address.

1) Replaces the underlying address with a null pointer value. After assignment, *this does not refer to a coroutine. This assignment operator is not declared for specialization std::coroutine_handle < std::noop_coroutine_promise >
2,3) Replaces the underlying address with the one of other

Parameters

other - another coroutine_handle to assign from

Return value

*this