Defined in order.hpp.
A stateless struct with binary call operator using std::lexicographical_compare.
This only exists to be used as a template parameter, and has no advantages over using std::lexicographical_compare otherwise.
Public Member Functions | |
| template<typename Iterator> | |
| bool | operator() (Iterator first1, Iterator last1, Iterator first2, Iterator last2) const |
| Call operator that compares iterators using std::lexicographical_compare. | |
| template<typename T> | |
| bool | operator() (std::initializer_list< T > x, std::initializer_list< T > y) const |
Call operator that compares x and y given initializer lists using std::lexicographical_compare. | |
| template<typename Thing> | |
| bool | operator() (Thing const &x, Thing const &y) const |
Call operator that compares x and y using std::lexicographical_compare. | |
|
inlinenodiscard |
Call operator that compares iterators using std::lexicographical_compare.
| Iterator | the type of the parameters. |
| first1 | the start of the first object to compare. |
| last1 | one beyond the end of the first object to compare. |
| first2 | the start of the second object to compare. |
| last2 | one beyond the end of the second object to compare. |
true if the range [first1, last1) is lexicographically less than the range [first2, last2), and false otherwise.
|
inlinenodiscard |
Call operator that compares x and y given initializer lists using std::lexicographical_compare.
| T | the items in the arguments. |
| x | initializer list for the first object for comparison. |
| y | initializer list for the second object for comparison. |
true if x is lexicographically less than y, and false otherwise.
|
inlinenodiscard |
Call operator that compares x and y using std::lexicographical_compare.
| Thing | the type of the parameters. |
| x | const reference to the first object for comparison. |
| y | const reference to the second object for comparison. |
true if x is lexicographically less than y, and false otherwise.