libsemigroups  v3.0.0
C++ library for semigroups and monoids
Loading...
Searching...
No Matches
ShortLexCompare

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 also
shortlex_compare(T const, T const, S const, S const)

Public Member Functions

template<typename T>
bool operator() (T const &x, T const &y) const
 Call operator that compares x and y using shortlex_compare.
 

Member Function Documentation

◆ operator()()

template<typename T>
bool operator() ( T const & x,
T const & y ) const
inline

Call operator that compares x and y using shortlex_compare.

Template Parameters
Tthe type of the objects to be compared.
Parameters
xconst reference to the first object for comparison.
yconst reference to the second object for comparison.
Returns
The boolean value true if x is short-lex less than y, and false otherwise.
Exceptions
See shortlex_compare(T const, T const, S const, S const).
Complexity
See shortlex_compare(T const, T const, S const, S const).

The documentation for this struct was generated from the following file: