ShortLexCompare¶
-
template<typename
T>
structShortLexCompare¶ Defined in
order.hpp.A stateless struct with binary call operator using shortlex_compare.
This only exists to be used as a template parameter, and has no advantages over using shortlex_compare otherwise.
- See
- Template Parameters
T: the type of the objects to be compared.
Public Functions
-
bool
operator()(T const &x, T const &y)¶ Call operator that compares
xandyusing std::lexicographical_compare.- Return
A
bool.- Exceptions
- Complexity
- Parameters
x: const reference to the first object for comparisony: const reference to the second object for comparison