boost::operator< — Lexicographically compares the values in the array (operator<)
// In header: <boost/array.hpp> template<typename T, std::size_t N> bool operator<(const array< T, N > & x, const array< T, N > & y);
This function lexicographically compares the values in the array.
Complexity.
Linear
Parameters:
x
First array whose contents to compare
y
Second array whose contents to compare
Template Parameters:
N
array size
T
array value type
Returns:
true if x < y