\hypertarget{hash_8h_source}{}\doxysection{hash.\+h}
\label{hash_8h_source}\index{kblib/hash.h@{kblib/hash.h}}
\mbox{\hyperlink{hash_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00001}00001 \textcolor{comment}{/* *****************************************************************************}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00002}00002 \textcolor{comment}{ * kblib is a general utility library for C++14 and C++17, intended to provide}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00003}00003 \textcolor{comment}{ * performant high-\/level abstractions and more expressive ways to do simple}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00004}00004 \textcolor{comment}{ * things.}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00005}00005 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00006}00006 \textcolor{comment}{ * Copyright (c) 2021 killerbee}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00007}00007 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00008}00008 \textcolor{comment}{ * This program is free software: you can redistribute it and/or modify}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00009}00009 \textcolor{comment}{ * it under the terms of the GNU General Public License as published by}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00010}00010 \textcolor{comment}{ * the Free Software Foundation, either version 3 of the License, or}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00011}00011 \textcolor{comment}{ * (at your option) any later version.}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00012}00012 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00013}00013 \textcolor{comment}{ * This program is distributed in the hope that it will be useful,}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00014}00014 \textcolor{comment}{ * but WITHOUT ANY WARRANTY; without even the implied warranty of}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00015}00015 \textcolor{comment}{ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00016}00016 \textcolor{comment}{ * GNU General Public License for more details.}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00017}00017 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00018}00018 \textcolor{comment}{ * You should have received a copy of the GNU General Public License}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00019}00019 \textcolor{comment}{ * along with this program. If not, see .}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00020}00020 \textcolor{comment}{ * ****************************************************************************/}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00021}00021 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00032}00032 \textcolor{preprocessor}{\#ifndef HASH\_H}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00033}00033 \textcolor{preprocessor}{\#define HASH\_H}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00034}00034 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00035}00035 \textcolor{preprocessor}{\#include "{}\mbox{\hyperlink{iterators_8h}{iterators.h}}"{}}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00036}00036 \textcolor{preprocessor}{\#include "{}\mbox{\hyperlink{tdecl_8h}{tdecl.h}}"{}}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00037}00037 \textcolor{preprocessor}{\#include "{}\mbox{\hyperlink{traits_8h}{traits.h}}"{}}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00038}00038 \textcolor{preprocessor}{\#include "{}\mbox{\hyperlink{variant_8h}{variant.h}}"{}}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00039}00039 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00040}00040 \textcolor{preprocessor}{\#include }}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00041}00041 \textcolor{preprocessor}{\#include }}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00042}00042 \textcolor{preprocessor}{\#include }}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00043}00043 \textcolor{preprocessor}{\#include }}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00044}00044 \textcolor{preprocessor}{\#include }}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00045}00045 \textcolor{preprocessor}{\#include }}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00046}00046 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00047}00047 \textcolor{preprocessor}{\#if KBLIB\_USE\_CXX17}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00048}00048 \textcolor{preprocessor}{\# include }}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00049}00049 \textcolor{preprocessor}{\# include }}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00050}00050 \textcolor{preprocessor}{\# include }}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00051}00051 \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00052}00052 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00053}00053 \textcolor{keyword}{namespace }\mbox{\hyperlink{tdecl_8h_a4b5c574c663a392148218cd4410fd7a1}{KBLIB\_NS}} \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00054}00054 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00055}00055 \textcolor{keyword}{template} <\textcolor{keyword}{typename} Integral, \textcolor{keyword}{typename} CharT>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00056}\mbox{\hyperlink{namespacekblib_ac450342ec31e16201b67e3331a23761d}{00056}} \textcolor{keyword}{constexpr} \textcolor{keyword}{auto} \mbox{\hyperlink{namespacekblib_ac450342ec31e16201b67e3331a23761d}{to\_bytes\_le}}(Integral ival,}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00057}00057 CharT (\&dest)[\textcolor{keyword}{sizeof}(Integral)]) \textcolor{keyword}{noexcept} -\/> \textcolor{keywordtype}{void} \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00058}00058 \textcolor{keyword}{static\_assert}(std::is\_integral::value and \textcolor{keyword}{sizeof}(CharT) == 1}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00059}00059 and not std::is\_same::value,}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00060}00060 \textcolor{stringliteral}{"{}CharT must be a char-\/like type."{}});}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00061}00061 \textcolor{keywordflow}{for} (\textcolor{keywordtype}{int} \textcolor{keywordtype}{byte} = 0; \textcolor{keywordtype}{byte} != \textcolor{keyword}{sizeof}(Integral); ++byte) \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00062}00062 dest[byte] = \textcolor{keyword}{static\_cast<}CharT\textcolor{keyword}{>}(\mbox{\hyperlink{namespacekblib_af9e250fffa2922e623baa08aa8994f54}{to\_unsigned}}(ival)}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00063}00063 >> \mbox{\hyperlink{namespacekblib_af9e250fffa2922e623baa08aa8994f54}{to\_unsigned}}(CHAR\_BIT * \textcolor{keywordtype}{byte}));}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00064}00064 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00065}00065 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00066}00066 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00067}00067 \textcolor{keyword}{template} <\textcolor{keyword}{typename} Integral, \textcolor{keyword}{typename} CharT>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00068}\mbox{\hyperlink{namespacekblib_abc19a82cefecfafd20114ebb93b218ec}{00068}} \textcolor{keyword}{constexpr} \textcolor{keyword}{auto} \mbox{\hyperlink{namespacekblib_abc19a82cefecfafd20114ebb93b218ec}{to\_bytes\_be}}(Integral ival,}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00069}00069 CharT (\&dest)[\textcolor{keyword}{sizeof}(Integral)]) \textcolor{keyword}{noexcept} -\/> \textcolor{keywordtype}{void} \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00070}00070 \textcolor{keyword}{static\_assert}(std::is\_integral::value and \textcolor{keyword}{sizeof}(CharT) == 1}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00071}00071 and not std::is\_same::value,}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00072}00072 \textcolor{stringliteral}{"{}CharT must be a char-\/like type."{}});}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00073}00073 \textcolor{keywordflow}{for} (\textcolor{keyword}{auto} \textcolor{keywordtype}{byte} : \mbox{\hyperlink{namespacekblib_a72690688922a2d4ae9a3e46ff0c1a9a9}{range}}(\textcolor{keyword}{sizeof}(Integral))) \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00074}00074 dest[(\textcolor{keyword}{sizeof}(Integral) -\/ 1) -\/ byte]}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00075}00075 = \textcolor{keyword}{static\_cast<}CharT\textcolor{keyword}{>}(ival >> (CHAR\_BIT * byte));}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00076}00076 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00077}00077 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00078}00078 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00079}00079 \textcolor{keyword}{template} <\textcolor{keyword}{typename} Integral, \textcolor{keyword}{typename} CharT>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00080}\mbox{\hyperlink{namespacekblib_a5ab8aca1c780d41f099cead14d4227c3}{00080}} \textcolor{keyword}{constexpr} \textcolor{keyword}{auto} \mbox{\hyperlink{namespacekblib_a5ab8aca1c780d41f099cead14d4227c3}{to\_bytes}}(Integral val, CharT (\&dest)[\textcolor{keyword}{sizeof}(Integral)]) \textcolor{keyword}{noexcept}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00081}00081 -\/> \textcolor{keywordtype}{void} \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00082}00082 \textcolor{keyword}{static\_assert}(std::is\_integral::value and \textcolor{keyword}{sizeof}(CharT) == 1}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00083}00083 and not std::is\_same::value,}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00084}00084 \textcolor{stringliteral}{"{}CharT must be a char-\/like type."{}});}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00085}00085 \textcolor{keywordflow}{if} (\mbox{\hyperlink{namespacekblib_adfb43b754fe059940c0e827f48f97e41}{hash\_order}} == endian::little) \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00086}00086 \mbox{\hyperlink{namespacekblib_ac450342ec31e16201b67e3331a23761d}{to\_bytes\_le}}(val, dest);}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00087}00087 \} \textcolor{keywordflow}{else} \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00088}00088 \mbox{\hyperlink{namespacekblib_abc19a82cefecfafd20114ebb93b218ec}{to\_bytes\_be}}(val, dest);}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00089}00089 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00090}00090 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00091}00091 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00092}\mbox{\hyperlink{namespacekblib_1_1fnv}{00092}} \textcolor{keyword}{namespace }fnv \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00093}00093 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00097}00097 \textcolor{keyword}{template} <\textcolor{keyword}{typename} UInt>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00098}00098 \textcolor{keyword}{struct }\mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__prime}{fnv\_prime}};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00099}00099 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00100}00100 \textcolor{keyword}{template} <>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00101}\mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__prime_3_01std_1_1uint32__t_01_4}{00101}} \textcolor{keyword}{struct }\mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__prime}{fnv\_prime}}<\mbox{\hyperlink{namespacestd}{std}}::uint32\_t>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00102}00102 : std::integral\_constant \{\};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00103}00103 \textcolor{keyword}{template} <>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00104}\mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__prime_3_01std_1_1uint64__t_01_4}{00104}} \textcolor{keyword}{struct }\mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__prime}{fnv\_prime}}<\mbox{\hyperlink{namespacestd}{std}}::uint64\_t>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00105}00105 : std::integral\_constant \{\};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00106}00106 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00107}00107 \textcolor{keyword}{template} <\textcolor{keyword}{typename} UInt>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00108}\mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__prime}{00108}} \textcolor{keyword}{struct }\mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__prime}{fnv\_prime}} \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00109}\mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__prime_a6b41408905bce9f891a99241c1ae88d1}{00109}} \mbox{\hyperlink{tdecl_8h_ab79256916a9652cd2d1771ae9a38799f}{KBLIB\_CONSTANT\_M}} UInt value = (\textcolor{keyword}{sizeof}(UInt) == \textcolor{keyword}{sizeof}(std::uint64\_t)}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00110}00110 ? \mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__prime}{fnv\_prime::value}}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00111}00111 : \mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__prime}{fnv\_prime::value}});}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00112}00112 \};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00113}00113 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00117}00117 \textcolor{keyword}{template} <\textcolor{keyword}{typename} UInt>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00118}00118 \textcolor{keyword}{struct }\mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__offset}{fnv\_offset}};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00119}00119 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00120}00120 \textcolor{keyword}{template} <>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00121}\mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__offset_3_01std_1_1uint32__t_01_4}{00121}} \textcolor{keyword}{struct }\mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__offset}{fnv\_offset}}<\mbox{\hyperlink{namespacestd}{std}}::uint32\_t>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00122}00122 : std::integral\_constant \{\};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00123}00123 \textcolor{keyword}{template} <>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00124}\mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__offset_3_01std_1_1uint64__t_01_4}{00124}} \textcolor{keyword}{struct }\mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__offset}{fnv\_offset}}<\mbox{\hyperlink{namespacestd}{std}}::uint64\_t>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00125}00125 : std::integral\_constant \{\};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00126}00126 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00127}00127 \textcolor{keyword}{template} <\textcolor{keyword}{typename} UInt>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00128}\mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__offset}{00128}} \textcolor{keyword}{struct }\mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__offset}{fnv\_offset}} \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00129}\mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__offset_ab74254c3199753dcaf44a9c3d2a58fda}{00129}} \mbox{\hyperlink{tdecl_8h_ab79256916a9652cd2d1771ae9a38799f}{KBLIB\_CONSTANT\_M}} UInt value = (\textcolor{keyword}{sizeof}(UInt) == \textcolor{keyword}{sizeof}(std::uint64\_t)}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00130}00130 ? \mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__offset}{fnv\_offset::value}}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00131}00131 : \mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__offset}{fnv\_offset::value}});}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00132}00132 \};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00133}00133 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00134}00134 \} \textcolor{comment}{// namespace fnv}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00135}00135 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00146}00146 \textcolor{keyword}{template} <\textcolor{keyword}{typename} HashInt, \textcolor{keyword}{typename} Span>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00147}\mbox{\hyperlink{namespacekblib_a74d22c0d4828fcf909655abd919bf003}{00147}} \mbox{\hyperlink{tdecl_8h_a7f62d0731631a0e7675f45924b7f5ea0}{KBLIB\_NODISCARD}} \textcolor{keyword}{constexpr} \textcolor{keyword}{auto} \mbox{\hyperlink{namespacekblib_a74d22c0d4828fcf909655abd919bf003}{FNVa}}(Span\&\& s,}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00148}00148 HashInt hval}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00149}00149 = \mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__offset}{fnv::fnv\_offset::value}}) \textcolor{keyword}{noexcept}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00150}00150 -\/> HashInt \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00151}00151 \textcolor{keyword}{static\_assert}(\textcolor{keyword}{sizeof}(*std::begin(s)) == 1,}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00152}00152 \textcolor{stringliteral}{"{}Can only hash char-\/like objects."{}});}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00153}00153 \textcolor{keyword}{const} HashInt prime = \mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__prime}{fnv::fnv\_prime::value}};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00154}00154 \textcolor{keywordflow}{for} (\textcolor{keyword}{auto}\&\& c : s) \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00155}00155 hval \string^= \textcolor{keyword}{static\_cast<}HashInt\textcolor{keyword}{>}(\textcolor{keyword}{static\_cast<}\textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{char}\textcolor{keyword}{>}(c));}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00156}00156 hval *= prime;}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00157}00157 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00158}00158 \textcolor{keywordflow}{return} hval;}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00159}00159 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00160}00160 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00172}00172 \textcolor{keyword}{template} <\textcolor{keyword}{typename} HashInt, \textcolor{keyword}{typename} CharT, std::\textcolor{keywordtype}{size\_t} N>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00173}\mbox{\hyperlink{namespacekblib_ac550cfcd270e104a007c7b7a8fcad098}{00173}} \mbox{\hyperlink{tdecl_8h_a7f62d0731631a0e7675f45924b7f5ea0}{KBLIB\_NODISCARD}} \textcolor{keyword}{constexpr} \textcolor{keyword}{auto} \mbox{\hyperlink{namespacekblib_ac550cfcd270e104a007c7b7a8fcad098}{FNVa\_a}}(}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00174}00174 \textcolor{keyword}{const} CharT (\&s)[N],}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00175}00175 HashInt hval = \mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__offset}{fnv::fnv\_offset::value}}) \textcolor{keyword}{noexcept} -\/> HashInt \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00176}00176 \textcolor{keyword}{static\_assert}(\textcolor{keyword}{sizeof}(s[0]) == 1, \textcolor{stringliteral}{"{}Can only hash char-\/like objects."{}});}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00177}00177 \textcolor{keyword}{const} HashInt prime = \mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__prime}{fnv::fnv\_prime::value}};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00178}00178 \textcolor{keywordflow}{for} (\textcolor{keyword}{auto}\&\& c : s) \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00179}00179 hval \string^= \textcolor{keyword}{static\_cast<}HashInt\textcolor{keyword}{>}(\textcolor{keyword}{static\_cast<}\textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{char}\textcolor{keyword}{>}(c));}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00180}00180 hval *= prime;}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00181}00181 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00182}00182 \textcolor{keywordflow}{return} hval;}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00183}00183 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00184}00184 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00185}00185 \textcolor{preprocessor}{\#if KBLIB\_USE\_CXX17}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00194}\mbox{\hyperlink{namespacekblib_a8d67d64eac176d35844a629ff0aeacdf}{00194}} \mbox{\hyperlink{tdecl_8h_a7f62d0731631a0e7675f45924b7f5ea0}{KBLIB\_NODISCARD}} \textcolor{keyword}{constexpr} \textcolor{keyword}{auto} \mbox{\hyperlink{namespacekblib_a8d67d64eac176d35844a629ff0aeacdf}{FNV32a}}(}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00195}00195 std::string\_view s,}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00196}00196 std::uint32\_t hval = \mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__offset}{fnv::fnv\_offset::value}}) \textcolor{keyword}{noexcept}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00197}00197 -\/> std::uint32\_t \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00198}00198 \textcolor{keyword}{const} std::uint32\_t prime = \mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__prime}{fnv::fnv\_prime::value}};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00199}00199 \textcolor{keywordflow}{for} (\textcolor{keyword}{auto}\&\& c : s) \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00200}00200 hval \string^= \textcolor{keyword}{static\_cast<}std::uint32\_t\textcolor{keyword}{>}(\textcolor{keyword}{static\_cast<}\textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{char}\textcolor{keyword}{>}(c));}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00201}00201 hval *= prime;}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00202}00202 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00203}00203 \textcolor{keywordflow}{return} hval;}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00204}00204 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00205}00205 \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00206}00206 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00207}00207 \textcolor{keyword}{template} <\textcolor{keyword}{typename} HashInt>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00208}\mbox{\hyperlink{namespacekblib_ab67d69cffbdb7f096d195c345df0752b}{00208}} \mbox{\hyperlink{tdecl_8h_a7f62d0731631a0e7675f45924b7f5ea0}{KBLIB\_NODISCARD}} \textcolor{keyword}{constexpr} \textcolor{keyword}{auto} \mbox{\hyperlink{namespacekblib_ab67d69cffbdb7f096d195c345df0752b}{FNVa\_s}}(}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00209}00209 \textcolor{keyword}{const} \textcolor{keywordtype}{char}* begin, std::size\_t \mbox{\hyperlink{namespacekblib_a793fd30664717fe1da593bf53e895e9d}{length}},}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00210}00210 HashInt hval = \mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__offset}{fnv::fnv\_offset::value}}) \textcolor{keyword}{noexcept} -\/> HashInt \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00211}00211 \textcolor{keyword}{const} HashInt prime = \mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__prime}{fnv::fnv\_prime::value}};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00212}00212 \textcolor{comment}{// for (const char* pos = begin; pos != begin + length; ++pos) \{}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00213}00213 \textcolor{comment}{// hval \string^= static\_cast(static\_cast(*pos));}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00214}00214 \textcolor{comment}{// hval *= prime;}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00215}00215 \textcolor{comment}{// \}}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00216}00216 \textcolor{keywordflow}{for} (\textcolor{keyword}{const} \textcolor{keywordtype}{char}* pos : \mbox{\hyperlink{namespacekblib_a72690688922a2d4ae9a3e46ff0c1a9a9}{range}}(begin, begin + \mbox{\hyperlink{namespacekblib_a793fd30664717fe1da593bf53e895e9d}{length}})) \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00217}00217 hval \string^= \textcolor{keyword}{static\_cast<}HashInt\textcolor{keyword}{>}(\textcolor{keyword}{static\_cast<}\textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{char}\textcolor{keyword}{>}(*pos));}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00218}00218 hval *= prime;}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00219}00219 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00220}00220 \textcolor{keywordflow}{return} hval;}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00221}00221 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00222}00222 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00232}00232 \textcolor{keyword}{template} }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00233}\mbox{\hyperlink{namespacekblib_a79a2361911fe2007b9867f8514fbcdea}{00233}} \mbox{\hyperlink{tdecl_8h_a7f62d0731631a0e7675f45924b7f5ea0}{KBLIB\_NODISCARD}} \textcolor{keyword}{constexpr} \textcolor{keyword}{auto} \mbox{\hyperlink{namespacekblib_a79a2361911fe2007b9867f8514fbcdea}{FNV32a\_a}}(}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00234}00234 \textcolor{keyword}{const} \textcolor{keywordtype}{char} (\&s)[N],}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00235}00235 std::uint32\_t hval = \mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__offset}{fnv::fnv\_offset::value}}) \textcolor{keyword}{noexcept}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00236}00236 -\/> std::uint32\_t \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00237}00237 \textcolor{keyword}{const} std::uint32\_t prime = \mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__prime}{fnv::fnv\_prime::value}};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00238}00238 \textcolor{keywordflow}{for} (\textcolor{keyword}{auto}\&\& c : s) \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00239}00239 hval \string^= \textcolor{keyword}{static\_cast<}std::uint32\_t\textcolor{keyword}{>}(\textcolor{keyword}{static\_cast<}\textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{char}\textcolor{keyword}{>}(c));}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00240}00240 hval *= prime;}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00241}00241 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00242}00242 \textcolor{keywordflow}{return} hval;}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00243}00243 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00244}00244 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00245}\mbox{\hyperlink{namespacekblib_a6a4c0dd6b1f34b0b9ff7e71230e68750}{00245}} \mbox{\hyperlink{tdecl_8h_a7f62d0731631a0e7675f45924b7f5ea0}{KBLIB\_NODISCARD}} \textcolor{keyword}{constexpr} \textcolor{keyword}{auto} \mbox{\hyperlink{namespacekblib_a6a4c0dd6b1f34b0b9ff7e71230e68750}{FNV32a\_s}}(}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00246}00246 \textcolor{keyword}{const} \textcolor{keywordtype}{char}* begin, std::size\_t \mbox{\hyperlink{namespacekblib_a793fd30664717fe1da593bf53e895e9d}{length}},}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00247}00247 uint32\_t hval = \mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__offset}{fnv::fnv\_offset::value}}) \textcolor{keyword}{noexcept}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00248}00248 -\/> std::uint32\_t \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00249}00249 \textcolor{keyword}{const} std::uint32\_t prime = \mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__prime}{fnv::fnv\_prime::value}};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00250}00250 \textcolor{keywordflow}{for} (\textcolor{keyword}{const} \textcolor{keywordtype}{char}* pos = begin; pos != begin + \mbox{\hyperlink{namespacekblib_a793fd30664717fe1da593bf53e895e9d}{length}}; ++pos) \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00251}00251 hval \string^= \textcolor{keyword}{static\_cast<}std::uint32\_t\textcolor{keyword}{>}(\textcolor{keyword}{static\_cast<}\textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{char}\textcolor{keyword}{>}(*pos));}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00252}00252 hval *= prime;}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00253}00253 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00254}00254 \textcolor{keywordflow}{return} hval;}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00255}00255 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00256}00256 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00257}00257 \textcolor{keyword}{inline} \textcolor{keyword}{namespace }literals \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00261}\mbox{\hyperlink{namespacekblib_1_1literals_a626ed71532f5d103c9828ea9370a5842}{00261}} \mbox{\hyperlink{tdecl_8h_a7f62d0731631a0e7675f45924b7f5ea0}{KBLIB\_NODISCARD}} \textcolor{keyword}{constexpr} \textcolor{keyword}{auto} \textcolor{keyword}{operator}\textcolor{stringliteral}{"{}"{}}\_fnv32(\textcolor{keyword}{const} \textcolor{keywordtype}{char}* str,}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00262}00262 std::size\_t \mbox{\hyperlink{namespacekblib_a793fd30664717fe1da593bf53e895e9d}{length}}) \textcolor{keyword}{noexcept}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00263}00263 -\/> std::uint32\_t \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00264}00264 \textcolor{keywordflow}{return} FNVa\_s(str, \mbox{\hyperlink{namespacekblib_a793fd30664717fe1da593bf53e895e9d}{length}});}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00265}00265 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00266}00266 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00270}\mbox{\hyperlink{namespacekblib_1_1literals_a36cd43f6611c58129a26aba0ac78e434}{00270}} \mbox{\hyperlink{tdecl_8h_a7f62d0731631a0e7675f45924b7f5ea0}{KBLIB\_NODISCARD}} \textcolor{keyword}{constexpr} \textcolor{keyword}{auto} \textcolor{keyword}{operator}\textcolor{stringliteral}{"{}"{}}\_fnv64(\textcolor{keyword}{const} \textcolor{keywordtype}{char}* str,}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00271}00271 std::size\_t \mbox{\hyperlink{namespacekblib_a793fd30664717fe1da593bf53e895e9d}{length}}) \textcolor{keyword}{noexcept}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00272}00272 -\/> std::uint64\_t \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00273}00273 \textcolor{keywordflow}{return} FNVa\_s(str, \mbox{\hyperlink{namespacekblib_a793fd30664717fe1da593bf53e895e9d}{length}});}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00274}00274 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00275}00275 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00276}00276 \textcolor{comment}{// google-\/runtime-\/int not relevant here due to standard requirements}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00277}\mbox{\hyperlink{namespacekblib_1_1literals_a598ef69dec16cf39b62eb2967789eafc}{00277}} \mbox{\hyperlink{tdecl_8h_a7f62d0731631a0e7675f45924b7f5ea0}{KBLIB\_NODISCARD}} \textcolor{keyword}{constexpr} \textcolor{keyword}{auto} \textcolor{keyword}{operator}\textcolor{stringliteral}{"{}"{}}\_fnv32(\textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{long} \textcolor{keywordtype}{long} val)}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00278}00278 -\/> std::uint32\_t \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00279}00279 \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{char} bytes[\textcolor{keyword}{sizeof}(\textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{long} long)]\{\};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00280}00280 \mbox{\hyperlink{namespacekblib_a5ab8aca1c780d41f099cead14d4227c3}{to\_bytes}}(val, bytes);}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00281}00281 \textcolor{keywordflow}{return} FNVa\_a(bytes);}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00282}00282 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00283}00283 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00284}\mbox{\hyperlink{namespacekblib_1_1literals_abb287d29a45213778942fec4b9aecc86}{00284}} \mbox{\hyperlink{tdecl_8h_a7f62d0731631a0e7675f45924b7f5ea0}{KBLIB\_NODISCARD}} \textcolor{keyword}{constexpr} \textcolor{keyword}{auto} \textcolor{keyword}{operator}\textcolor{stringliteral}{"{}"{}}\_fnv64(\textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{long} \textcolor{keywordtype}{long} val)}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00285}00285 -\/> std::uint64\_t \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00286}00286 \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{char} bytes[\textcolor{keyword}{sizeof}(\textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{long} long)]\{\};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00287}00287 \mbox{\hyperlink{namespacekblib_a5ab8aca1c780d41f099cead14d4227c3}{to\_bytes}}(val, bytes);}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00288}00288 \textcolor{keywordflow}{return} FNVa\_a(bytes);}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00289}00289 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00290}00290 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00291}00291 \} \textcolor{comment}{// namespace literals}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00292}00292 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00293}00293 \textcolor{preprocessor}{\#if KBLIB\_USE\_CXX17}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00299}00299 \textcolor{keyword}{template} <\textcolor{keyword}{typename} T>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00300}\mbox{\hyperlink{namespacekblib_a87295f2bf3c1f64ed3b04f4664fa2a78}{00300}} \textcolor{keyword}{constexpr} \textcolor{keywordtype}{int} \mbox{\hyperlink{namespacekblib_a87295f2bf3c1f64ed3b04f4664fa2a78}{padding\_bits\_v}}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00301}00301 = CHAR\_BIT * \textcolor{keyword}{sizeof}(T) -\/ std::numeric\_limits::digits}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00302}00302 -\/ std::numeric\_limits::is\_signed;}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00303}00303 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00304}00304 \textcolor{keyword}{template} <>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00305}\mbox{\hyperlink{namespacekblib_a8265ea9f77ece8f281a9d44f9df2b295}{00305}} \textcolor{keyword}{inline} \textcolor{keyword}{constexpr} \textcolor{keywordtype}{int} \mbox{\hyperlink{namespacekblib_a8265ea9f77ece8f281a9d44f9df2b295}{padding\_bits\_v}} = 0;}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00306}00306 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00307}00307 \textcolor{keyword}{template} <\textcolor{keyword}{typename} T>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00308}\mbox{\hyperlink{structkblib_1_1padding__bits}{00308}} \textcolor{keyword}{struct }\mbox{\hyperlink{structkblib_1_1padding__bits}{padding\_bits}} : std::integral\_constant> \{\};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00309}00309 \textcolor{preprocessor}{\#else}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00310}00310 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00315}00315 \textcolor{keyword}{template} <\textcolor{keyword}{typename} T>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00316}00316 \textcolor{keyword}{struct }\mbox{\hyperlink{structkblib_1_1padding__bits}{padding\_bits}}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00317}00317 : std::integral\_constant::digits}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00319}00319 -\/ std::numeric\_limits::is\_signed> \{\};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00320}00320 \textcolor{keyword}{template} <>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00321}00321 \textcolor{keyword}{struct }padding\_bits : std::integral\_constant \{\};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00322}00322 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00323}00323 \textcolor{keyword}{template} <\textcolor{keyword}{typename} T>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00324}00324 \textcolor{keyword}{constexpr} \textcolor{keywordtype}{int} \mbox{\hyperlink{namespacekblib_a87295f2bf3c1f64ed3b04f4664fa2a78}{padding\_bits\_v}} = padding\_bits::value;}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00325}00325 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00326}00326 \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00327}00327 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00333}00333 \textcolor{keyword}{template} <\textcolor{keyword}{typename} Key = \textcolor{keywordtype}{void}, \textcolor{keyword}{typename} HashInt = std::\textcolor{keywordtype}{size\_t}, \textcolor{keyword}{typename} = \textcolor{keywordtype}{void}>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00334}\mbox{\hyperlink{structkblib_1_1_f_n_v__hash}{00334}} \textcolor{keyword}{struct }\mbox{\hyperlink{structkblib_1_1_f_n_v__hash}{FNV\_hash}} \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00335}\mbox{\hyperlink{structkblib_1_1_f_n_v__hash_a1d2b36f643830aa413fc27f710263fca}{00335}} \mbox{\hyperlink{structkblib_1_1_f_n_v__hash_a1d2b36f643830aa413fc27f710263fca}{FNV\_hash}}() = \textcolor{keyword}{delete};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00336}\mbox{\hyperlink{structkblib_1_1_f_n_v__hash_aa6d5062930e32ad4d5b6ff6842dd8866}{00336}} \mbox{\hyperlink{structkblib_1_1_f_n_v__hash_aa6d5062930e32ad4d5b6ff6842dd8866}{FNV\_hash}}(\textcolor{keyword}{const} \mbox{\hyperlink{structkblib_1_1_f_n_v__hash}{FNV\_hash}}\&) = \textcolor{keyword}{delete};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00337}\mbox{\hyperlink{structkblib_1_1_f_n_v__hash_a15b9df01b46916eddf99686443214a59}{00337}} \mbox{\hyperlink{structkblib_1_1_f_n_v__hash_a15b9df01b46916eddf99686443214a59}{FNV\_hash}}(\mbox{\hyperlink{structkblib_1_1_f_n_v__hash}{FNV\_hash}}\&\&) = \textcolor{keyword}{delete};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00338}\mbox{\hyperlink{structkblib_1_1_f_n_v__hash_aba36e9f48e10ca6f57de8462c37b1e68}{00338}} \mbox{\hyperlink{structkblib_1_1_f_n_v__hash}{FNV\_hash}}\& \mbox{\hyperlink{structkblib_1_1_f_n_v__hash_aba36e9f48e10ca6f57de8462c37b1e68}{operator=}}(\textcolor{keyword}{const} \mbox{\hyperlink{structkblib_1_1_f_n_v__hash}{FNV\_hash}}\&) = \textcolor{keyword}{delete};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00339}\mbox{\hyperlink{structkblib_1_1_f_n_v__hash_aba9ad0c434b5ffc85e7fe5e42e386cff}{00339}} \mbox{\hyperlink{structkblib_1_1_f_n_v__hash}{FNV\_hash}}\& \mbox{\hyperlink{structkblib_1_1_f_n_v__hash_aba9ad0c434b5ffc85e7fe5e42e386cff}{operator=}}(\mbox{\hyperlink{structkblib_1_1_f_n_v__hash}{FNV\_hash}}\&\&) = \textcolor{keyword}{delete};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00340}00340 \};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00341}00341 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00342}00342 \textcolor{keyword}{template} <\textcolor{keyword}{typename} Key, \textcolor{keyword}{typename} = \textcolor{keywordtype}{void}>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00343}\mbox{\hyperlink{structkblib_1_1is__hashable}{00343}} \textcolor{keyword}{struct }\mbox{\hyperlink{structkblib_1_1is__hashable}{is\_hashable}} : std::false\_type \{\};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00344}00344 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00345}00345 \textcolor{keyword}{template} <\textcolor{keyword}{typename} Key>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00346}\mbox{\hyperlink{structkblib_1_1is__hashable_3_01_key_00_01void__if__t_3_01std_1_1is__constructible_3_01_f_n_v__h0fe8e28e8deeee6e1cd8888a8a885a34}{00346}} \textcolor{keyword}{struct }\mbox{\hyperlink{structkblib_1_1is__hashable}{is\_hashable}}>::value>>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00347}00347 : std::true\_type \{\};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00348}00348 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00349}00349 \textcolor{keyword}{template} <\textcolor{keyword}{typename} Key>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00350}\mbox{\hyperlink{namespacekblib_a088e976f0cd633372839a9f4404f3c15}{00350}} \mbox{\hyperlink{tdecl_8h_a9b2376bf15765fad0ad95e4aecf36e87}{KBLIB\_CONSTANT\_V}} \mbox{\hyperlink{namespacekblib_a088e976f0cd633372839a9f4404f3c15}{is\_hashable\_v}} = \mbox{\hyperlink{structkblib_1_1is__hashable}{is\_hashable::value}};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00351}00351 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00352}00352 \textcolor{keyword}{template} <\textcolor{keyword}{typename} Key>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00353}\mbox{\hyperlink{namespacekblib_a681dc40a3f4186fdbc876b705fd65f99}{00353}} \textcolor{keyword}{using }\mbox{\hyperlink{structkblib_1_1_f_n_v__hash}{FNV32\_hash}} = \mbox{\hyperlink{structkblib_1_1_f_n_v__hash}{FNV\_hash}};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00354}00354 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00359}00359 \textcolor{keyword}{template} <\textcolor{keyword}{typename} HashInt>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00360}\mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01bool_00_01_hash_int_00_01void_01_4}{00360}} \textcolor{keyword}{struct }\mbox{\hyperlink{structkblib_1_1_f_n_v__hash}{FNV\_hash}} \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00361}\mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01bool_00_01_hash_int_00_01void_01_4_add4b4b747002d82e6b9df2ae586d1542}{00361}} \mbox{\hyperlink{tdecl_8h_a7f62d0731631a0e7675f45924b7f5ea0}{KBLIB\_NODISCARD}} \textcolor{keyword}{constexpr} \textcolor{keyword}{auto} \mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01bool_00_01_hash_int_00_01void_01_4_add4b4b747002d82e6b9df2ae586d1542}{operator()}}(}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00362}00362 \textcolor{keywordtype}{bool} key, HashInt offset}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00363}00363 = \mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__offset}{fnv::fnv\_offset::value}}) \textcolor{keyword}{const} \textcolor{keyword}{noexcept} -\/> HashInt \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00364}00364 \textcolor{keywordtype}{char} tmp[1] = \{key\};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00365}00365 \textcolor{keywordflow}{return} \mbox{\hyperlink{namespacekblib_ac550cfcd270e104a007c7b7a8fcad098}{FNVa\_a}}(tmp, offset);}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00366}00366 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00367}00367 \};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00368}00368 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00373}00373 \textcolor{keyword}{template} <\textcolor{keyword}{typename} HashInt>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00374}\mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01char_00_01_hash_int_00_01void_01_4}{00374}} \textcolor{keyword}{struct }\mbox{\hyperlink{structkblib_1_1_f_n_v__hash}{FNV\_hash}} \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00375}\mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01char_00_01_hash_int_00_01void_01_4_ae52ec05f647316ecc400319515dde513}{00375}} \mbox{\hyperlink{tdecl_8h_a7f62d0731631a0e7675f45924b7f5ea0}{KBLIB\_NODISCARD}} \textcolor{keyword}{constexpr} \textcolor{keyword}{auto} \mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01char_00_01_hash_int_00_01void_01_4_ae52ec05f647316ecc400319515dde513}{operator()}}(}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00376}00376 \textcolor{keywordtype}{char} key, HashInt offset}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00377}00377 = \mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__offset}{fnv::fnv\_offset::value}}) \textcolor{keyword}{const} \textcolor{keyword}{noexcept} -\/> HashInt \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00378}00378 \textcolor{keywordtype}{char} tmp[1] = \{key\};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00379}00379 \textcolor{keywordflow}{return} \mbox{\hyperlink{namespacekblib_ac550cfcd270e104a007c7b7a8fcad098}{FNVa\_a}}(tmp, offset);}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00380}00380 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00381}00381 \};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00382}00382 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00387}00387 \textcolor{keyword}{template} <\textcolor{keyword}{typename} HashInt>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00388}\mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01signed_01char_00_01_hash_int_00_01void_01_4}{00388}} \textcolor{keyword}{struct }\mbox{\hyperlink{structkblib_1_1_f_n_v__hash}{FNV\_hash}} \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00389}\mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01signed_01char_00_01_hash_int_00_01void_01_4_ace813ff4d78330c937ed845977f479dd}{00389}} \mbox{\hyperlink{tdecl_8h_a7f62d0731631a0e7675f45924b7f5ea0}{KBLIB\_NODISCARD}} \textcolor{keyword}{constexpr} \textcolor{keyword}{auto} \mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01signed_01char_00_01_hash_int_00_01void_01_4_ace813ff4d78330c937ed845977f479dd}{operator()}}(}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00390}00390 \textcolor{keywordtype}{signed} \textcolor{keywordtype}{char} key,}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00391}00391 HashInt offset = \mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__offset}{fnv::fnv\_offset::value}}) \textcolor{keyword}{const} \textcolor{keyword}{noexcept}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00392}00392 -\/> HashInt \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00393}00393 \textcolor{keywordtype}{signed} \textcolor{keywordtype}{char} tmp[1] = \{key\};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00394}00394 \textcolor{keywordflow}{return} \mbox{\hyperlink{namespacekblib_ac550cfcd270e104a007c7b7a8fcad098}{FNVa\_a}}(tmp, offset);}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00395}00395 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00396}00396 \};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00397}00397 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00402}00402 \textcolor{keyword}{template} <\textcolor{keyword}{typename} HashInt>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00403}\mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01unsigned_01char_00_01_hash_int_00_01void_01_4}{00403}} \textcolor{keyword}{struct }\mbox{\hyperlink{structkblib_1_1_f_n_v__hash}{FNV\_hash}} \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00404}\mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01unsigned_01char_00_01_hash_int_00_01void_01_4_a7fedcf1e78d9c4a252d02baf94c3cd9a}{00404}} \mbox{\hyperlink{tdecl_8h_a7f62d0731631a0e7675f45924b7f5ea0}{KBLIB\_NODISCARD}} \textcolor{keyword}{constexpr} \textcolor{keyword}{auto} \mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01unsigned_01char_00_01_hash_int_00_01void_01_4_a7fedcf1e78d9c4a252d02baf94c3cd9a}{operator()}}(}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00405}00405 \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{char} key,}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00406}00406 HashInt offset = \mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__offset}{fnv::fnv\_offset::value}}) \textcolor{keyword}{const} \textcolor{keyword}{noexcept}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00407}00407 -\/> HashInt \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00408}00408 \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{char} tmp[1] = \{key\};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00409}00409 \textcolor{keywordflow}{return} \mbox{\hyperlink{namespacekblib_ac550cfcd270e104a007c7b7a8fcad098}{FNVa\_a}}(tmp, offset);}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00410}00410 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00411}00411 \};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00412}00412 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00416}00416 \textcolor{keyword}{template} <\textcolor{keyword}{typename} T, \textcolor{keyword}{typename} HashInt>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00417}\mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01_t_00_01_hash_int_00_01void__if__t_3_01std_1_1is__empty_3_01_t_01_4_1_1value_01_4_01_4}{00417}} \textcolor{keyword}{struct }\mbox{\hyperlink{structkblib_1_1_f_n_v__hash}{FNV\_hash}}::value>> \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00418}\mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01_t_00_01_hash_int_00_01void__if__t_3_01std_1_1is__empty_3_01_t_01_4_1_1value_01_4_01_4_ad00468627a60bb8af8c6ae02c9f09e8b}{00418}} \mbox{\hyperlink{tdecl_8h_a7f62d0731631a0e7675f45924b7f5ea0}{KBLIB\_NODISCARD}} \textcolor{keyword}{constexpr} \textcolor{keyword}{auto} \mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01_t_00_01_hash_int_00_01void__if__t_3_01std_1_1is__empty_3_01_t_01_4_1_1value_01_4_01_4_ad00468627a60bb8af8c6ae02c9f09e8b}{operator()}}(}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00419}00419 \textcolor{keyword}{const} T\&, HashInt offset}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00420}00420 = \mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__offset}{fnv::fnv\_offset::value}}) \textcolor{keyword}{const} \textcolor{keyword}{noexcept} -\/> HashInt \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00421}00421 \textcolor{keywordflow}{return} \mbox{\hyperlink{namespacekblib_ac550cfcd270e104a007c7b7a8fcad098}{FNVa\_a}}(\textcolor{stringliteral}{"{}"{}}, offset); \textcolor{comment}{// hashes the null terminator}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00422}00422 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00423}00423 \};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00424}00424 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00425}00425 \textcolor{preprocessor}{\#if \_\_cpp\_lib\_has\_unique\_object\_representations}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00426}00426 \textcolor{keyword}{template} <\textcolor{keyword}{typename} T>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00427}00427 \mbox{\hyperlink{tdecl_8h_a9b2376bf15765fad0ad95e4aecf36e87}{KBLIB\_CONSTANT\_V}} \mbox{\hyperlink{namespacekblib_a16db4408c7a9d67eb38141aee1588ebd}{is\_trivially\_hashable\_v}}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00428}00428 = (std::is\_trivially\_copyable\_v<}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00429}00429 T> and std::has\_unique\_object\_representations\_v);}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00430}00430 \textcolor{preprocessor}{\#else}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00431}00431 \textcolor{keyword}{template} <\textcolor{keyword}{typename} T>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00432}\mbox{\hyperlink{namespacekblib_a16db4408c7a9d67eb38141aee1588ebd}{00432}} \mbox{\hyperlink{tdecl_8h_a9b2376bf15765fad0ad95e4aecf36e87}{KBLIB\_CONSTANT\_V}} \mbox{\hyperlink{namespacekblib_a16db4408c7a9d67eb38141aee1588ebd}{is\_trivially\_hashable\_v}}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00433}00433 = (std::is\_integral::value and \mbox{\hyperlink{structkblib_1_1padding__bits}{padding\_bits::value}} == 0)}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00434}00434 or std::is\_pointer::value or std::is\_member\_object\_pointer::value}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00435}00435 or std::is\_member\_function\_pointer::value;}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00436}00436 \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00437}00437 \textcolor{keyword}{template} <\textcolor{keyword}{typename} T>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00438}\mbox{\hyperlink{structkblib_1_1is__trivially__hashable}{00438}} \textcolor{keyword}{struct }\mbox{\hyperlink{structkblib_1_1is__trivially__hashable}{is\_trivially\_hashable}} : \mbox{\hyperlink{namespacekblib_aab6846d277428f1e4b61ced2ed64dd0b}{bool\_constant}}> \{\};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00439}00439 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00445}00445 \textcolor{keyword}{template} <\textcolor{keyword}{typename} T, \textcolor{keyword}{typename} HashInt>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00446}\mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01_t_00_01_hash_int_00_01void__if__t_3_01std_1_1is__integral_3_01_599ab9b315b255c76bff3a59b2a07d79}{00446}} \textcolor{keyword}{struct }\mbox{\hyperlink{structkblib_1_1_f_n_v__hash}{FNV\_hash}}<}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00447}00447 T, HashInt,}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00448}00448 \mbox{\hyperlink{namespacekblib_ab3cc24416f0b9a6504e1c6a437ed6230}{void\_if\_t}}<\mbox{\hyperlink{namespacestd}{std}}::is\_integral::value and \mbox{\hyperlink{namespacekblib_a16db4408c7a9d67eb38141aee1588ebd}{is\_trivially\_hashable\_v}}>> \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00449}\mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01_t_00_01_hash_int_00_01void__if__t_3_01std_1_1is__integral_3_01_599ab9b315b255c76bff3a59b2a07d79_a414138a6f7bfce9c998e5cba4ef400e1}{00449}} \mbox{\hyperlink{tdecl_8h_a7f62d0731631a0e7675f45924b7f5ea0}{KBLIB\_NODISCARD}} \textcolor{keyword}{constexpr} \textcolor{keyword}{auto} \mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01_t_00_01_hash_int_00_01void__if__t_3_01std_1_1is__integral_3_01_599ab9b315b255c76bff3a59b2a07d79_a414138a6f7bfce9c998e5cba4ef400e1}{operator()}}(}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00450}00450 T key, HashInt offset = \mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__offset}{fnv::fnv\_offset::value}}) \textcolor{keyword}{const} \textcolor{keyword}{noexcept}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00451}00451 -\/> HashInt \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00452}00452 \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{char} tmp[\textcolor{keyword}{sizeof}(T)]\{\};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00453}00453 \mbox{\hyperlink{namespacekblib_a5ab8aca1c780d41f099cead14d4227c3}{to\_bytes}}(key, tmp);}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00454}00454 \textcolor{keywordflow}{return} \mbox{\hyperlink{namespacekblib_ac550cfcd270e104a007c7b7a8fcad098}{FNVa\_a}}(tmp, offset);}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00455}00455 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00456}00456 \};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00457}00457 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00464}00464 \textcolor{comment}{// uses std::is\_pointer instead of just specializing on T* for cv pointers}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00465}00465 \textcolor{keyword}{template} <\textcolor{keyword}{typename} T, \textcolor{keyword}{typename} HashInt>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00466}\mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01_t_00_01_hash_int_00_01void__if__t_3_01std_1_1is__pointer_3_01_t_01_4_1_1value_01_4_01_4}{00466}} \textcolor{keyword}{struct }\mbox{\hyperlink{structkblib_1_1_f_n_v__hash}{FNV\_hash}}::value>> \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00467}\mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01_t_00_01_hash_int_00_01void__if__t_3_01std_1_1is__pointer_3_01_t_01_4_1_1value_01_4_01_4_a5a642e8a29c20989e25b193c6a297bb9}{00467}} \mbox{\hyperlink{tdecl_8h_a7f62d0731631a0e7675f45924b7f5ea0}{KBLIB\_NODISCARD}} \textcolor{keyword}{auto} \mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01_t_00_01_hash_int_00_01void__if__t_3_01std_1_1is__pointer_3_01_t_01_4_1_1value_01_4_01_4_a5a642e8a29c20989e25b193c6a297bb9}{operator()}}(}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00468}00468 T key\_in, HashInt offset}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00469}00469 = \mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__offset}{fnv::fnv\_offset::value}}) \textcolor{keyword}{const} \textcolor{keyword}{noexcept} -\/> HashInt \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00470}00470 \textcolor{keywordflow}{return} \mbox{\hyperlink{structkblib_1_1_f_n_v__hash}{FNV\_hash}}\{\}(}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00471}00471 \textcolor{keyword}{reinterpret\_cast<}std::uintptr\_t\textcolor{keyword}{>}(key\_in), offset);}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00472}00472 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00473}00473 \};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00474}00474 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00481}00481 \textcolor{keyword}{template} <\textcolor{keyword}{typename} T, \textcolor{keyword}{typename} HashInt>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00482}\mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01_t_00_01_hash_int_00_01void__if__t_3_07std_1_1is__base__of_3_01s3a60a3855c96d32ad8e3e4529f547819}{00482}} \textcolor{keyword}{struct }\mbox{\hyperlink{structkblib_1_1_f_n_v__hash}{FNV\_hash}}::iterator\_category>::value and}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00486}00486 not std::is\_pointer::value and}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00487}00487 not \mbox{\hyperlink{namespacekblib_a16db4408c7a9d67eb38141aee1588ebd}{is\_trivially\_hashable\_v}} and}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00488}00488 std::is\_pointer), T>::type>::value)>> \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00490}\mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01_t_00_01_hash_int_00_01void__if__t_3_07std_1_1is__base__of_3_01s3a60a3855c96d32ad8e3e4529f547819_aa655d0fed75afb701d5c8377ffbf4959}{00490}} \mbox{\hyperlink{tdecl_8h_a7f62d0731631a0e7675f45924b7f5ea0}{KBLIB\_NODISCARD}} \textcolor{keyword}{auto} \mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01_t_00_01_hash_int_00_01void__if__t_3_07std_1_1is__base__of_3_01s3a60a3855c96d32ad8e3e4529f547819_aa655d0fed75afb701d5c8377ffbf4959}{operator()}}(}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00491}00491 T key\_in, HashInt offset}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00492}00492 = \mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__offset}{fnv::fnv\_offset::value}}) \textcolor{keyword}{const} \textcolor{keyword}{noexcept} -\/> HashInt \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00493}00493 \textcolor{keywordflow}{if} (key\_in}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00494}00494 == T\{\}) \{ \textcolor{comment}{// avoid calling to\_pointer on a value-\/initialized iterator}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00495}00495 \textcolor{keywordflow}{return} \mbox{\hyperlink{structkblib_1_1_f_n_v__hash}{FNV\_hash}}\{\}(0, offset);}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00496}00496 \} \textcolor{keywordflow}{else} \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00497}00497 \textcolor{keywordflow}{return} \mbox{\hyperlink{structkblib_1_1_f_n_v__hash}{FNV\_hash}}\{\}(}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00498}00498 \textcolor{keyword}{reinterpret\_cast<}std::uintptr\_t\textcolor{keyword}{>}(\mbox{\hyperlink{namespacekblib_a1c2aa67048789f77bea56734a583d3d1}{to\_pointer}}(key\_in)), offset);}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00499}00499 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00500}00500 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00501}00501 \};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00502}00502 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00506}\mbox{\hyperlink{namespacekblib_1_1asserts}{00506}} \textcolor{keyword}{namespace }asserts \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00507}00507 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00508}00508 \textcolor{keyword}{template} <\textcolor{keyword}{typename} Container>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00509}\mbox{\hyperlink{namespacekblib_1_1asserts_a2ace2d4ba28e38b473b8913d5823f6c5}{00509}} \mbox{\hyperlink{tdecl_8h_a9b2376bf15765fad0ad95e4aecf36e87}{KBLIB\_CONSTANT\_V}} \mbox{\hyperlink{namespacekblib_1_1asserts_a2ace2d4ba28e38b473b8913d5823f6c5}{is\_trivial\_container}}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00510}00510 = (\mbox{\hyperlink{structkblib_1_1is__contiguous}{is\_contiguous::value}}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00511}00511 and is\_trivially\_hashable\_v);}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00512}00512 \textcolor{keyword}{static\_assert}(is\_trivial\_container,}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00513}00513 \textcolor{stringliteral}{"{}kblib bug: std::string should be trivially hashable"{}});}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00514}00514 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00515}00515 \} \textcolor{comment}{// namespace asserts}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00516}00516 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00521}00521 \textcolor{keyword}{template} <\textcolor{keyword}{typename} Container, \textcolor{keyword}{typename} HashInt>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00522}\mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01_container_00_01_hash_int_00_01void__if__t_3_07is__contiguous__v22da9f992987654025f033c7cfb43f33}{00522}} \textcolor{keyword}{struct }\mbox{\hyperlink{structkblib_1_1_f_n_v__hash}{FNV\_hash}}<}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00523}00523 Container, HashInt,}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00524}00524 \mbox{\hyperlink{namespacekblib_ab3cc24416f0b9a6504e1c6a437ed6230}{void\_if\_t}}<(}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00525}00525 \mbox{\hyperlink{namespacekblib_acec974f6a75e6884147ef326bbd78d35}{is\_contiguous\_v}}<}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00526}00526 Container> and \mbox{\hyperlink{namespacekblib_a16db4408c7a9d67eb38141aee1588ebd}{is\_trivially\_hashable\_v}})>> \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00527}00527 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00528}\mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01_container_00_01_hash_int_00_01void__if__t_3_07is__contiguous__v22da9f992987654025f033c7cfb43f33_a64e6d739f0ed8ccc0c5bada399015984}{00528}} \mbox{\hyperlink{tdecl_8h_a7f62d0731631a0e7675f45924b7f5ea0}{KBLIB\_NODISCARD}} \textcolor{keyword}{auto} \mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01_container_00_01_hash_int_00_01void__if__t_3_07is__contiguous__v22da9f992987654025f033c7cfb43f33_a64e6d739f0ed8ccc0c5bada399015984}{hash\_fast}}(\textcolor{keyword}{const} Container\& key,}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00529}00529 HashInt offset) \textcolor{keyword}{const} \textcolor{keyword}{noexcept} -\/> HashInt \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00530}00530 \textcolor{keywordflow}{return} FNVa\_s(\textcolor{keyword}{reinterpret\_cast<}\textcolor{keyword}{const }\textcolor{keywordtype}{char}*\textcolor{keyword}{>}(key.data()),}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00531}00531 key.size() * \textcolor{keyword}{sizeof}(*key.begin()), offset);}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00532}00532 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00533}00533 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00534}\mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01_container_00_01_hash_int_00_01void__if__t_3_07is__contiguous__v22da9f992987654025f033c7cfb43f33_a27a50a4a0d49044f8fdbb507d4b9f948}{00534}} \mbox{\hyperlink{tdecl_8h_a7f62d0731631a0e7675f45924b7f5ea0}{KBLIB\_NODISCARD}} \textcolor{keyword}{constexpr} \textcolor{keyword}{auto} \mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01_container_00_01_hash_int_00_01void__if__t_3_07is__contiguous__v22da9f992987654025f033c7cfb43f33_a27a50a4a0d49044f8fdbb507d4b9f948}{operator()}}(}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00535}00535 \textcolor{keyword}{const} Container\& key,}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00536}00536 HashInt offset = \mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__offset}{fnv::fnv\_offset::value}}) \textcolor{keyword}{const} \textcolor{keyword}{noexcept}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00537}00537 -\/> HashInt \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00538}00538 \textcolor{preprocessor}{\#if KBLIB\_USE\_CXX20}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00539}00539 \textcolor{keywordflow}{if} (std::is\_constant\_evaluated()) \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00540}00540 \textcolor{keyword}{using }T = \textcolor{keyword}{typename} Container::value\_type;}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00541}00541 \textcolor{keywordflow}{for} (\textcolor{keyword}{const} \textcolor{keyword}{auto}\& \mbox{\hyperlink{namespacekblib_a536badb265b62a85034f48e0eac76a1b}{e}} : key) \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00542}00542 offset = \mbox{\hyperlink{structkblib_1_1_f_n_v__hash}{FNV\_hash}}\{\}(\mbox{\hyperlink{namespacekblib_a536badb265b62a85034f48e0eac76a1b}{e}}, offset);}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00543}00543 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00544}00544 \} \textcolor{keywordflow}{else} \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00545}00545 \textcolor{keywordflow}{return} hash\_fast(key, offset);}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00546}00546 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00547}00547 \textcolor{preprocessor}{\#else}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00548}00548 \textcolor{keywordflow}{return} hash\_fast(key, offset);}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00549}00549 \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00550}00550 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00551}00551 \};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00552}00552 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00561}00561 \textcolor{keyword}{template} <\textcolor{keyword}{typename} T, \textcolor{keyword}{typename} HashInt>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00562}\mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01_t_00_01_hash_int_00_01void__if__t_3_01not_01is__contiguous__v_3e66815ec611e56a0a8c73036102d6bbb}{00562}} \textcolor{keyword}{struct }\mbox{\hyperlink{structkblib_1_1_f_n_v__hash}{FNV\_hash}}<}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00563}00563 T, HashInt,}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00564}00564 \mbox{\hyperlink{namespacekblib_ab3cc24416f0b9a6504e1c6a437ed6230}{void\_if\_t}} and not \mbox{\hyperlink{namespacestd}{std}}::is\_integral::value}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00565}00565 and not std::is\_pointer::value}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00566}00566 and \mbox{\hyperlink{namespacekblib_a16db4408c7a9d67eb38141aee1588ebd}{is\_trivially\_hashable\_v}}>> \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00567}\mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01_t_00_01_hash_int_00_01void__if__t_3_01not_01is__contiguous__v_3e66815ec611e56a0a8c73036102d6bbb_ae41563e80e9658d3088b34978780eaab}{00567}} \mbox{\hyperlink{tdecl_8h_a7f62d0731631a0e7675f45924b7f5ea0}{KBLIB\_NODISCARD}} \mbox{\hyperlink{tdecl_8h_a9bae2bd5888633dceb4571b7e14f8b12}{KBLIB\_CXX20}}(\textcolor{keyword}{constexpr}) auto operator()(}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00568}00568 T key, HashInt offset = fnv::fnv\_offset::value) const noexcept}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00569}00569 -\/> HashInt \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00570}00570 \textcolor{preprocessor}{\#if KBLIB\_USE\_CXX20}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00571}00571 \textcolor{keyword}{auto} tmp = std::bit\_cast>(key);}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00572}00572 \textcolor{keywordflow}{return} \mbox{\hyperlink{namespacekblib_ab67d69cffbdb7f096d195c345df0752b}{FNVa\_s}}(tmp.data(), tmp.size(), offset);}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00573}00573 \textcolor{preprocessor}{\#else}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00574}00574 \textcolor{keywordtype}{char} tmp[\textcolor{keyword}{sizeof}(T)];}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00575}00575 std::memcpy(tmp, \&key, \textcolor{keyword}{sizeof}(T));}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00576}00576 \textcolor{keywordflow}{return} \mbox{\hyperlink{namespacekblib_ac550cfcd270e104a007c7b7a8fcad098}{FNVa\_a}}(tmp, offset);}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00577}00577 \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00578}00578 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00579}00579 \};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00580}00580 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00585}00585 \textcolor{keyword}{template} <\textcolor{keyword}{typename} Container, \textcolor{keyword}{typename} HashInt>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00586}\mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01_container_00_01_hash_int_00_01void__if__t_3_01value__detected_3e9bfb9ddd66886bf87a07a71a07a8fa9}{00586}} \textcolor{keyword}{struct }\mbox{\hyperlink{structkblib_1_1_f_n_v__hash}{FNV\_hash}}<}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00587}00587 Container, HashInt,}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00588}00588 \mbox{\hyperlink{namespacekblib_ab3cc24416f0b9a6504e1c6a437ed6230}{void\_if\_t}}<}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00589}00589 \mbox{\hyperlink{structkblib_1_1value__detected}{value\_detected}}::value}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00590}00590 and \mbox{\hyperlink{namespacekblib_a088e976f0cd633372839a9f4404f3c15}{is\_hashable\_v}}<}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00591}00591 value\_detected\_t> and not \mbox{\hyperlink{structkblib_1_1hash__detected}{hash\_detected}}::value}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00592}00592 and \mbox{\hyperlink{structkblib_1_1is__iterable}{is\_iterable}}::value}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00593}00593 and not (is\_contiguous::value}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00594}00594 and is\_trivially\_hashable\_v)}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00595}00595 and not \mbox{\hyperlink{namespacekblib_a77a4b828d16a122e5fd65379109dc036}{is\_iterator\_v}}>> \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00596}\mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01_container_00_01_hash_int_00_01void__if__t_3_01value__detected_3e9bfb9ddd66886bf87a07a71a07a8fa9_ad244a2212108cc5a46d380ce4255c9eb}{00596}} \mbox{\hyperlink{tdecl_8h_a7f62d0731631a0e7675f45924b7f5ea0}{KBLIB\_NODISCARD}} \textcolor{keyword}{constexpr} \textcolor{keyword}{auto} \mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01_container_00_01_hash_int_00_01void__if__t_3_01value__detected_3e9bfb9ddd66886bf87a07a71a07a8fa9_ad244a2212108cc5a46d380ce4255c9eb}{operator()}}(}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00597}00597 \textcolor{keyword}{const} Container\& key,}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00598}00598 HashInt offset = \mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__offset}{fnv::fnv\_offset::value}}) \textcolor{keyword}{const} \textcolor{keyword}{noexcept}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00599}00599 -\/> HashInt \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00600}00600 \textcolor{keyword}{using }Elem = \textcolor{keyword}{typename} Container::value\_type;}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00601}00601 \textcolor{keywordflow}{return} \mbox{\hyperlink{namespacekblib_abedf2e5c556e6ab3ebb779227172a2ac}{std::accumulate}}(cbegin(key), cend(key), offset,}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00602}00602 [](HashInt offset\_, \textcolor{keyword}{const} Elem\& elem) \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00603}00603 \textcolor{keywordflow}{return} \mbox{\hyperlink{structkblib_1_1_f_n_v__hash}{FNV\_hash}}\{\}(elem, offset\_);}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00604}00604 \});}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00605}00605 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00606}00606 \};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00607}00607 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00612}\mbox{\hyperlink{namespacekblib_1_1detail__hash}{00612}} \textcolor{keyword}{namespace }\mbox{\hyperlink{namespacedetail__hash}{detail\_hash}} \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00613}00613 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00622}00622 \textcolor{keyword}{template} <\textcolor{keyword}{typename} Tuple, \textcolor{keyword}{typename} HashInt, std::\textcolor{keywordtype}{size\_t} I>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00623}\mbox{\hyperlink{namespacekblib_1_1detail__hash_a138386fc0ca979aa8b320aebcf80e481}{00623}} \textcolor{keyword}{constexpr} \textcolor{keyword}{auto} \mbox{\hyperlink{namespacekblib_1_1detail__hash_af4f4d879d7d510def38b6d60cc74c7ec}{hash\_tuple\_impl}}(\textcolor{keyword}{const} Tuple\& tuple, HashInt offset,}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00624}00624 std::index\_sequence) \textcolor{keyword}{noexcept} -\/> HashInt \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00625}00625 \textcolor{keywordflow}{return} \mbox{\hyperlink{structkblib_1_1_f_n_v__hash}{FNV\_hash::type}}, HashInt>\{\}(}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00626}00626 std::get(tuple), offset);}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00627}00627 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00628}00628 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00637}00637 \textcolor{keyword}{template} <\textcolor{keyword}{typename} Tuple, \textcolor{keyword}{typename} HashInt, std::size\_t I, std::size\_t I2,}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00638}00638 std::size\_t... Is>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00639}\mbox{\hyperlink{namespacekblib_1_1detail__hash_af4f4d879d7d510def38b6d60cc74c7ec}{00639}} \textcolor{keyword}{constexpr} \textcolor{keyword}{auto} \mbox{\hyperlink{namespacekblib_1_1detail__hash_af4f4d879d7d510def38b6d60cc74c7ec}{hash\_tuple\_impl}}(\textcolor{keyword}{const} Tuple\& tuple, HashInt offset,}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00640}00640 std::index\_sequence) \textcolor{keyword}{noexcept}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00641}00641 -\/> HashInt \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00642}00642 HashInt first\_hash}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00643}00643 = \mbox{\hyperlink{structkblib_1_1_f_n_v__hash}{FNV\_hash::type}}, HashInt>\{\}(}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00644}00644 std::get(tuple), offset);}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00645}00645 \textcolor{keywordflow}{return} \mbox{\hyperlink{namespacekblib_1_1detail__hash_af4f4d879d7d510def38b6d60cc74c7ec}{hash\_tuple\_impl}}(tuple, first\_hash,}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00646}00646 std::index\_sequence\{\});}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00647}00647 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00648}00648 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00649}00649 \textcolor{preprocessor}{\#if KBLIB\_USE\_CXX17}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00650}00650 \textcolor{keyword}{template} <\textcolor{keyword}{typename} Tuple, std::size\_t... Is>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00651}\mbox{\hyperlink{namespacekblib_1_1detail__hash_a2e06c1df56bfe905c83f2eeb55fe7cdd}{00651}} \textcolor{keyword}{constexpr} \textcolor{keyword}{auto} \mbox{\hyperlink{namespacekblib_1_1detail__hash_a2e06c1df56bfe905c83f2eeb55fe7cdd}{all\_hashable\_impl}}(std::index\_sequence) -\/> \textcolor{keywordtype}{bool} \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00652}00652 \textcolor{keywordflow}{return} (...}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00653}00653 and \mbox{\hyperlink{namespacekblib_a088e976f0cd633372839a9f4404f3c15}{is\_hashable\_v}}<\textcolor{keyword}{typename} std::tuple\_element::type>);}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00654}00654 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00655}00655 \textcolor{preprocessor}{\#else}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00656}00656 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00657}00657 \textcolor{keyword}{template} <\textcolor{keyword}{typename} Tuple, \textcolor{keyword}{typename} IS>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00658}00658 \textcolor{keyword}{struct }all\_hashable\_impl\_t;}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00659}00659 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00660}00660 \textcolor{keyword}{template} <\textcolor{keyword}{typename} Tuple, std::size\_t I, std::size\_t... Is>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00661}00661 \textcolor{keyword}{struct }all\_hashable\_impl\_t>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00662}00662 : \mbox{\hyperlink{namespacekblib_aab6846d277428f1e4b61ced2ed64dd0b}{bool\_constant}}<(}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00663}00663 is\_hashable\_v<}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00664}00664 typename std::tuple\_element::}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00665}00665 type> and all\_hashable\_impl\_t>::value)> \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00666}00666 \};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00667}00667 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00668}00668 \textcolor{keyword}{template} <\textcolor{keyword}{typename} Tuple, std::\textcolor{keywordtype}{size\_t} I>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00669}00669 \textcolor{keyword}{struct }all\_hashable\_impl\_t>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00670}00670 : \mbox{\hyperlink{namespacekblib_aab6846d277428f1e4b61ced2ed64dd0b}{bool\_constant}}<}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00671}00671 is\_hashable\_v::type>> \{\};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00672}00672 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00673}00673 \textcolor{keyword}{template} <\textcolor{keyword}{typename} Tuple, std::size\_t... Is>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00674}00674 \textcolor{keyword}{constexpr} \textcolor{keyword}{auto} \mbox{\hyperlink{namespacekblib_1_1detail__hash_a2e06c1df56bfe905c83f2eeb55fe7cdd}{all\_hashable\_impl}}(std::index\_sequence) -\/> \textcolor{keywordtype}{bool} \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00675}00675 \textcolor{keywordflow}{return} all\_hashable\_impl\_t>::value;}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00676}00676 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00677}00677 \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00678}00678 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00679}00679 \textcolor{keyword}{template} <}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00680}00680 \textcolor{keyword}{typename} Tuple,}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00681}00681 \textcolor{keyword}{typename} std::enable\_if<(std::tuple\_size::value > 0u), \textcolor{keywordtype}{int}>::type}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00682}00682 = 0>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00683}\mbox{\hyperlink{namespacekblib_1_1detail__hash_adc7fa44ca103cd16a233a5c3a006a3a9}{00683}} \textcolor{keyword}{constexpr} \textcolor{keyword}{auto} \mbox{\hyperlink{namespacekblib_1_1detail__hash_adc7fa44ca103cd16a233a5c3a006a3a9}{all\_hashable}}() -\/> \textcolor{keywordtype}{bool} \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00684}00684 \textcolor{keywordflow}{return} all\_hashable\_impl(}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00685}00685 std::make\_index\_sequence::value>\{\});}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00686}00686 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00687}00687 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00688}00688 \} \textcolor{comment}{// namespace detail\_hash}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00689}00689 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00694}00694 \textcolor{keyword}{template} <\textcolor{keyword}{typename} Tuple, \textcolor{keyword}{typename} HashInt>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00695}\mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01_tuple_00_01_hash_int_00_01void__if__t_3_01detail__hash_1_1all__3f2ac5ae724f91415363fe8a293599de}{00695}} \textcolor{keyword}{struct }\mbox{\hyperlink{structkblib_1_1_f_n_v__hash}{FNV\_hash}}}}()}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00697}00697 and not \mbox{\hyperlink{namespacekblib_a16db4408c7a9d67eb38141aee1588ebd}{is\_trivially\_hashable\_v}}<}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00698}00698 Tuple> and (\mbox{\hyperlink{namespacestd}{std}}::tuple\_size::value > 0u)}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00699}00699 and not is\_linear\_container\_v>> \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00700}\mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01_tuple_00_01_hash_int_00_01void__if__t_3_01detail__hash_1_1all__3f2ac5ae724f91415363fe8a293599de_a1e05193da782026678aaab07bb7b1918}{00700}} \mbox{\hyperlink{tdecl_8h_a7f62d0731631a0e7675f45924b7f5ea0}{KBLIB\_NODISCARD}} \textcolor{keyword}{constexpr} \textcolor{keyword}{auto} \mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01_tuple_00_01_hash_int_00_01void__if__t_3_01detail__hash_1_1all__3f2ac5ae724f91415363fe8a293599de_a1e05193da782026678aaab07bb7b1918}{operator()}}(}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00701}00701 \textcolor{keyword}{const} Tuple\& key,}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00702}00702 HashInt offset = \mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__offset}{fnv::fnv\_offset::value}}) \textcolor{keyword}{const} \textcolor{keyword}{noexcept}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00703}00703 -\/> HashInt \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00704}00704 \textcolor{keywordflow}{return} \mbox{\hyperlink{namespacekblib_1_1detail__hash_af4f4d879d7d510def38b6d60cc74c7ec}{detail\_hash::hash\_tuple\_impl}}(}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00705}00705 key, offset,}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00706}00706 std::make\_index\_sequence::value>\{\});}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00707}00707 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00708}00708 \};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00709}00709 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00710}00710 \textcolor{preprocessor}{\#if KBLIB\_USE\_CXX17}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00711}00711 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00712}00712 \textcolor{keyword}{template} <\textcolor{keyword}{typename} T, \textcolor{keyword}{typename} HashInt>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00713}\mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01std_1_1optional_3_01_t_01_4_00_01_hash_int_00_01void_01_4}{00713}} \textcolor{keyword}{struct }\mbox{\hyperlink{structkblib_1_1_f_n_v__hash}{FNV\_hash}}, HashInt, \textcolor{keywordtype}{void}> \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00714}\mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01std_1_1optional_3_01_t_01_4_00_01_hash_int_00_01void_01_4_acd0f73db86a6aca7c272e662f4844b4b}{00714}} \mbox{\hyperlink{tdecl_8h_a7f62d0731631a0e7675f45924b7f5ea0}{KBLIB\_NODISCARD}} \textcolor{keyword}{constexpr} \textcolor{keyword}{auto} \mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01std_1_1optional_3_01_t_01_4_00_01_hash_int_00_01void_01_4_acd0f73db86a6aca7c272e662f4844b4b}{operator()}}(}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00715}00715 \textcolor{keyword}{const} std::optional\& key,}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00716}00716 HashInt offset = \mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__offset}{fnv::fnv\_offset::value}}) \textcolor{keyword}{const} \textcolor{keyword}{noexcept}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00717}00717 -\/> HashInt \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00718}00718 \textcolor{keywordflow}{if} (key) \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00719}00719 \textcolor{keywordflow}{return} \mbox{\hyperlink{structkblib_1_1_f_n_v__hash}{FNV\_hash}}\{\}(key.value(), offset);}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00720}00720 \} \textcolor{keywordflow}{else} \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00721}00721 \textcolor{keywordflow}{return} \mbox{\hyperlink{structkblib_1_1_f_n_v__hash}{FNV\_hash}}\{\}(std::nullopt, offset);}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00722}00722 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00723}00723 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00724}00724 \};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00725}00725 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00726}00726 \textcolor{keyword}{template} <\textcolor{keyword}{typename}... Ts, \textcolor{keyword}{typename} HashInt>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00727}\mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01std_1_1variant_3_01_ts_8_8_8_01_4_00_01_hash_int_00_01void__if__4d80baaf6953ac20d214dfca35bf3fed}{00727}} \textcolor{keyword}{struct }\mbox{\hyperlink{structkblib_1_1_f_n_v__hash}{FNV\_hash}}<\mbox{\hyperlink{namespacestd}{std}}::variant, HashInt,}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00728}00728 \mbox{\hyperlink{namespacekblib_ab3cc24416f0b9a6504e1c6a437ed6230}{void\_if\_t}}>()>> \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00729}\mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01std_1_1variant_3_01_ts_8_8_8_01_4_00_01_hash_int_00_01void__if__4d80baaf6953ac20d214dfca35bf3fed_afed893bae728eee2cf5e122e6dc170f8}{00729}} \mbox{\hyperlink{tdecl_8h_a7f62d0731631a0e7675f45924b7f5ea0}{KBLIB\_NODISCARD}} \textcolor{keyword}{constexpr} \textcolor{keyword}{auto} \mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01std_1_1variant_3_01_ts_8_8_8_01_4_00_01_hash_int_00_01void__if__4d80baaf6953ac20d214dfca35bf3fed_afed893bae728eee2cf5e122e6dc170f8}{operator()}}(}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00730}00730 \textcolor{keyword}{const} std::variant\& key,}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00731}00731 HashInt offset = \mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__offset}{fnv::fnv\_offset::value}}) \textcolor{keyword}{const} \textcolor{keyword}{noexcept}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00732}00732 -\/> HashInt \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00733}00733 \textcolor{comment}{// Variant index is hashed alongside the value}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00734}00734 offset = \mbox{\hyperlink{structkblib_1_1_f_n_v__hash}{FNV\_hash}}\{\}(key.index(), offset);}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00735}00735 \textcolor{comment}{// visit2\_nop does nothing when the variant is valueless\_by\_exception}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00736}00736 \mbox{\hyperlink{namespacekblib_a76752fc2ac3634b95ba226b1324dc0b9}{kblib::visit2\_nop}}(key, [\&](\textcolor{keyword}{auto}\& V) \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00737}00737 offset = \mbox{\hyperlink{structkblib_1_1_f_n_v__hash}{FNV\_hash}}<\textcolor{keyword}{typename} std::remove\_reference<\textcolor{keyword}{decltype}(V)>::type,}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00738}00738 HashInt>\{\}(V, offset);}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00739}00739 \});}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00740}00740 \textcolor{keywordflow}{return} offset;}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00741}00741 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00742}00742 \};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00743}00743 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00744}00744 \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00745}00745 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00750}00750 \textcolor{keyword}{template} <\textcolor{keyword}{typename} HashInt>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00751}\mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01void_00_01_hash_int_00_01void_01_4}{00751}} \textcolor{keyword}{struct }\mbox{\hyperlink{structkblib_1_1_f_n_v__hash}{FNV\_hash}} \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00752}\mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01void_00_01_hash_int_00_01void_01_4_a4a6ea6cb09d5e238e57d0cfae3f7a2cb}{00752}} \mbox{\hyperlink{tdecl_8h_ae80370916cdf0283545d3e726865f6ec}{KBLIB\_CONSTANT\_MV}} is\_transparent = \textcolor{keyword}{true};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00753}00753 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00754}00754 \textcolor{keyword}{template} <\textcolor{keyword}{typename} T>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00755}\mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01void_00_01_hash_int_00_01void_01_4_a24869a4225a264f47a0f426623e44aeb}{00755}} \mbox{\hyperlink{tdecl_8h_a7f62d0731631a0e7675f45924b7f5ea0}{KBLIB\_NODISCARD}} \textcolor{keyword}{constexpr} \textcolor{keyword}{auto} \mbox{\hyperlink{structkblib_1_1_f_n_v__hash_3_01void_00_01_hash_int_00_01void_01_4_a24869a4225a264f47a0f426623e44aeb}{operator()}}(}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00756}00756 \textcolor{keyword}{const} T\& key,}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00757}00757 HashInt offset = \mbox{\hyperlink{structkblib_1_1fnv_1_1fnv__offset}{fnv::fnv\_offset::value}}) \textcolor{keyword}{const} \textcolor{keyword}{noexcept}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00758}00758 -\/> \mbox{\hyperlink{namespacekblib_a366272ad8baad19be4ccf8128afb04a3}{enable\_if\_t}}, HashInt> \{}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00759}00759 \textcolor{keywordflow}{return} \mbox{\hyperlink{structkblib_1_1_f_n_v__hash}{FNV\_hash}}\{\}(key, offset);}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00760}00760 \}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00761}00761 \};}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00762}00762 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00763}00763 \textcolor{keyword}{template} <\textcolor{keyword}{typename} Key, \textcolor{keyword}{typename} Value>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00764}\mbox{\hyperlink{namespacekblib_ae9d0249375b4e261279715b4e50e9bb3}{00764}} \textcolor{keyword}{using }\mbox{\hyperlink{namespacekblib_ae9d0249375b4e261279715b4e50e9bb3}{hash\_map}} = std::unordered\_map, std::equal\_to<>>;}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00765}00765 \textcolor{keyword}{template} <\textcolor{keyword}{typename} Key, \textcolor{keyword}{typename} Value>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00766}\mbox{\hyperlink{namespacekblib_a238473bf3e5a7dcc451d6ff80fd883e0}{00766}} \textcolor{keyword}{using }\mbox{\hyperlink{namespacekblib_a238473bf3e5a7dcc451d6ff80fd883e0}{hash\_multimap}}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00767}00767 = std::unordered\_multimap, std::equal\_to<>>;}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00768}00768 \textcolor{keyword}{template} <\textcolor{keyword}{typename} T, \textcolor{keyword}{typename} HashInt>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00769}\mbox{\hyperlink{namespacekblib_aba444e91f374258eb8f1594e19d54886}{00769}} \textcolor{keyword}{using }\mbox{\hyperlink{namespacekblib_aba444e91f374258eb8f1594e19d54886}{hash\_set}} = std::unordered\_set, std::equal\_to<>>;}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00770}00770 \textcolor{keyword}{template} <\textcolor{keyword}{typename} T, \textcolor{keyword}{typename} HashInt>}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00771}\mbox{\hyperlink{namespacekblib_aa5f6657aa0507d58dd3eab4b0b9fc446}{00771}} \textcolor{keyword}{using }\mbox{\hyperlink{namespacekblib_aa5f6657aa0507d58dd3eab4b0b9fc446}{hash\_multiset}} = std::unordered\_set, std::equal\_to<>>;}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00772}00772 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00773}00773 \} \textcolor{comment}{// namespace KBLIB\_NS}}
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00774}00774 }
\DoxyCodeLine{\Hypertarget{hash_8h_source_l00775}00775 \textcolor{preprocessor}{\#endif }\textcolor{comment}{// HASH\_H}}
\end{DoxyCode}