operator=,!=(std::unordered_multimap) – cppreference.com
Aus cppreference.com
<metanoindex/>
<tbody> </tbody>
|
|
(1) | |
|
|
(2) | |
Vergleicht den Inhalt von zwei ungeordnete Behälter .
Original:
Compares the contents of two unordered containers.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Der Inhalt von zwei ungeordnete Behälter lhs und rhs sind gleichwertig, wenn folgende Bedingungen erfüllt sind:
Original:
The contents of two unordered containers lhs and rhs are equivalent if the following conditions hold:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
lhs.size() == rhs.size()jede Gruppe von entsprechenden Tasten
[lhs_eq1, lhs_eq2)hat eine entsprechende Gruppe von äquivalenten Schlüssel in den anderen Behälter[rhs_eq1, rhs_eq2), die die folgenden Eigenschaften hat:Original:
each group of equivalent keys
[lhs_eq1, lhs_eq2)has a corresponding group of equivalent keys in the other container[rhs_eq1, rhs_eq2), that has the following properties:The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
std::distance(lhs_eq1, lhs_eq2) == std::distance(rhs_eq1, rhs_eq2).std::is_permutation(lhs_eq1, lhs_eq2, rhs_eq1) == true.
Parameter
| lhs, rhs | - | ungeordnete Behälter zu vergleichen Original: unordered containers to compare The text has been machine-translated via Google Translate. |
Rückgabewert
1)
true wenn die Inhalte der Behälter äquivalent sind, false anders angegeben
Original:
true if the contents of the containers are equivalent, false otherwise
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
true wenn die Inhalte der Behälter nicht äquivalent sind, false anders angegeben
Original:
true if the contents of the containers are not equivalent, false otherwise
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Komplexität
ΣSi2 comparisons of the keys in the average case, where S is the size of the ith equivalent key group. N2 comparisons of the keys in the worst case, where N is the size of the container.