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.
- See also
- std::lexicographical_compare.
◆ operator()() [1/3]
Call operator that compares x and y given initializer lists using std::lexicographical_compare.
- Template Parameters
-
| T | the type of the parameters. |
- Parameters
-
| x | initializer list for the first object for comparison. |
| y | initializer list for the second object for comparison. |
- Returns
- The boolean value
true if x is lexicographically less than y, and false otherwise.
- Exceptions
- See std::lexicographical_compare.
- Complexity
- See std::lexicographical_compare.
◆ operator()() [2/3]
template<typename T>
| bool operator() |
( |
T const & | x, |
|
|
T const & | y ) const |
|
inline |
◆ operator()() [3/3]
template<typename T>
| bool operator() |
( |
T | first1, |
|
|
T | last1, |
|
|
T | first2, |
|
|
T | last2 ) const |
|
inline |
Call operator that compares iterators using std::lexicographical_compare.
- Template Parameters
-
| T | the type of the parameters. |
- 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. |
- Returns
- The boolean value
true if the range [first1, last1) is lexicographically less than the range [first2, last2), and false otherwise.
- Exceptions
- See std::lexicographical_compare.
- Complexity
- See std::lexicographical_compare.
The documentation for this struct was generated from the following file:
- /Users/jdm3/libsemigroups/include/libsemigroups/order.hpp