[#BloombergLP-bdld-operator_eq-02]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdld.adoc[bdld]::operator&equals;&equals;
:relfileprefix: ../../
:mrdocs:

Equality operators

== Synopses

Declared in `&lt;bdld&lowbar;datum&period;h&gt;`

Return `true` if the specified `lhs` and `rhs` have the same value, and `false` otherwise&period; Two `DatumBinaryRef` objects have the same value if they refer to arrays of bytes of the same size and having the same content&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:BloombergLP/bdld/operator_eq-08f.adoc[operator&equals;&equals;](
    xref:BloombergLP/bdld/DatumBinaryRef.adoc[DatumBinaryRef] const& lhs,
    xref:BloombergLP/bdld/DatumBinaryRef.adoc[DatumBinaryRef] const& rhs);
----

[.small]#xref:BloombergLP/bdld/operator_eq-08f.adoc[_» more&period;&period;&period;_]#

Return `true` if the specified `lhs` and `rhs` have the same value and `false` otherwise&period; Two `DatumError` objects have the same value if they have same error code and message values&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:BloombergLP/bdld/operator_eq-0b.adoc[operator&equals;&equals;](
    xref:BloombergLP/bdld/DatumError.adoc[DatumError] const& lhs,
    xref:BloombergLP/bdld/DatumError.adoc[DatumError] const& rhs);
----

[.small]#xref:BloombergLP/bdld/operator_eq-0b.adoc[_» more&period;&period;&period;_]#

Return `true` if the specified `lhs` and `rhs` have the same value, and `false` otherwise&period; Two `DatumUdt` objects have the same value if they have the same data and type values&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:BloombergLP/bdld/operator_eq-001.adoc[operator&equals;&equals;](
    xref:BloombergLP/bdld/DatumUdt.adoc[DatumUdt] const& lhs,
    xref:BloombergLP/bdld/DatumUdt.adoc[DatumUdt] const& rhs);
----

[.small]#xref:BloombergLP/bdld/operator_eq-001.adoc[_» more&period;&period;&period;_]#

Return `true` if the specified `lhs` and `rhs` represent the same value, and `false` otherwise&period; Two datums (not holding strings and user&hyphen; defined objects) represent the same value if they have the same type of value stored inside them and invoking `&equals;&equals;` operator on the stored values returns `true`&period; Two datums holding strings are equal if the strings have the same length and and values at each respective character position are also same&period; Two datums holding user&hyphen;defined objects are equal if the user&hyphen;defined objects have the same pointer and type values&period; Two `nil` datums are always equal&period; Two `Datum` objects holding `NaN` values are never equal&period; Two datums that hold arrays of datums have the same value if the underlying arrays have the same length and invoking `&equals;&equals;` operator on each corresponding element returns `true`&period; Two datums that hold maps of datums have the same value if the underlying maps have the same size and each corresponding pair of elements in the maps have the same keys and invoking `&equals;&equals;` operator on the values returns `true`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:BloombergLP/bdld/operator_eq-06.adoc[operator&equals;&equals;](
    xref:BloombergLP/bdld/Datum.adoc[Datum] const& lhs,
    xref:BloombergLP/bdld/Datum.adoc[Datum] const& rhs);
----

[.small]#xref:BloombergLP/bdld/operator_eq-06.adoc[_» more&period;&period;&period;_]#

Return `true` if the specified `lhs` and `rhs` have the same value, and `false` otherwise&period; Two `DatumArrayRef` objects have the same value if they hold arrays of the same length and all the corresponding `Datum` objects in the two arrays also compare equal&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:BloombergLP/bdld/operator_eq-07.adoc[operator&equals;&equals;](
    xref:BloombergLP/bdld/DatumArrayRef.adoc[DatumArrayRef] const& lhs,
    xref:BloombergLP/bdld/DatumArrayRef.adoc[DatumArrayRef] const& rhs);
----

[.small]#xref:BloombergLP/bdld/operator_eq-07.adoc[_» more&period;&period;&period;_]#

Return `true` if the specified `lhs` and `rhs` have the same value, and `false` otherwise&period; Two `DatumIntMapEntry` objects have the same value if their keys and values compare equal&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:BloombergLP/bdld/operator_eq-04.adoc[operator&equals;&equals;](
    xref:BloombergLP/bdld/DatumIntMapEntry.adoc[DatumIntMapEntry] const& lhs,
    xref:BloombergLP/bdld/DatumIntMapEntry.adoc[DatumIntMapEntry] const& rhs);
----

[.small]#xref:BloombergLP/bdld/operator_eq-04.adoc[_» more&period;&period;&period;_]#

Return `true` if the specified `lhs` and `rhs` have the same value, and `false` otherwise&period; Two `DatumIntMapRef` objects have the same value if they hold maps of the same size and all the corresponding `DatumIntMapEntry` elements in the two maps also compare equal&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:BloombergLP/bdld/operator_eq-0c.adoc[operator&equals;&equals;](
    xref:BloombergLP/bdld/DatumIntMapRef.adoc[DatumIntMapRef] const& lhs,
    xref:BloombergLP/bdld/DatumIntMapRef.adoc[DatumIntMapRef] const& rhs);
----

[.small]#xref:BloombergLP/bdld/operator_eq-0c.adoc[_» more&period;&period;&period;_]#

Return `true` if the specified `lhs` and `rhs` have the same value, and `false` otherwise&period; Two `DatumMapEntry` objects have the same value if their keys and values compare equal&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:BloombergLP/bdld/operator_eq-000.adoc[operator&equals;&equals;](
    xref:BloombergLP/bdld/DatumMapEntry.adoc[DatumMapEntry] const& lhs,
    xref:BloombergLP/bdld/DatumMapEntry.adoc[DatumMapEntry] const& rhs);
----

[.small]#xref:BloombergLP/bdld/operator_eq-000.adoc[_» more&period;&period;&period;_]#

Return `true` if the specified `lhs` and `rhs` have the same value, and `false` otherwise&period; Two `DatumMapRef` objects have the same value if they hold maps of the same size and all the corresponding `DatumMapEntry` elements in the two maps also compare equal&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:BloombergLP/bdld/operator_eq-09.adoc[operator&equals;&equals;](
    xref:BloombergLP/bdld/DatumMapRef.adoc[DatumMapRef] const& lhs,
    xref:BloombergLP/bdld/DatumMapRef.adoc[DatumMapRef] const& rhs);
----

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

Return `true` if the specified `lhs` and `rhs` `ManagedDatum` objects have the same value, and `false` otherwise&period; Two `ManagedDatum` objects have the same value if their corresponding managed `Datum` objects have the same value&period; See the function&hyphen;level documentation of the `Datum` equality&hyphen;comparison operators for details&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:BloombergLP/bdld/operator_eq-08a.adoc[operator&equals;&equals;](
    xref:BloombergLP/bdld/ManagedDatum.adoc[ManagedDatum] const& lhs,
    xref:BloombergLP/bdld/ManagedDatum.adoc[ManagedDatum] const& rhs);
----

[.small]#xref:BloombergLP/bdld/operator_eq-08a.adoc[_» more&period;&period;&period;_]#


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