9 #include "./cref_wrapper.hpp"
11 #include <string_view>
12 #include <unordered_map>
19 template<
typename ValueT>
32 template<
typename ValueT>
35 using value_type = ValueT;
36 using size_type =
typename std::string_view::size_type;
45 std::string_view operator()(
const value_type& v)
const;
52 template<
typename ValueT>
55 using value_type = ValueT;
56 using size_type =
typename std::string_view::size_type;
58 using keystore_type = std::unordered_map<
67 std::string_view operator()(
const value_type& v)
const;
91 using func_find_key_type = KeyFinderT<ValueT>;
94 using value_type = ValueT;
95 using size_type =
typename std::string_view::size_type;
123 const value_type&
find(
const char* input, size_type len)
const;
133 const value_type&
find(std::string_view input)
const;
147 std::string_view
find_key(
const value_type& v)
const;
156 size_type
size()
const;
160 const value_type m_null_value;
161 const size_type m_entry_size;
164 func_find_key_type m_func_find_key;
169 #include "sorted_string_map_def.inl"
const value_type & find(const char *input, size_type len) const
Definition: cref_wrapper.hpp:19
Definition: sorted_string_map.hpp:33
Definition: sorted_string_map.hpp:89
Definition: sorted_string_map.hpp:53
sorted_string_map(const entry_type *entries, size_type entry_size, value_type null_value)
Definition: cref_wrapper.hpp:42
std::string_view find_key(const value_type &v) const
Definition: cref_wrapper.hpp:12
Definition: sorted_string_map.hpp:20