static_maps: consteval perfect unordered maps in C++23

Read full text
Authors: Serang, Isaac Myhal
Cited by: 0

Abstract

This is the code from Myhal & Serang 2026, which creates compile-time perfect hashing in C++23 using consteval. It can be used wherever keys are known at compile time. Code includes some demos using the static_maps::unordered_map, etc. MIT license.Code also includes the Frozen library (in its own subdirectory of its own with its own Apache 2 license file).

Fields of Study & Subjects

Algorithms and Data Compression Logic programming and type systems Parallel Computing and Optimization Techniques

Publication details

Journal / source
Figshare
Publication date
1 January 2026
Language
EN