libsemigroups  v3.0.0
C++ library for semigroups and monoids
Loading...
Searching...
No Matches
Less< Value, typename >
template<typename Value, typename = void>
struct libsemigroups::Less< Value, typename >

Defined in adapters.hpp.

This type should be a stateless trivially default constructible with a call operator of signature bool operator()(Value const&, Value const&) (possibly noexcept, inline and/or constexpr also) which defines a linear order on the objects of type Value.

Template Parameters
Valuethe type of objects to compare.

The second template parameter exists for SFINAE.

Used by:

Public Member Functions

bool operator() (Value const &x, Value const &y) const
 Compare if x is less than y.
 

Member Function Documentation

◆ operator()()

template<typename Value, typename = void>
bool operator() ( Value const & x,
Value const & y ) const
inline

This call operator compares x and y using std::less with template parameter Value.

Parameters
xconst reference to Value to compare with y.
yconst reference to Value to compare with x.
Returns
A bool.

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