Return true if lhs and rhs have the same value, and false otherwise.
Declared in <bslstl_set.h>
template<
class KEY,
class COMPARATOR,
class ALLOCATOR>
bool
operator==(
set<KEY, COMPARATOR, ALLOCATOR> const& lhs,
set<KEY, COMPARATOR, ALLOCATOR> const& rhs);
Two set objects lhs and rhs have the same value if they have the same number of keys, and each element in the ordered sequence of keys of lhs has the same value as the corresponding element in the ordered sequence of keys of rhs. This method requires that the (template parameter) type KEY be equality-comparable (see {Requirements on KEY}).
true if the sets compare equal
| Name | Description |
|---|---|
| lhs | first set to compare |
| rhs | second set to compare |