EqualTo¶
-
template<typename TValueType, typename = void>
struct libsemigroups::EqualTo¶ 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,inlineand/orconstexpralso) for use with, for example, std::unordered_map.The second template parameter exists for SFINAE in overload resolution.
- tparam TValueType
the type of objects to compare.
- Used by:
CongruenceByPairs
Public Functions
-
inline bool operator()(TValueType const &x, TValueType const &y) const¶
This call operator compares
xandyusing std::equal<TValueType>.- Parameters
x – const reference to TValueType to compare with
y.y – const reference to TValueType to compare with
x.
- Returns
A
bool.