9#ifndef SQUID_SRC_BASE_LOOKUPTABLE_H
10#define SQUID_SRC_BASE_LOOKUPTABLE_H
15#include <unordered_map>
26template <
typename EnumType>
50template<
typename EnumType,
typename RecordType = LookupTableRecord<EnumType>,
typename Hasher = CaseInsensitiveSBufHash >
60 for (
auto i = 0; data[i].name !=
nullptr; ++i) {
73 using lookupTable_t = std::unordered_map<const SBuf, EnumType, Hasher, CaseInsensitiveSBufEqual>;
lookupTable_t lookupTable
RecordType Record
element of the lookup table initialization list
EnumType lookup(const SBuf &key) const
std::unordered_map< const SBuf, EnumType, Hasher, CaseInsensitiveSBufEqual > lookupTable_t
LookupTable(const EnumType theInvalid, const Record data[])