kblib  0.2.3
General utilities library for modern C++
kblib::FNV_hash< Container, HashInt, void_if_t<(is_contiguous_v< Container > and is_trivially_hashable_v< typename Container::value_type >)> > Struct Template Reference

Container hasher, for contiguously-stored trivial elements. More...

#include <kblib/hash.h>

Public Member Functions

auto hash_fast (const Container &key, HashInt offset) const noexcept -> HashInt
 
auto operator() (const Container &key, HashInt offset=fnv::fnv_offset< HashInt >::value) const noexcept -> HashInt
 

Detailed Description

template<typename Container, typename HashInt>
struct kblib::FNV_hash< Container, HashInt, void_if_t<(is_contiguous_v< Container > and is_trivially_hashable_v< typename Container::value_type >)> >

Container hasher, for contiguously-stored trivial elements.

Definition at line 499 of file hash.h.

Member Function Documentation

◆ hash_fast()

template<typename Container , typename HashInt >
auto kblib::FNV_hash< Container, HashInt, void_if_t<(is_contiguous_v< Container > and is_trivially_hashable_v< typename Container::value_type >)> >::hash_fast ( const Container &  key,
HashInt  offset 
) const -> HashInt
inlinenoexcept

Definition at line 505 of file hash.h.

◆ operator()()

template<typename Container , typename HashInt >
auto kblib::FNV_hash< Container, HashInt, void_if_t<(is_contiguous_v< Container > and is_trivially_hashable_v< typename Container::value_type >)> >::operator() ( const Container &  key,
HashInt  offset = fnv::fnv_offset<HashInt>::value 
) const -> HashInt
inlinenoexcept

Definition at line 511 of file hash.h.


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