|
iceberg-cpp
|
Transparent hash function that supports std::string_view as lookup key. More...
#include <string_util.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 char *str) const |
| std::size_t | operator() (const std::string &str) const |
Transparent hash function that supports std::string_view as lookup key.
Enables std::unordered_map to directly accept std::string_view lookup keys without creating temporary std::string objects, using C++20's transparent lookup.