Return whether lhs and rhs refer to the same stop state.
Declared in <bslstl_stoptoken.h>
[[nodiscard]]
bool
operator==(
stop_source const& lhs,
stop_source const& rhs) noexcept;
This function is a hidden friend of stop_source, declared only inside that class: it can be found only through argument-dependent lookup.
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], [stopsource.general]).
true if both refer to the same stop state (or neither)
The return value should not be discarded.
| Name | Description |
|---|---|
| lhs | left-hand operand |
| rhs | right-hand operand |