small_vector
A fully featured single header library implementing a vector container with a small buffer optimization. (by gharveymn)
mp-units
The quantities and units library for C++ (by mpusz)
small_vector | mp-units | |
---|---|---|
1 | 14 | |
40 | 1,049 | |
- | - | |
6.6 | 9.8 | |
7 months ago | 1 day ago | |
C++ | C++ | |
MIT License | MIT License |
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.
small_vector
Posts with mentions or reviews of small_vector.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-04-12.
-
std::forward_list vs std::vector compiler optimizations
Hey, if you were still shopping around, you could give my implementation a shot. Note that it does not have the decoupled buffer feature as you mentioned below, but it is quite richly featured. Fair warning, if you do use this you are a tester, as I haven't found the time to write very many tests yet.
mp-units
Posts with mentions or reviews of mp-units.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-06.
-
What's the point of std:monostate? You can't do anything with it
There is indeed a units library [0] aiming for standardisation in C++29.
[0] https://github.com/mpusz/mp-units
-
Is it just mean, or is C# easier to learn than JavaScript or even PHP?
It's not the type system you're complaining about, though. It takes a bit of work but you can write types that include units information with no loss of performance.
-
I'm a beginner making a library for unit conversion, contributions are welcome
I recommend using this as reference https://github.com/mpusz/units it probably solves the same or similar problem.
-
Why is this piece of code compiling with char as c-tor argument?
Yep. And there are some libraries to provide strong-type int, depending on what you need: type_safe or even units.
-
C++'s smaller cleaner language
Indeed you cannot. Then again, you couldn't write a library like fmtlib in C in the first place. I mean why do you complain about C++ features which enable you to write libraries you otherwise couldn't? How would you expect to implement equivalent libraries to EVE or mp-units in C alone?
-
I got curious about units of measure in programming languages so I recreated xkcd/687.
How does it compare with https://github.com/mpusz/units ?
-
C++ for Mathematicians
I don't have a book to recommend, but I have a fantastic library: https://github.com/mpusz/units
- Cheatsheet for the C++ core guidelines (philosophy)
- Compile-time C++ library for compile-time dimensional analysis, units/quantities
-
Please Put Units in Names
Good C++ library for that topic is [0]. You can even go further and combine with something like [1] which is super helpful for kalman filters and other stuff where you have heterogeneous units in one vector.
[0] https://github.com/mpusz/units
What are some alternatives?
When comparing small_vector and mp-units you can also consider the following projects:
Simple-Utility
awesome-hpp - A curated list of awesome header-only C++ libraries