shortlex_compare (references)

template<typename T>
bool libsemigroups::shortlex_compare(T const &x, T const &y)

Compare two objects of the same type using shortlex_compare.

Defined in order.hpp.

See also

shortlex_compare(T const, T const, S const, S const)

Possible Implementation

  x.cbegin(), x.cend(), y.cbegin(), y.cend());

Template Parameters

T – the type of the objects to be compared.

  • x – const reference to the first object for comparison

  • y – const reference to the second object for comparison


A bool.