BloombergLP::bdlb::operator!=

Return whether lhs and rhs do not have the same value.

Synopsis

Declared in <bdlb_variant.h>

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

Description

Two variant objects do not have the same value if one is set and the other is unset, or if they are both set but hold objects that differ in type or value.

Return Value

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

Parameters

NameDescription
lhsleft-hand operand
rhsright-hand operand