operator==(std::stop_token)
提供: cppreference.com
< cpp | thread | stop token
[[nodiscard]] friend bool operator==( const stop_token& lhs, const stop_token& rhs ) noexcept; |
(C++20以上) | |
2つの stop_token
オブジェクトを比較します。
この関数は通常の無修飾または修飾付きの名前探索に対しては可視ではなく、 std::stop_token
が引数の関連クラスであるときの実引数依存の名前探索によってのみ発見されます。
[編集] 引数
lhs, rhs | - | 比較する stop_token
|
[編集] 戻り値
lhs
と rhs
が同じ紐付いた停止状態を持つ場合、またはどちらも紐付いた停止状態を持たない場合は true、そうでなければ false。