Equality operators

Synopses

Declared in <bdlb_bigendian.h>

Return whether rhs is null.

template<class TYPE>
bool
operator==(
    bsl::nullopt_t const& lhs,
    NullableValueRef<TYPE> const& rhs) noexcept;

Return true if the specified lhs and rhs have the same value.

bool
operator==(
    BigEndianInt16 const& lhs,
    BigEndianInt16 const& rhs);

Return true if the specified lhs and rhs have the same value.

bool
operator==(
    BigEndianUint16 const& lhs,
    BigEndianUint16 const& rhs);

Return true if the specified lhs and rhs have the same value.

bool
operator==(
    BigEndianInt32 const& lhs,
    BigEndianInt32 const& rhs);

Return true if the specified lhs and rhs have the same value.

bool
operator==(
    BigEndianUint32 const& lhs,
    BigEndianUint32 const& rhs);

Return true if the specified lhs and rhs have the same value.

bool
operator==(
    BigEndianInt64 const& lhs,
    BigEndianInt64 const& rhs);

Return true if the specified lhs and rhs have the same value.

bool
operator==(
    BigEndianUint64 const& lhs,
    BigEndianUint64 const& rhs);

Return whether lhs and rhs have the same value.

template<
    class LHS_TYPE,
    class RHS_TYPE>
bool
operator==(
    NullableValueRef<LHS_TYPE> const& lhs,
    NullableValueRef<RHS_TYPE> const& rhs);

Return whether lhs and rhs have the same value.

template<
    class LHS_TYPE,
    class RHS_TYPE>
bool
operator==(
    NullableValueRef<LHS_TYPE> const& lhs,
    RHS_TYPE const& rhs);

See the overload above for contract.

template<
    class LHS_TYPE,
    class RHS_TYPE>
bool
operator==(
    LHS_TYPE const& lhs,
    NullableValueRef<RHS_TYPE> const& rhs);

Return whether lhs is null.

template<class TYPE>
bool
operator==(
    NullableValueRef<TYPE> const& lhs,
    bsl::nullopt_t const& rhs) noexcept;

Return true if the specified value is null, and false otherwise.

template<class TYPE>
constexpr
bool
operator==(
    NullableValue<TYPE> const& value,
    bsl::nullopt_t const& nullopt) noexcept;

Return whether lhs and rhs have the same value.

template<
    class LHS_TYPE,
    class RHS_TYPE>
bool
operator==(
    ConstNullableValueRef<LHS_TYPE> const& lhs,
    ConstNullableValueRef<RHS_TYPE> const& rhs);

Return whether lhs and rhs have the same value.

template<
    class LHS_TYPE,
    class RHS_TYPE>
bool
operator==(
    ConstNullableValueRef<LHS_TYPE> const& lhs,
    RHS_TYPE const& rhs);

See the overload above for contract.

template<
    class LHS_TYPE,
    class RHS_TYPE>
bool
operator==(
    LHS_TYPE const& lhs,
    ConstNullableValueRef<RHS_TYPE> const& rhs);

Return whether lhs is null.

template<class TYPE>
bool
operator==(
    ConstNullableValueRef<TYPE> const& lhs,
    bsl::nullopt_t const& rhs) noexcept;

Return whether rhs is null.

template<class TYPE>
bool
operator==(
    bsl::nullopt_t const& lhs,
    ConstNullableValueRef<TYPE> const& rhs) noexcept;

Return whether lhs and rhs have the same value.

template<
    class LHS_TYPE,
    class RHS_TYPE>
bool
operator==(
    ConstNullableValueRef<LHS_TYPE> const& lhs,
    NullableValueRef<RHS_TYPE> const& rhs);

See the overload above for contract.

template<
    class LHS_TYPE,
    class RHS_TYPE>
bool
operator==(
    NullableValueRef<LHS_TYPE> const& lhs,
    ConstNullableValueRef<RHS_TYPE> const& rhs);

Return true if the underlying iterators of lhs and rhs are equal.

template<
    class FUNCTOR,
    class ITERATOR>
bool
operator==(
    TransformIterator<FUNCTOR, ITERATOR> const& lhs,
    TransformIterator<FUNCTOR, ITERATOR> const& rhs);

Return true if lhs and rhs refer to the same token position.

bool
operator==(
    TokenizerIterator const& lhs,
    TokenizerIterator const& rhs);

Return true if the specified rhs is null, and false otherwise.

template<class TYPE>
bool
operator==(
    bsl::nullopt_t const& nullopt,
    NullableAllocatedValue<TYPE> const& rhs) noexcept;

Return whether lhs and rhs have the same value.

template<class TYPES>
bool
operator==(
    VariantImp<TYPES> const& lhs,
    VariantImp<TYPES> const& rhs);

Return true if the specified lhs and rhs objects have the same value.

bool
operator==(
    PcgRandomGenerator const& lhs,
    PcgRandomGenerator const& rhs);

Return true if the specified lhs and rhs have the same value.

bool
operator==(
    IndexSpan const& lhs,
    IndexSpan const& rhs);

Return true if the specified lhs and rhs have the same value.

bool
operator==(
    Guid const& lhs,
    Guid const& rhs);

Return true if the specified lhs and rhs objects have the same value.

template<
    class t_TYPE,
    unsigned int t_NUM_BITS>
