|
chombo-discharge
|
Hash functor for using IntVect tiles as unordered_map keys. More...
#include <CD_LevelTiles.H>
Public Member Functions | |
| std::size_t | operator() (const IntVect &a_tile) const noexcept |
| Hash operator. | |
Hash functor for using IntVect tiles as unordered_map keys.
Hashes all SpaceDim components (FNV-1a). Hash collisions are harmless: std::unordered_map distinguishes entries by key equality (IntVect::operator==), not by hash, so a collision only affects performance and never returns a wrong value.
|
inlinenoexcept |
Hash operator.
| [in] | a_tile | Tile to hash. |