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.
bool
operator==(
DatumBinaryRef const& lhs,
DatumBinaryRef const& rhs);
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.
bool
operator==(
DatumError const& lhs,
DatumError const& rhs);
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.
bool
operator==(
DatumUdt const& lhs,
DatumUdt const& rhs);
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.
bool
operator==(
Datum const& lhs,
Datum const& rhs);
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.
bool
operator==(
DatumArrayRef const& lhs,
DatumArrayRef const& rhs);
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.
bool
operator==(
DatumIntMapEntry const& lhs,
DatumIntMapEntry const& rhs);
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.
bool
operator==(
DatumIntMapRef const& lhs,
DatumIntMapRef const& rhs);
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.
bool
operator==(
DatumMapEntry const& lhs,
DatumMapEntry const& rhs);
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.
bool
operator==(
DatumMapRef const& lhs,
DatumMapRef const& rhs);
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.
bool
operator==(
ManagedDatum const& lhs,
ManagedDatum const& rhs);
Created with MrDocs