BloombergLP::bdlb::operator==

Return whether lhs and rhs 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 have the same value if they are both set and hold objects of the same type and same value, or are both unset.

Return Value

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

Parameters

NameDescription
lhsleft-hand operand
rhsright-hand operand