A class that represents a hash function for positions.
More...
#include <PositionHash.hpp>
|
| std::size_t | operator() (const std::array< std::size_t, 2 > &pos) const noexcept |
| | Hash function for a 2D position.
|
| |
|
| template<typename T > |
| static void | hash_combine (std::size_t &seed, const T &value) noexcept |
| | Hash combine function.
|
| |
A class that represents a hash function for positions.
◆ hash_combine()
template<typename T >
| void hash_combine |
( |
std::size_t & | seed, |
|
|
const T & | value ) |
|
staticprivatenoexcept |
Hash combine function.
- Parameters
-
| seed | The seed value |
| value | The value to hash |
◆ operator()()
| std::size_t operator() |
( |
const std::array< std::size_t, 2 > & | pos | ) |
const |
|
noexcept |
Hash function for a 2D position.
- Parameters
-
- Returns
- The hash value of the position
The documentation for this class was generated from the following files: