kblib 0.2.3
General utilities library for modern C++
kblib::FNV_hash< void, HashInt, void > Struct Template Reference

Transparent hasher for any hashable type. More...

#include <kblib/hash.h>

Public Member Functions

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

Public Attributes

KBLIB_CONSTANT_MV is_transparent = true
 

Detailed Description

template<typename HashInt>
struct kblib::FNV_hash< void, HashInt, void >

Transparent hasher for any hashable type.

Definition at line 751 of file hash.h.

Member Function Documentation

◆ operator()()

template<typename HashInt >
template<typename T >
constexpr auto kblib::FNV_hash< void, HashInt, void >::operator() ( const T &  key,
HashInt  offset = fnv::fnv_offset<HashInt>::value 
) const -> enable_if_t<is_hashable_v<T>, HashInt>
inlineconstexprnoexcept

Definition at line 755 of file hash.h.

Member Data Documentation

◆ is_transparent

template<typename HashInt >
KBLIB_CONSTANT_MV kblib::FNV_hash< void, HashInt, void >::is_transparent = true

Definition at line 752 of file hash.h.


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