C++ constexpr

Open-source C++ projects categorized as constexpr

Top 19 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. AppSignal

    Monitoring that respects your time & budget. APM, error tracking, and dashboards for modern web apps. Ten-minute setup, transparent flat pricing, and support from engineers who actually use the product.

    AppSignal 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

    Project mention: Building a compiler that works at compile-time so you can compile your program while you compile your program. | dev.to | 2026-07-29

    I built a (mostly) full-fledged C compiler that runs entirely in constexpr. Why? No idea. Especially considering it's been done before, you can check out constexpr-8cc. But that one lacks C++ bindings and cross-platform support.

  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. SaaSHub

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

    SaaSHub logo
  9. cthash

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

  10. lift

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

  11. constexpr-sql

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

  12. bitset2

    std::bitset with constexpr implementations plus additional features.

  13. bitpacker

    type-safe and low-boilerplate bit level serialization

  14. milo

    Cryptography library for modern C++.

  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. codlili

    Constexpr STL-style containers

  20. constyaml

    constexpr (strict)yaml parser

  21. SaaSHub

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

    SaaSHub logo
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

  • Building a compiler that works at compile-time so you can compile your program while you compile your program.

    2 projects | dev.to | 29 Jul 2026
  • 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
  • A note from our sponsor - AppSignal
    www.appsignal.com | 13 Oct 2026
    APM, error tracking, and dashboards for modern web apps. Ten-minute setup, transparent flat pricing, and support from engineers who actually use the product. 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,863
2 gcem 836
3 constexpr-8cc 814
4 daw_json_link 512
5 hof 509
6 uni-algo 334
7 snitch 318
8 cthash 238
9 lift 204
10 constexpr-sql 142
11 bitset2 127
12 bitpacker 127
13 milo 78
14 static_asm 31
15 uninttp 28
16 arby 9
17 enumerate 7
18 codlili 2
19 constyaml 2

Sponsored
Monitoring that respects your time & budget
APM, error tracking, and dashboards for modern web apps. Ten-minute setup, transparent flat pricing, and support from engineers who actually use the product.
www.appsignal.com

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