| (1) | template <class T, size_T N> bool operator== ( const array<T,N>& lhs, const array<T,N>& rhs ); |
|---|---|
| (2) | template <class T, size_T N> bool operator!= ( const array<T,N>& lhs, const array<T,N>& rhs ); |
| (3) | template <class T, size_T N> bool operator< ( const array<T,N>& lhs, const array<T,N>& rhs ); |
| (4) | template <class T, size_T N> bool operator<= ( const array<T,N>& lhs, const array<T,N>& rhs ); |
| (5) | template <class T, size_T N> bool operator> ( const array<T,N>& lhs, const array<T,N>& rhs ); |
| (6) | template <class T, size_T N> bool operator>= ( const array<T,N>& lhs, const array<T,N>& rhs ); |
operator==) is performed by comparing the elements sequentially using operator==, stopping at the first mismatch (as if using algorithm equal).operator<) behaves as if using algorithm lexicographical_compare, which compares the elements sequentially using operator< in a reciprocal manner (i.e., checking both a<b and b<a) and stopping at the first occurrence.== and < internally to compare the elements, behaving as if the following equivalent operations were performed:| operation | equivalent operation |
|---|---|
a!=b | !(a==b) |
a>b | b<a |
a<=b | !(b<a) |
a>=b | !(a<b) |
|
|
a and b are equal b and c are not equal b is less than c c is greater than b a is less than or equal to b a is greater than or equal to b |
N).