Non-member binary comparisons

Two objects of concurrent_unordered_multiset are equal if the following conditions are true:

  • They contain an equal number of elements.

  • Each group of elements with the same key in one container has the corresponding group of equivalent elements in the other container (not necessarily in the same order).

template <typename T, typename Hash,
          typename KeyEqual, typename Allocator>
bool operator==( const concurrent_unordered_multiset<T, Hash, KeyEqual, Allocator>& lhs,
                 const concurrent_unordered_multiset<T, Hash, KeyEqual, Allocator>& rhs );

Returns: true if lhs is equal to rhs; false, otherwise.


template <typename T, typename Hash,
          typename KeyEqual, typename Allocator>
bool operator!=( const concurrent_unordered_multiset<T, Hash, KeyEqual, Allocator>& lhs,
                 const concurrent_unordered_multiset<T, Hash, KeyEqual, Allocator>& rhs );

Equivalent to !(lhs == rhs).

Returns: true if lhs is not equal to rhs, false otherwise.