Skip to content
F

Frozen

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

by serge-sans-pailleFree

#1762in Utilities
0In stores

Description

Frozen is a header-only C++ library that provides zero-cost initialization for immutable containers, fixed-size containers and a few search…

Highlights

  • Constexpr immutable set and map containers
  • Perfect hashing for unordered containers, no collisions
  • Fixed-capacity constinit maps with mutable values
  • Compile-time search with Boyer-Moore or Knuth-Morris-Pratt
  • Header-only: copy the include folder or install with CMake

Ratings & Reviews

No ratings yet

Be the first to rate Frozen.

People also visit

F

Fastrange

A fast alternative to the modulo reduction

Utilities
Launch
I

ImTools

Fast and memory-efficient immutable collections and helper data structures

Developer Tools
Launch
C

cpp-pro

Writes, optimizes, and debugs C++ applications

AI Skills
Get
R

Re2

RE2 is a fast, safe, thread-friendly alternative

Utilities
Launch
U

UTL

Collection of self-contained header-only libraries for C++17

Developer Tools
Launch
O

Obfusheader.h

Obfusheader.h is a portable header file for C++14 compile-time obfuscation

Developer Tools
Launch

Frozen FAQ

What is Frozen?

A header-only C++ library for immutable, constexpr-friendly containers and compile-time search.

Who is it for?

C++ developers who want a constexpr alternative to gperf, according to the project's description, written for C++14 users.

How do I install it?

Copy the include/frozen directory somewhere and point the compiler at it with -I. Or use CMake, which installs configuration files that find_package can read.

Is it still maintained?

The README says the library is stable and in maintenance mode. The author still accepts commits that make the code cleaner, faster or more modern, but reviews may take a while.

Why use it instead of gperf?

Frozen builds its containers at compile time, so initialization costs nothing at runtime when constexpr or constinit is used.

What are the best Frozen alternatives?

Popular alternatives to Frozen include Fastrange, Re2 and Barkeep. See all Frozen alternatives

Developer Stuff

Badges