|
|
"aaa 1" "aaa 2" |
Lexicographical comparison is a operation with the following properties: Two ranges are compared element by element. . The first mismatching element defines which range is lexicographically less or greater than the other. . If one range is a prefix of another, the shorter range is lexicographically less than the other. . If two ranges have equivalent elements and are of the same length, then the ranges are lexicographically equal. . An empty range is lexicographically less than any non-empty range. . Two empty ranges are lexicographically equal. https://en.cppreference.com/w/cpp/algorithm/lexicographical_compare |