KiCad PCB EDA Suite
Loading...
Searching...
No Matches
hash.h File Reference
#include <functional>

Go to the source code of this file.

Functions

static constexpr void hash_combine (std::size_t &seed)
 This is a dummy function to take the final case of hash_combine below.
 
template<typename T , typename... Types>
static constexpr void hash_combine (std::size_t &seed, const T &val, const Types &... args)
 Combine multiple hashes utilizing previous hash result.
 
template<typename... Types>
static constexpr std::size_t hash_val (const Types &... args)
 

Function Documentation

◆ hash_combine() [1/2]

◆ hash_combine() [2/2]

template<typename T , typename... Types>
static constexpr void hash_combine ( std::size_t &  seed,
const T &  val,
const Types &...  args 
)
inlinestaticconstexpr

Combine multiple hashes utilizing previous hash result.

Template Parameters
TA hashable type
Parameters
seedA seed value input and output for the result.
valA hashable object of type T

Definition at line 44 of file hash.h.

References hash_combine().

◆ hash_val()

template<typename... Types>
static constexpr std::size_t hash_val ( const Types &...  args)
inlinestaticconstexpr