std::coroutine_handle<Promise>::operator=
cppreference.net에서
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