SpECTRE  v2024.04.12
DirectionHash< Dim > Struct Template Reference

Provides a perfect hash if the size of the hash table is 2 * Dim. To take advantage of this, use the FixedHashMap class. More...

#include <Direction.hpp>

Public Member Functions

size_t operator() (const Direction< Dim > &t)
 

Static Public Attributes

template<size_t MaxSize>
static constexpr bool is_perfect = MaxSize == 2 * Dim
 

Detailed Description

template<size_t Dim>
struct DirectionHash< Dim >

Provides a perfect hash if the size of the hash table is 2 * Dim. To take advantage of this, use the FixedHashMap class.


The documentation for this struct was generated from the following file: