operator==,!=,<,<=,>,>=(std::queue)
Z cppreference.com
template<class T, class Container > bool operator==(const queue<T,Container>& lhs, | (1) | |
template<class T, class Container > bool operator!=(const queue<T,Container>& lhs, | (2) | |
template<class T, class Container > bool operator<(const queue<T,Container>& lhs, | (3) | |
template<class T, class Container > bool operator<=(const queue<T,Container>& lhs, | (4) | |
template<class T, class Container > bool operator>(const queue<T,Container>& lhs, | (5) | |
template<class T, class Container > bool operator>=(const queue<T,Container>& lhs, | (6) | |
Porównuje zawartość dwóch kontenerów opakowanych w adapterach. Porównania są wykonywane wykorzystując odpowiadające operatory na opakowywanych kontenerach.
[edytuj]Parametry
lhs, rhs | - | adaptery kontenerów, których zawartość zostaje porównana |
-T musi spełniać wymagania EqualityComparable. |
[edytuj]Zwracana wartość
true jeśli odpowiadający operator zwróci true, w przeciwnym razie false.
[edytuj]Złożoność
Liniowa względem rozmiaru kontenera