Equality operators
Synopses
Declared in <bdldfp_decimal.h>
Return true if the specified lhs and rhs objects have the same value, and false otherwise. Two DecimalFormatConfig objects have the same value if each of their attributes (respectively) have the same value. Note that comparison of two string type attributes are done via 'bsl::strcmp() function.
bool
operator==(
DecimalFormatConfig const& lhs,
DecimalFormatConfig const& rhs);
Return true if the specified lhs and the specified rhs objects have the same value, and false otherwise. Two Uint128 objects have the same value if both of their low and high attributes are the same.
bool
operator==(
Uint128 const& lhs,
Uint128 const& rhs);
Return true if the specified lhs and rhs have the same value, and false otherwise. Two Decimal32 objects have the same value if the compareQuietEqual operation (IEEE‐754 defined, non‐total ordering comparison) considers the underlying IEEE representations equal. In other words, two Decimal32 objects have the same value if:
bool
operator==(
Decimal32 lhs,
Decimal32 rhs);
Return true if the specified lhs and rhs have the same value, and false otherwise. Two Decimal64 objects have the same value if the compareQuietEqual operation (IEEE‐754 defined, non‐total ordering comparison) considers the underlying IEEE representations equal. In other words, two Decimal64 objects have the same value if:
bool
operator==(
Decimal64 lhs,
Decimal64 rhs);
Return true if the specified lhs and rhs have the same value, and false otherwise. Two decimal objects have the same value if the compareQuietEqual operation (IEEE‐754 defined, non‐total ordering comparison) considers the underlying IEEE representations equal. In other words, two decimal objects have the same value if:
bool
operator==(
Decimal32 lhs,
Decimal64 rhs);
Decimal arithmetic/comparison operation: bool operator==.
bool
operator==(
Decimal64 lhs,
Decimal32 rhs);
Return true if the specified lhs and rhs have the same value, and false otherwise. Two Decimal128 objects have the same value if the compareQuietEqual operation (IEEE‐754 defined, non‐total ordering comparison) considers the underlying IEEE representations equal. In other words, two Decimal128 objects have the same value if:
bool
operator==(
Decimal128 lhs,
Decimal128 rhs);
Return true if the specified lhs and rhs have the same value, and false otherwise. Two decimal objects have the same value if the compareQuietEqual operation (IEEE‐754 defined, non‐total ordering comparison) considers the underlying IEEE representations equal. In other words, two decimal objects have the same value if:
bool
operator==(
Decimal32 lhs,
Decimal128 rhs);
Decimal arithmetic/comparison operation: bool operator==.
bool
operator==(
Decimal128 lhs,
Decimal32 rhs);
Decimal arithmetic/comparison operation: bool operator==.
bool
operator==(
Decimal64 lhs,
Decimal128 rhs);
Decimal arithmetic/comparison operation: bool operator==.
bool
operator==(
Decimal128 lhs,
Decimal64 rhs);
Created with MrDocs