OpenTTD Source 20250521-master-g82876c25e0
|
Helper to provide transparent hashing for string types in e.g. More...
#include <string_type.h>
Public Types | |
using | hash_type = std::hash< std::string_view > |
using | is_transparent = void |
Public Member Functions | |
std::size_t | operator() (std::string_view str) const |
std::size_t | operator() (const std::string &str) const |
Helper to provide transparent hashing for string types in e.g.
std::unordered_map.
Definition at line 63 of file string_type.h.
using StringHash::hash_type = std::hash<std::string_view> |
Definition at line 64 of file string_type.h.
using StringHash::is_transparent = void |
Definition at line 65 of file string_type.h.
|
inline |
Definition at line 68 of file string_type.h.
|
inline |
Definition at line 67 of file string_type.h.