bsl::operator==

Return true if lhs and rhs have the same value.

Synopsis

Declared in <bslstl_multiset.h>

template<
    class KEY,
    class COMPARATOR,
    class ALLOCATOR>
bool
operator==(
    multiset<KEY, COMPARATOR, ALLOCATOR> const& lhs,
    multiset<KEY, COMPARATOR, ALLOCATOR> const& rhs);

Description

Return true if the specified lhs and rhs objects have the same value, and false otherwise. Two multiset 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}).

Return Value

true if lhs and rhs compare equal, and false otherwise

Parameters

NameDescription
lhsleft-hand multiset to compare
rhsright-hand multiset to compare