Less¶
-
template<typename TValueType, typename TSfinae = void>
struct libsemigroups::Less¶ Adapter for comparisons.
Defined in
adapters.hpp
.This type should be a stateless trivially default constructible with a call operator of signature
bool operator()(TValueType const&, TValueType const&)
(possiblynoexcept
,inline
and/orconstexpr
also) which defines a linear order on the objects of type TValueType- Used by:
- Template Parameters
TValueType – the type of objects to compare.
TSfinae – this template parameter can be used for SFINAE.
Public Functions
-
inline bool operator()(TValueType const &x, TValueType const &y) const¶
This call operator compares
x
andy
using std::less with template parameterTValueType
.