Namespaces
Variants
Actions

operator==,!=(std::unordered_multimap)

From cppreference.com
 
 
 
 
template< class Key, class T, class Hash, class KeyEqual, class Alloc >

bool operator==( const std::unordered_multimap<Key, T, Hash, KeyEqual, Alloc>& lhs,

                 const std::unordered_multimap<Key, T, Hash, KeyEqual, Alloc>& rhs );
(1)
template< class Key, class T, class Hash, class KeyEqual, class Alloc >

bool operator!=( const std::unordered_multimap<Key, T, Hash, KeyEqual, Alloc>& lhs,

                 const std::unordered_multimap<Key, T, Hash, KeyEqual, Alloc>& rhs );
(2) (until C++20)

Compares the contents of two unordered containers.

The contents of two unordered containers lhs and rhs are equal if the following conditions hold:

  • lhs.size() == rhs.size().
  • each group of equivalent elements [lhs_eq1lhs_eq2) obtained from lhs.equal_range(lhs_eq1) has a corresponding group of equivalent elements in the other container [rhs_eq1rhs_eq2) obtained from rhs.equal_range(rhs_eq1), that has the following properties: