BloombergLP::bdlcc::operator==

Return whether lhs and rhs have the same value.

Synopsis

Declared in <bdlcc_skiplist.h>

template<
    class KEY,
    class DATA>
bool
operator==(
    SkipList<KEY, DATA> const& lhs,
    SkipList<KEY, DATA> const& rhs);

Description

Two lists A and B have the same value if they have the same number of elements, and if for all i in the range [0, numberOfElements), the i'th] pair from the front of A has the same key and data values as the i'th pair from the front of B. Note that if there are duplicate key values in a list, the order of iteration over those pairs may be different than for another list that was constructed from the same sequence of values (and thus the lists may not compare equal).

Return Value

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

Parameters

NameDescription
lhsobject providing the value on the left-hand side
rhsobject providing the value on the right-hand side