operator==, operator<!=>(std::coroutine_handle)
ja.cppreference.net より
| ヘッダで定義 <coroutine>
|
||
constexpr bool
operator==( std::coroutine_handle<> x, std::coroutine_handle<> y ) noexcept;
|
(1) | (C++20から) |
constexpr std::strong_ordering
operator<=>( std::coroutine_handle<> x, std::coroutine_handle<> y ) noexcept;
|
(2) | (C++20から) |
二つの std::coroutine_handle<> の値 x と y を、それらの基盤アドレスに従って比較します。
<、<=、>、>=および!=演算子は、合成され、operator<=>とoperator==からそれぞれ合成されます。
パラメータ
| x, y | - | std:: coroutine_handle <> 比較する値 |
戻り値
1)
x.
address
(
)
==
y.
address
(
)
2)
std::
compare_three_way
{
}
(
x.
address
(
)
, y.
address
(
)
)
注記
これらの演算子は std:: coroutine_handle <> に対してのみオーバーロードされていますが、 std::coroutine_handle の他の特殊化も等値比較および三方比較が可能です。なぜなら、それらは暗黙的に std:: coroutine_handle <> に変換可能であるためです。
例
|
このセクションは不完全です
理由: 例がありません |