Return true if lhs and rhs have the same value, and false otherwise.
Declared in <bslstl_unorderedmap.h>
template<
class KEY,
class VALUE,
class HASH,
class EQUAL,
class ALLOCATOR>
bool
operator==(
unordered_map<KEY, VALUE, HASH, EQUAL, ALLOCATOR> const& lhs,
unordered_map<KEY, VALUE, HASH, EQUAL, ALLOCATOR> const& rhs);
Return true if the specified lhs and rhs objects have the same value, and false otherwise. Two unordered_map objects have the same value if they have the same number of key-value pairs, and for each key-value pair that is contained in lhs there is a key-value pair contained in rhs having the same value, and vice versa. Note that this method requires that the (template parameter) types KEY and VALUE both be equality-comparable (see {Requirements on value_type}).
true if equal, otherwise false
| Name | Description |
|---|---|
| lhs | left-hand unordered map to compare |
| rhs | right-hand unordered map to compare |