[#BloombergLP-bdlb-operator_eq-0fc]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::operator&equals;&equals;
:relfileprefix: ../../
:mrdocs:

Return whether `lhs` and `rhs` have the same value&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;variant&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPES&gt;
bool
operator&equals;&equals;(
    xref:BloombergLP/bdlb/VariantImp.adoc[VariantImp&lt;TYPES&gt;] const& lhs,
    xref:BloombergLP/bdlb/VariantImp.adoc[VariantImp&lt;TYPES&gt;] const& rhs);
----

== Description

Two variant objects have the same value if they are both set and hold objects of the same type and same value, or are both unset&period;

== Return Value

`true` if `lhs` and `rhs` have the same value, and `false` otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *lhs*
| left&hyphen;hand operand
| *rhs*
| right&hyphen;hand operand
|===


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