[#BloombergLP-bdld-operator_eq-02] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdld.adoc[bdld]::operator== :relfileprefix: ../../ :mrdocs: Equality operators == Synopses Declared in `<bdld_datum.h>` Return `true` if the specified `lhs` and `rhs` have the same value, and `false` otherwise. Two `DatumBinaryRef` objects have the same value if they refer to arrays of bytes of the same size and having the same content. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bdld/operator_eq-08f.adoc[operator==]( 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..._]# Return `true` if the specified `lhs` and `rhs` have the same value and `false` otherwise. Two `DatumError` objects have the same value if they have same error code and message values. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bdld/operator_eq-0b.adoc[operator==]( 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..._]# Return `true` if the specified `lhs` and `rhs` have the same value, and `false` otherwise. Two `DatumUdt` objects have the same value if they have the same data and type values. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bdld/operator_eq-001.adoc[operator==]( 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..._]# Return `true` if the specified `lhs` and `rhs` represent the same value, and `false` otherwise. Two datums (not holding strings and user‐ defined objects) represent the same value if they have the same type of value stored inside them and invoking `==` operator on the stored values returns `true`. Two datums holding strings are equal if the strings have the same length and and values at each respective character position are also same. Two datums holding user‐defined objects are equal if the user‐defined objects have the same pointer and type values. Two `nil` datums are always equal. Two `Datum` objects holding `NaN` values are never equal. Two datums that hold arrays of datums have the same value if the underlying arrays have the same length and invoking `==` operator on each corresponding element returns `true`. 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 `==` operator on the values returns `true`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bdld/operator_eq-06.adoc[operator==]( 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..._]# Return `true` if the specified `lhs` and `rhs` have the same value, and `false` otherwise. 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bdld/operator_eq-07.adoc[operator==]( 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..._]# Return `true` if the specified `lhs` and `rhs` have the same value, and `false` otherwise. Two `DatumIntMapEntry` objects have the same value if their keys and values compare equal. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bdld/operator_eq-04.adoc[operator==]( 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..._]# Return `true` if the specified `lhs` and `rhs` have the same value, and `false` otherwise. 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bdld/operator_eq-0c.adoc[operator==]( 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..._]# Return `true` if the specified `lhs` and `rhs` have the same value, and `false` otherwise. Two `DatumMapEntry` objects have the same value if their keys and values compare equal. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bdld/operator_eq-000.adoc[operator==]( 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..._]# Return `true` if the specified `lhs` and `rhs` have the same value, and `false` otherwise. 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bdld/operator_eq-09.adoc[operator==]( 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..._]# Return `true` if the specified `lhs` and `rhs` `ManagedDatum` objects have the same value, and `false` otherwise. Two `ManagedDatum` objects have the same value if their corresponding managed `Datum` objects have the same value. See the function‐level documentation of the `Datum` equality‐comparison operators for details. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bdld/operator_eq-08a.adoc[operator==]( 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..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#