bool
operator==(
    NullableAllocatedValue_PointerBitsPair<t_TYPE, t_NUM_BITS> const& lhs,
    NullableAllocatedValue_PointerBitsPair<t_TYPE, t_NUM_BITS> const& rhs);

Return whether the operands have the same value.

template<
    class LHS_TYPE,
    class RHS_TYPE>
bool
operator==(
    NullableAllocatedValue<LHS_TYPE> const& lhs,
    NullableAllocatedValue<RHS_TYPE> const& rhs);

Return whether the operands have the same value.

template<
    class LHS_TYPE,
    class RHS_TYPE>
bool
operator==(
    NullableAllocatedValue<LHS_TYPE> const& lhs,
    RHS_TYPE const& rhs);

Return true if the specified lhs and rhs objects have the same value, and false otherwise.

template<
    class LHS_TYPE,
    class RHS_TYPE>
bool
operator==(
    LHS_TYPE const& lhs,
    NullableAllocatedValue<RHS_TYPE> const& rhs);

Return whether the specified nullable value is null.

template<class TYPE>
bool
operator==(
    NullableAllocatedValue<TYPE> const& lhs,
    bsl::nullopt_t const& nullopt) noexcept;

Grant the equality comparison operator access to this class's private members.

template<class VARIANT_TYPES>
bool
operator==(
    VariantImp<VARIANT_TYPES> const& lhs,
    VariantImp<VARIANT_TYPES> const& rhs);

Return whether the operands have the same value.

template<
    class LHS_TYPE,
    class RHS_TYPE>
bool
operator==(
    NullableAllocatedValue<LHS_TYPE> const& lhs,
    bsl::optional<RHS_TYPE> const& rhs);

Return true if the specified nullable objects have the same value, and false otherwise.

template<
    class LHS_TYPE,
    class RHS_TYPE>
bool
operator==(
    bsl::optional<LHS_TYPE> const& lhs,
    NullableAllocatedValue<RHS_TYPE> const& rhs);

Return whether the specified lhs and rhs have the same value.

template<
    class LHS_TYPE,
    class RHS_TYPE>
bool
operator==(
    NullableValue<LHS_TYPE> const& lhs,
    NullableValue<RHS_TYPE> const& rhs)
requires requires {
        { *lhs == *rhs } ‐> NullableValue_ConvertibleToBool;
    };

Return true if the specified nullable objects have the same value, and false otherwise.

template<
    class LHS_TYPE,
    class RHS_TYPE>
bool
operator==(
    NullableValue<LHS_TYPE> const& lhs,
    bsl::optional<RHS_TYPE> const& rhs)
requires requires {
        { *lhs == *rhs } ‐> NullableValue_ConvertibleToBool;
    };

Return true if the specified nullable objects have the same value.

template<
    class LHS_TYPE,
    class RHS_TYPE>
bool
operator==(
    bsl::optional<LHS_TYPE> const& lhs,
    NullableValue<RHS_TYPE> const& rhs)
requires requires {
        { *lhs == *rhs } ‐> NullableValue_ConvertibleToBool;
    };

Return true if the specified nullable objects have the same value.

template<
    class LHS_TYPE,
    class RHS_TYPE>
bool
operator==(
    NullableValue<LHS_TYPE> const& lhs,
    std::optional<RHS_TYPE> const& rhs)
requires requires {
        { *lhs == *rhs } ‐> NullableValue_ConvertibleToBool;
    };

Return true if the specified nullable objects have the same value, and false otherwise.

template<
    class LHS_TYPE,
    class RHS_TYPE>
bool
operator==(
    std::optional<LHS_TYPE> const& lhs,
    NullableValue<RHS_TYPE> const& rhs)
requires requires {
        { *lhs == *rhs } ‐> NullableValue_ConvertibleToBool;
    };

Return whether the specified lhs and rhs have the same value.

template<
    class LHS_TYPE,
    class RHS_TYPE>
bool
operator==(
    NullableValue<LHS_TYPE> const& lhs,
    RHS_TYPE const& rhs)
requires (!NullableValue_DerivedFromOptional<RHS_TYPE>) &&
    requires { { *lhs == rhs } ‐> NullableValue_ConvertibleToBool; };

Return true if the specified value and nullable object compare equal, and false otherwise.

template<
    class LHS_TYPE,
    class RHS_TYPE>
bool
operator==(
    LHS_TYPE const& lhs,
    NullableValue<RHS_TYPE> const& rhs)
requires (!NullableValue_DerivedFromOptional<LHS_TYPE>) &&
    requires { { lhs == *rhs } ‐> NullableValue_ConvertibleToBool; };

Return Value

  • true if the specified rhs is null, and false otherwise

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

  • true if the specified lhs and rhs nullable wrappers have the same value, and false otherwise

  • true if the specified lhs and rhs objects have the same value, and false otherwise

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

  • true if the specified lhs is null, and false otherwise

  • true if the specified value is null, and false otherwise

  • true if the underlying iterators are equal, and false otherwise

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

  • true if rhs is null, and false otherwise

  • true if both operands have the same value, and false otherwise

  • true if lhs is null, and false otherwise

  • true if the operands have the same value, and false otherwise

  • true if the specified nullable objects have the same value, and false otherwise

  • true if the specified nullable objects have the same value

  • true if the specified value and nullable object compare equal, and false otherwise

Parameters

Name

Description

lhs

nullopt sentinel

rhs

nullable reference to test

value

nullable object to compare

nullopt

disengaged‐optional tag

Created with MrDocs