cai_lw's competitive programming library
 
Loading...
Searching...
No Matches
cplib::WyHash< T > Struct Template Reference

Hash function class like std::hash but uses wyhash. More...

#include <wyhash.hpp>

Related Functions

(Note that these are not member functions.)

static uint64_t wyhash_bytes (const void *key, size_t len)
 Hash function for arbitrary bytes using wyhash.
 
static uint64_t wyhash_combine (uint64_t a, uint64_t b)
 Combine two hash values to produce a new hash value.
 

Detailed Description

template<typename T>
struct cplib::WyHash< T >

Hash function class like std::hash but uses wyhash.

Specializations for all integral types as well as std::string and std::pair are provided. For all other types, it must be specialized by the user. Specializations should be implemented in terms of wyhash_bytes, wyhash_combine, and other WyHash specializations.

See also
WyHash<std::string>, WyHash<std::pair<T1, T2>>

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