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

An empty type is treated as if it were a single null byte. More...

#include <kblib/hash.h>

Public Member Functions

constexpr auto operator() (const T &, 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_empty< T >::value > >

An empty type is treated as if it were a single null byte.

Definition at line 417 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_empty< T >::value > >::operator() ( const T &  ,
HashInt  offset = fnv::fnv_offset<HashInt>::value 
) const -> HashInt
inlineconstexprnoexcept

Definition at line 418 of file hash.h.


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