operator==(std::stop_token)

Compares two stop_token values.

# Declarations

friend bool operator==( const stop_token& lhs, const stop_token& rhs ) noexcept;

(since C++20)

# Parameters

# Return value

true if lhs and rhs have the same associated stop-state, or both have no associated stop-state, otherwise false.