Namespaces
Variants

std::coroutine_handle<Promise>:: operator=

From cppreference.net
Utilities library
Coroutine support
Coroutine traits
Coroutine handle
No-op coroutines
Trivial awaitables
Range generators
(C++23)
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 이후)

기본 주소를 대체합니다.

1) 기본 주소를 널 포인터 값으로 교체합니다. 할당 후, * this 는 코루틴을 참조하지 않습니다. 이 할당 연산자는 특수화 std:: coroutine_handle < std:: noop_coroutine_promise > 에 대해 선언되지 않습니다.
2,3) 기본 주소를 other 의 주소로 대체합니다. 복사 및 이동 할당 연산자는 암시적으로 선언된 연산자들과 동등합니다.

매개변수

other - 할당할 다른 coroutine_handle

반환값

* this