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

Defined in order.hpp.

A stateless struct with binary call operator using recursive_path_compare.

This only exists to be used as a template parameter, and has no advantages over using recursive_path_compare otherwise.

See also
recursive_path_compare(T const&, T, T const&, T).

Public Member Functions

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

Member Function Documentation

◆ operator()()

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

Call operator that compares x and y using recursive_path_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 less than y with respect to the recursive path ordering, and false otherwise.
Exceptions
This function is noexcept and is guaranteed never to throw.

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