mp
C++17 ~~Template~~ Meta-Programming library (by boost-ext)
te
C++17 Run-time polymorphism (type erasure) library (by boost-ext)
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
mp
Posts with mentions or reviews of mp.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-09-08.
-
Compile-Time 'Fun' with Std.ranges
C++20 allows to `almost` natively use std.ranges for template meta-programming. Idea explored at - https://github.com/boost-ext/mp.
-
[C++20] Write meta-function once using STL apply to types/values/tuples/fixed_string/...
C++ enables new way of Template Meta-Programming where STL can be used. Some of its' power might be found in https://github.com/boost-ext/mp.
-
How to filter tuple at compile time, by values of its elements (instead of types) ?
With mp (https://github.com/boost-ext/mp) you can use std::ranges to do it to
- [C++20] New way of meta-programming?
- New Way of Meta-Programming?
te
Posts with mentions or reviews of te.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-04-07.
-
rust-like traits on plain C++ with short macro (type erasure actually)
Or dyno or Poly or Not-Actually-Boost.TE or ...
-
C++ Polymorphism Without Inheritance Using Glaze
https://github.com/boost-ext/te Boost TE ("unnoficial boost project")
-
[C++20] New way of meta-programming?
https://github.com/boost-ext/te (for SBO performance and type.erasure call syntax)
-
Type Erasure in C++ Explained
And if it were in the standard there wouldn't be at least five well known libraries implementing it (including from Adobe and from Facebook): https://github.com/boost-ext/te#similar-libraries
As far as I know (I don't really follow the committee work) the latest attempt to introduce run-time duck-typing in the standard was https://github.com/andyprowl/virtual-concepts, which seems dead.
What are some alternatives?
When comparing mp and te you can also consider the following projects:
ut - C++20 μ(micro)/Unit Testing Framework
dyno - Runtime polymorphism done right