BloombergLP::bdlc::operator==

Return whether lhs and rhs have the same value.

Synopsis

Declared in <bdlc_flathashmap.h>

template<
    class KEY,
    class VALUE,
    class HASH,
    class EQUAL>
bool
operator==(
    FlatHashMap<KEY, VALUE, HASH, EQUAL> const& lhs,
    FlatHashMap<KEY, VALUE, HASH, EQUAL> const& rhs);

Description

Return true if the specified lhs and rhs objects have the same value, and false otherwise. Two FlatHashMap objects have the same value if their sizes are the same and each element contained in one is equal to an element of the other. The hash and equality functors are not involved in the comparison.

Return Value

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

Parameters

NameDescription
lhsleft-hand map to compare
rhsright-hand map to compare