operator==,!=(std::unordered_multimap)
From cppreference.com
< cpp | container | unordered multimap
template< class Key, class T, class Hash, class KeyEqual, class Alloc > bool operator==( const std::unordered_multimap<Key, T, Hash, KeyEqual, Alloc>& lhs, |
(1) | |
template< class Key, class T, class Hash, class KeyEqual, class Alloc > bool operator!=( const std::unordered_multimap<Key, T, Hash, KeyEqual, Alloc>& lhs, |
(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_eq1,
lhs_eq2)
obtained from lhs.equal_range(lhs_eq1) has a corresponding group of equivalent elements in the other container[
rhs_eq1,
rhs_eq2)
obtained from rhs.equal_range(rhs_eq1), that has the following properties: