C++ constexpr

Open-source C++ projects categorized as constexpr

Top 20 C++ constexpr Projects

  1. compile-time-regular-expressions

    Compile Time Regular Expression in C++

    Project mention: Is Rust faster than C? | news.ycombinator.com | 2026-01-14

    Other examples are CTRE (https://github.com/hanickadot/compile-time-regular-expressio...) and format string compilation (https://fmt.dev/12.0/api/#compile-api). The closest C counterpart is re2c which also requires external tooling.

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. gcem

    A C++ compile-time math library using generalized constant expressions

  4. constexpr-8cc

    Compile-time C Compiler implemented as C++14 constant expressions

  5. hof

    Higher-order functions for c++ (by boostorg)

  6. uni-algo

    Unicode Algorithms Implementation for C/C++

  7. snitch

    Lightweight C++20 testing framework. (by snitch-org)

    Project mention: Snitch – a friendly netstat alternative for humans | news.ycombinator.com | 2025-12-22
  8. cthash

    constexpr implementation of SHA-2 and SHA-3 family of hashes

  9. lift

    constexpr C++17 library for simplifying higher order functions in application code (by rollbear)

  10. constexpr-sql

    Header only library that parses and plans SQL queries at compile time

  11. bitpacker

    type-safe and low-boilerplate bit level serialization

  12. bitset2

    std::bitset with constexpr implementations plus additional features.

  13. milo

    Cryptography library for modern C++.

  14. bit_set

    Rebooting the std::bitset franchise

  15. static_asm

    Header-only C++2x compile-time assembler for x86/x86-64 instruction encoding

    Project mention: Show HN: A header-only C++20 compile-time assembler for x86/x64 instructions | news.ycombinator.com | 2026-01-28
  16. uninttp

    A universal type for non-type template parameters for C++20 or later.

  17. arby

    Arbitrary precision arithmetic in C++, even at compile-time

  18. enumerate

    Header-only, single file, C++11 compatible version of `enumerate`. (by hipony)

  19. constyaml

    constexpr (strict)yaml parser

  20. codlili

    Constexpr STL-style containers

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

C++ constexpr discussion

Log in or Post with

C++ constexpr related posts

  • Implementing Regular Expressions in TypeScript Types (Badly)

    3 projects | news.ycombinator.com | 20 Oct 2024
  • Challenges creatinga lookup table class that instantiates at compile time and is stored in flash.

    1 project | /r/cpp_questions | 19 Jun 2023
  • What are thoughts on removing regular expression from the standard library?

    1 project | /r/cpp | 8 Jun 2023
  • Long switch statements. Is there a better way?

    2 projects | /r/cpp | 8 Mar 2023
  • Verify all characters are same except a few

    1 project | /r/cpp_questions | 9 Mar 2023
  • Constexpr regex parser!

    2 projects | /r/cpp | 14 Feb 2023
  • Constexpr implementation of SHA-2 and SHA-3 family of hashes

    1 project | /r/u_Sufficient-Dirt4517 | 7 Feb 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 18 Jul 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

What are some of the best open-source constexpr projects in C++? This list will help you:

# Project Stars
1 compile-time-regular-expressions 3,823
2 gcem 832
3 constexpr-8cc 813
4 hof 510
5 daw_json_link 509
6 uni-algo 326
7 snitch 313
8 cthash 238
9 lift 202
10 constexpr-sql 143
11 bitpacker 127
12 bitset2 127
13 milo 78
14 bit_set 47
15 static_asm 32
16 uninttp 28
17 arby 9
18 enumerate 7
19 constyaml 2
20 codlili 2

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

Did you know that C++ is
the 7th most popular programming language
based on number of references?