frozen

Header-only constexpr alternative to gperf for perfect hashing in C++14

brewmacoslinux
Try with needOr install directly
Source

About

Header-only, constexpr alternative to gperf for C++14 users

Commands

frozen

Examples

Generate a perfect hash function for a set of strings at compile-time$ frozen -s key1 key2 key3
Create a constexpr string-to-value map for fast lookups$ frozen --map key1=value1 key2=value2
Include frozen header in C++ code for compile-time string matching$ #include <frozen/unordered_map.h>