operator==, operator<=> (std::coroutine_handle)
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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)
|
| Member functions | ||||
| Conversion | ||||
| Observers | ||||
| Control | ||||
| Promise access | ||||
| Export/import | ||||
| Non-member functions | ||||
|
operator==
operator<=>
|
||||
| Helper classes | ||||
|
Definiert im Header
<coroutine>
|
||
|
constexpr
bool
operator == ( std:: coroutine_handle <> x, std:: coroutine_handle <> y ) noexcept ; |
(1) | (seit C++20) |
|
constexpr
std::
strong_ordering
operator <=> ( std:: coroutine_handle <> x, std:: coroutine_handle <> y ) noexcept ; |
(2) | (seit C++20) |
Vergleicht zwei std:: coroutine_handle <> Werte x und y entsprechend ihrer zugrundeliegenden Adressen.
Die
<
-,
<=
-,
>
-,
>=
- und
!=
-Operatoren werden
synthetisiert
aus
operator
<=>
beziehungsweise
operator
==
.
Inhaltsverzeichnis |
Parameter
| x, y | - | std:: coroutine_handle <> zu vergleichende Werte |
Rückgabewert
Hinweise
Obwohl diese Operatoren nur für std:: coroutine_handle <> überladen sind, sind andere Spezialisierungen von std::coroutine_handle ebenfalls auf Gleichheit vergleichbar und mittels Drei-Wege-Vergleich vergleichbar, da sie implizit in std:: coroutine_handle <> konvertierbar sind.
Beispiel
|
Dieser Abschnitt ist unvollständig
Grund: Kein Beispiel |