kblib 0.2.3
General utilities library for modern C++
kblib::FNV_hash< T, HashInt, void_if_t< std::is_integral< T >::value and is_trivially_hashable_v< T > > > Struct Template Reference

Hasher for any integral type without padding type not explicitly mentioned above. More...

#include <kblib/hash.h>

Public Member Functions

constexpr auto operator() (T key, HashInt offset=fnv::fnv_offset< HashInt >::value) const noexcept -> HashInt
 

Detailed Description

template<typename T, typename HashInt>
struct kblib::FNV_hash< T, HashInt, void_if_t< std::is_integral< T >::value and is_trivially_hashable_v< T > > >

Hasher for any integral type without padding type not explicitly mentioned above.

Definition at line 446 of file hash.h.

Member Function Documentation

◆ operator()()

template<typename T , typename HashInt >
constexpr auto kblib::FNV_hash< T, HashInt, void_if_t< std::is_integral< T >::value and is_trivially_hashable_v< T > > >::operator() ( key,
HashInt  offset = fnv::fnv_offset<HashInt>::value 
) const -> HashInt
inlineconstexprnoexcept

Definition at line 449 of file hash.h.


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