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

Return whether the operands have the same value&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;TYPE&gt;
constexpr
bool
operator&equals;&equals;(
    xref:bsl/optional-072.adoc[bsl::optional&lt;t&lowbar;TYPE&gt;] const& value,
    xref:bsl/nullopt_t.adoc[bsl::nullopt&lowbar;t] const& nullopt) noexcept;
----

== Description

Return `true` if the specified `value` is disengaged, and `false` otherwise&period; This function can be called in constant expressions only if `t&lowbar;TYPE` is not allocator&hyphen;aware&period;

== Return Value

`true` if `value` is disengaged, and `false` otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *value*
| value compared with or used to initialize the optional
| *nullopt*
| disengaged&hyphen;optional tag&semi; value is unused
|===


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