Różnice między wybraną wersją a wersją aktualną.
Both sides previous revision Previous revision Next revision | Previous revision | ||
opis_kontenera:queue [2008/12/12 11:10] mgugala |
opis_kontenera:queue [2008/12/12 11:15] (aktualna) mgugala |
||
---|---|---|---|
Linia 60: | Linia 60: | ||
==== Operatory ==== | ==== Operatory ==== | ||
+ | |||
+ | <code cpp>bool operator==(const queue& c1, const queue& c2); | ||
+ | bool operator!=(const queue& c1, const queue& c2); | ||
+ | bool operator<(const queue& c1, const queue& c2); | ||
+ | bool operator>(const queue& c1, const queue& c2); | ||
+ | bool operator<=(const queue& c1, const queue& c2); | ||
+ | bool operator>=(const queue& c1, const queue& c2); | ||
+ | </code> | ||
+ | |||
+ | |||
+ | Porównywane kolejki są jednakowe, gdy: | ||
+ | * zawierają taką samą liczbę elementów | ||
+ | * wszystkie elementy są jednakowe | ||
+ | * wszystkie elementy są umieszczone w tej samej kolejności | ||
+ | |||
+ | ====== Odnośniki ====== | ||
+ | |||
+ | [[http://www.cplusplus.com/reference/stl/queue/|C++ Reference]] | ||
+ |