EqualTo¶
-
template<typename TValueType, typename TSfinae = void>
struct libsemigroups::EqualTo¶ Adapter for testing equality.
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.- tparam TValueType
the type of objects to compare.
- tparam 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
xandyusing std::equal_to with template parameterTValueType.- Parameters
x – const reference to
TValueTypeto compare withy.y – const reference to
TValueTypeto compare withx.
- Returns
A
bool.