Return true if the specified lhs and rhs refer to the same stop state, or if neither refers to a stop state; false otherwise. Implementation note: this function is required by the standard to be a hidden friend ([hidden.friends], [stoptoken.general]).

Synopsis

Declared in <bslstl_stoptoken.h>

[[nodiscard]]
bool
operator==(
    stop_token const& lhs,
    stop_token const& rhs) noexcept;

Return Value

Note

The return value should not be discarded.

Created with MrDocs