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) | (seit C++20) |
|
coroutine_handle
&
operator
=
(
const
coroutine_handle
&
other
)
=
default
;
|
(2) | (seit C++20) |
|
coroutine_handle
&
operator
=
(
coroutine_handle
&&
other
)
=
default
;
|
(3) | (seit C++20) |
Ersetzt die zugrunde liegende Adresse.
1)
Ersetzt die zugrundeliegende Adresse durch einen Nullzeigerwert. Nach der Zuweisung,
*
this
verweist nicht auf eine Coroutine. Dieser Zuweisungsoperator ist nicht deklariert für die Spezialisierung
std::
coroutine_handle
<
std::
noop_coroutine_promise
>
.
2,3)
Ersetzt die zugrundeliegende Adresse durch die von
other
. Kopier- und Verschiebezuweisungsoperatoren entsprechen den implizit deklarierten.
Parameter
| andere | - |
eine andere
coroutine_handle
, von der zugewiesen werden soll
|
Rückgabewert
* this