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

Hasher for any pointer type. More...

#include <kblib/hash.h>

Public Member Functions

auto operator() (T key_in, 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_pointer< T >::value > >

Hasher for any pointer type.

Note
Unfortunately, this specialization cannot be constexpr

Definition at line 466 of file hash.h.

Member Function Documentation

◆ operator()()

template<typename T , typename HashInt >
auto kblib::FNV_hash< T, HashInt, void_if_t< std::is_pointer< T >::value > >::operator() ( key_in,
HashInt  offset = fnv::fnv_offset<HashInt>::value 
) const -> HashInt
inlinenoexcept

Definition at line 467 of file hash.h.


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