Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1.28 KB

non_member_binary_comparisons.rst

File metadata and controls

34 lines (23 loc) · 1.28 KB

Non-member binary comparisons

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

  • They contains an equal number of elements.
  • Each element from the one container is also available in the other.
template <typename Key, typename T, typename Hash,
          typename KeyEqual, typename Allocator>
bool operator==( const concurrent_unordered_map<Key, T, Hash, KeyEqual, Allocator>& lhs,
                 const concurrent_unordered_map<Key, T, Hash, KeyEqual, Allocator>& rhs );

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


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

Equivalent to !(lhs == rhs).

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