35 template <
typename Enum>
43 static std::hash<std::size_t> hasher;
44 return hasher(static_cast<std::size_t>(e));
Enumerates the possible types a cell can be determined by it's current value.
Definition: cell.hpp:37
Allows a scoped enum (aka "enum class") to be used as a key in a std::unordered_map.
Definition: scoped_enum_hash.hpp:36
std::size_t operator()(Enum e) const
Cast the enumeration e to a std::size_t and hash that value using std::hash.
Definition: scoped_enum_hash.hpp:41