[#beman-optional-operator_eq-0b0]
= xref:beman.adoc[beman]::xref:beman/optional.adoc[optional]::operator&equals;&equals;
:relfileprefix: ../../
:mrdocs:

Equality operators

== Synopses

Declared in `&lt;beman&sol;optional&sol;optional&period;hpp&gt;`

Equality operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename T,
    typename U&gt;
constexpr
bool
xref:beman/optional/operator_eq-08.adoc[operator&equals;&equals;](
    xref:beman/optional/optional-03.adoc[optional&lt;T&gt;] const& lhs,
    xref:beman/optional/optional-03.adoc[optional&lt;U&gt;] const& rhs)
requires detail&colon;&colon;optional&lowbar;eq&lowbar;rel&lt;T, U&gt;;
----

[.small]#xref:beman/optional/operator_eq-08.adoc[_» more&period;&period;&period;_]#

Equality operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class T&gt;
constexpr
bool
xref:beman/optional/operator_eq-00.adoc[operator&equals;&equals;](
    xref:beman/optional/optional-03.adoc[optional&lt;T&gt;] const& lhs,
    xref:beman/optional/nullopt_t.adoc[nullopt&lowbar;t] rhs) noexcept;
----

[.small]#xref:beman/optional/operator_eq-00.adoc[_» more&period;&period;&period;_]#

Equality operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename T,
    typename U&gt;
constexpr
bool
xref:beman/optional/operator_eq-09.adoc[operator&equals;&equals;](
    xref:beman/optional/optional-03.adoc[optional&lt;T&gt;] const& lhs,
    U const& rhs)
requires detail&colon;&colon;optional&lowbar;eq&lowbar;rel&lt;T, U&gt;;
----

[.small]#xref:beman/optional/operator_eq-09.adoc[_» more&period;&period;&period;_]#

Equality operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename T,
    typename U&gt;
constexpr
bool
xref:beman/optional/operator_eq-0b3.adoc[operator&equals;&equals;](
    T const& lhs,
    xref:beman/optional/optional-03.adoc[optional&lt;U&gt;] const& rhs)
requires detail&colon;&colon;optional&lowbar;eq&lowbar;rel&lt;T, U&gt;;
----

[.small]#xref:beman/optional/operator_eq-0b3.adoc[_» more&period;&period;&period;_]#


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