std::coroutine_handle<Promise>:: operator=
From cppreference.net
<
cpp
|
coroutine
|
coroutine handle
C++
Utilities library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Coroutine support
| Coroutine traits | ||||
|
(C++20)
|
||||
| Coroutine handle | ||||
|
(C++20)
|
||||
| No-op coroutines | ||||
|
(C++20)
|
||||
|
(C++20)
|
||||
| Trivial awaitables | ||||
|
(C++20)
|
||||
|
(C++20)
|
||||
| Range generators | ||||
|
(C++23)
|
std::coroutine_handle
| Member functions | ||||
|
coroutine_handle::operator=
|
||||
| Conversion | ||||
| Observers | ||||
| Control | ||||
| Promise access | ||||
| Export/import | ||||
| Non-member functions | ||||
| Helper classes | ||||
|
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