Namespaces
Variants

std::coroutine_handle<Promise>::operator=

cppreference.net에서
 
 
유틸리티 라이브러리
일반 유틸리티
관계 연산자 (C++20에서 폐기됨)
정수 비교 함수
(C++20)(C++20)(C++20)    
(C++20)
교환 및 타입 연산
(C++14)
(C++11)
(C++11)
(C++11)
(C++17)
공통 어휘 타입
(C++11)
(C++17)
(C++17)
(C++17)
(C++11)
(C++17)
(C++23)



 
코루틴 지원
코루틴 특성
코루틴 핸들
무연산 코루틴
자명한 awaitable
범위 생성기
(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