iceberg-cpp
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
iceberg::StringHash Struct Reference

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
 

Detailed Description

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.


The documentation for this struct was generated from the following file: