[#bsl-operator_eq-0c5]
= xref:bsl.adoc[bsl]::operator&equals;&equals;
:relfileprefix: ../
:mrdocs:

Return `true` if the specified `lhs` and `rhs` refer to the same stop state, or if neither refers to a stop state&semi; `false` otherwise&period; Implementation note&colon; this function is required by the standard to be a hidden friend (&lsqb;hidden&period;friends&rsqb;, &lsqb;stoptoken&period;general&rsqb;)&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;stoptoken&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
bool
operator&equals;&equals;(
    xref:bsl/stop_token.adoc[stop&lowbar;token] const& lhs,
    xref:bsl/stop_token.adoc[stop&lowbar;token] const& rhs) noexcept;
----

== Return Value

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====

[.small]#Created with https://www.mrdocs.com[MrDocs]#
