Return true if lhs and rhs have the same value, and false otherwise.
Declared in <bslstl_unorderedset.h>
template<
class KEY,
class HASH,
class EQUAL,
class ALLOCATOR>
bool
operator==(
unordered_set<KEY, HASH, EQUAL, ALLOCATOR> const& lhs,
unordered_set<KEY, HASH, EQUAL, ALLOCATOR> const& rhs);
Return true if the specified lhs and rhs objects have the same value, and false otherwise. Two unordered_set objects have the same value if they have the same number of value-elements, and for each value-element that is contained in lhs there is a value-element contained in rhs having the same value, and vice-versa. Note that this method requires that the (template parameter) type KEY be equality-comparable (see {Requirements on KEY}).
true if equal, otherwise false
| Name | Description |
|---|---|
| lhs | left-hand-side unordered set |
| rhs | right-hand-side unordered set |