Hash¶
-
template<typename
TValueType, typename = void>
structlibsemigroups::Hash¶ Defined in
adapters.hpp.This type should be a stateless trivially default constructible with a call operator of signature
size_t operator()(TValueType const&)for use with, for example, std::unordered_map.The second template parameter exists for SFINAE in overload resolution.
- Template Parameters
TValueType: the type of objects to compare.
- Used by:
CongruenceByPairs
Public Functions
-
size_t
operator()(TValueType const &x) const¶ This call operator hashes
xusing std::hash<TValueType>.- Return
A hash value for
x, a value of typesize_t.- Parameters
x: the value to hash