kblib 0.2.3
General utilities library for modern C++
kblib::FNV_hash< Tuple, HashInt, void_if_t< detail_hash::all_hashable< Tuple >() and not is_trivially_hashable_v< Tuple > and(std::tuple_size< Tuple >::value > 0u) and not is_linear_container_v< Tuple > > > Struct Template Reference

Tuple-like (but not array-like) type hasher. More...

#include <kblib/hash.h>

Public Member Functions

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

Detailed Description

template<typename Tuple, typename HashInt>
struct kblib::FNV_hash< Tuple, HashInt, void_if_t< detail_hash::all_hashable< Tuple >() and not is_trivially_hashable_v< Tuple > and(std::tuple_size< Tuple >::value > 0u) and not is_linear_container_v< Tuple > > >

Tuple-like (but not array-like) type hasher.

Definition at line 695 of file hash.h.

Member Function Documentation

◆ operator()()

template<typename Tuple , typename HashInt >
constexpr auto kblib::FNV_hash< Tuple, HashInt, void_if_t< detail_hash::all_hashable< Tuple >() and not is_trivially_hashable_v< Tuple > and(std::tuple_size< Tuple >::value > 0u) and not is_linear_container_v< Tuple > > >::operator() ( const Tuple &  key,
HashInt  offset = fnv::fnv_offset<HashInt>::value 
) const -> HashInt
inlineconstexprnoexcept

Definition at line 700 of file hash.h.


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