djson v3.1.3
JSON parser
 
Loading...
Searching...
No Matches
string_table.hpp
Go to the documentation of this file.
1#pragma once
2#include <string>
3#include <unordered_map>
4
5namespace dj {
7struct StringHash : std::hash<std::string_view> {
8 using is_transparent = void;
9};
10
12template <typename Value>
13using StringTable = std::unordered_map<std::string, Value, StringHash, std::equal_to<>>;
14} // namespace dj
Definition error.hpp:5
std::unordered_map< std::string, Value, StringHash, std::equal_to<> > StringTable
Heterogeneous string map.
Definition string_table.hpp:13
Heterogeneous string hasher.
Definition string_table.hpp:7
void is_transparent
Definition string_table.hpp:8