operator==,!=,<,<=,>,>=(std::array)
template< class T, std::size_t N > bool operator==( array<T,N>& lhs, |
(1) | |
template< class T, std::size_t N > bool operator!=( array<T,N>& lhs, |
(2) | |
template< class T, std::size_t N > bool operator<( array<T,N>& lhs, |
(3) | |
template< class T, std::size_t N > bool operator<=( array<T,N>& lhs, |
(4) | |
template< class T, std::size_t N > bool operator>( array<T,N>& lhs, |
(5) | |
template< class T, std::size_t N > bool operator>=( array<T,N>& lhs, |
(6) | |
Compares the contents of two containers.
[edit] Parameters
lhs, rhs | - | containers whose contents to compare |
[edit] Return value
1) true if the contents of the containers are equivalent, false otherwise
2) true if the contents of the containers are not equivalent, false otherwise
3) true if the contents of the lhs are lexicographically less than the contents of rhs, false otherwise
4) true if the contents of the lhs are lexicographically less than or equal the contents of rhs, false otherwise
5) true if the contents of the lhs are lexicographically greater than the contents of rhs, false otherwise
6) true if the contents of the lhs are lexicographically greater than or equal the contents of rhs, false otherwise
[edit] Complexity
Linear in the size of the container