boostorg/hana
Your standard library for metaprogramming observed · 2026-08-28
Health v2 · maintenance only
66/100
- Activity 97
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4491
- days_rel: n/a
- days_push: 21
- n_releases_24m: 0
Adoption not part of the score
1852 stars · 224 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Boost.Hana is a header-only C++14 metaprogramming library providing a standard library for computations on both types and values, including heterogeneous sequences, algorithms, and compile-time introspection. It is part of Boost and requires no external dependencies.
Use cases
- manipulate heterogeneous tuples at compile time in C++
- perform type-level computations with normal C++ syntax
- check expression validity without SFINAE tricks
- unroll loops at compile time
- introspect user-defined struct members
- replace MPL/Fusion-style metaprogramming with a modern API
When to choose
- you need compile-time computations on types and values in C++14 or later
- you want a header-only, dependency-free metaprogramming library
- you want to unify value and type computations in one API
When to avoid
- your codebase is limited to C++11-only compilers without full C++14 support
- you only need simple constexpr utilities that don't justify a metaprogramming library
- compile times are extremely critical and heavy template instantiation is unacceptable
Facets
library · maturity stable
serialization developer-tools programming-languages developer-tools cpp cross-platform metaprogramming header-only cpp14 cpp11 boost compile-time type-level-programming constexpr algorithms
2 sources
- readme: https://github.com/boostorg/hana · fetched 2026-08-28 · 94bdd504cb5b
- homepage: http://boostorg.github.io/hana · fetched 2026-08-29 · 28d3e72469c5
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| boostorg/hana | main | 66 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem