![]() |
dfx 0.1.0
Linux-based dynamic dataflow executor
|
Transparent hash functor for string-like lookups. More...
#include <dfx-utilities/StringMap.hpp>
Public Types | |
| using | is_transparent = void |
| Marker enabling heterogeneous lookup in standard associative containers. | |
Public Member Functions | |
| std::size_t | operator() (std::string_view str) const noexcept |
| Hash a string view. | |
Transparent hash functor for string-like lookups.
Intended for std::unordered_map with std::string keys, enabling lookups with std::string_view (and other compatible types) by advertising is_transparent.
std::string. This only affects which argument types can be used for lookup operations (find/contains/etc.). | using dfx::Utils::TransparentHash::is_transparent = void |
Marker enabling heterogeneous lookup in standard associative containers.
|
inlinenoexcept |
Hash a string view.
| str | The string view to hash. |