This package browser is in early development. Mind the rough edges.

frozen 1.1.1-0.dd1f58c

C++ constexpr alternative header-only library

frozen is a header-only library that provides zero cost initialization for immutable containers, fixed-size containers, and various algorithms. It provides features such as:

  • immutable (also known as frozen), constexpr-compatible versions of std::set, std::unordered_set, std::map and std::unordered_map

  • fixed-capacity, constinit-compatible versions of std::map and std::unordered_map with immutable, compile-time selected keys mapped to mutable values.

  • zero cost initialization version of std::search for frozen needles using Boyer-Moore or Knuth-Morris-Pratt algorithms.

The unordered_* containers are guaranteed perfect (no hash collision) and the extra storage is linear with respect to the number of keys.

Installation

Install frozen 1.1.1-0.dd1f58c as follows:

guix install frozen@1.1.1-0.dd1f58c

Or install the latest version:

guix install frozen

You can also install packages in augmented, pure or containerized environments for development or simply to try them out without polluting your user profile. See the guix shell documentation for more information.