31 #include "./cref_wrapper.hpp"
33 #include <string_view>
34 #include <unordered_map>
41 template<
typename ValueT>
54 template<
typename ValueT>
57 using value_type = ValueT;
58 using size_type =
typename std::string_view::size_type;
67 std::string_view operator()(
const value_type& v)
const;
74 template<
typename ValueT>
77 using value_type = ValueT;
78 using size_type =
typename std::string_view::size_type;
80 using keystore_type = std::unordered_map<
89 std::string_view operator()(
const value_type& v)
const;
113 using func_find_key_type = KeyFinderT<ValueT>;
116 using value_type = ValueT;
117 using size_type =
typename std::string_view::size_type;
145 const value_type&
find(
const char* input, size_type len)
const;
155 const value_type&
find(std::string_view input)
const;
169 std::string_view
find_key(
const value_type& v)
const;
178 size_type
size()
const;
182 const value_type m_null_value;
183 const size_type m_entry_size;
186 func_find_key_type m_func_find_key;
191 #include "sorted_string_map_def.inl"
const value_type & find(const char *input, size_type len) const
Definition: cref_wrapper.hpp:41
Definition: sorted_string_map.hpp:55
Definition: sorted_string_map.hpp:111
Definition: sorted_string_map.hpp:75
sorted_string_map(const entry_type *entries, size_type entry_size, value_type null_value)
Definition: cref_wrapper.hpp:64
std::string_view find_key(const value_type &v) const
Definition: cref_wrapper.hpp:34
Definition: sorted_string_map.hpp:42