svector
small_vector
svector | small_vector | |
---|---|---|
3 | 1 | |
95 | 46 | |
- | - | |
0.0 | 4.9 | |
6 months ago | about 1 month ago | |
C++ | C++ | |
MIT License | MIT License |
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.
svector
-
If you limit an std::string in a class to be < 15 characters, can you assume that any time the string is read it will stay on the stack due to SSO?
It would be possible to do a much more compact SSO, but I think they've done it this way for performance reason. E g. I've implemented a vector with SSO, and there i only have 1 byte overhead: https://github.com/martinus/svector
- GitHub - martinus/svector: Small Vector optimization
small_vector
-
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.
What are some alternatives?
refl-cpp - Static reflection for C++17 (compile-time enumeration, attributes, proxies, overloads, template functions, metaprogramming).
Simple-Utility
Magic Enum C++ - Static reflection for enums (to string, from string, iteration) for modern C++, work with any enum type without any macro or boilerplate code
au - A C++14-compatible physical units library with no dependencies and a single-file delivery option. Emphasis on safety, accessibility, performance, and developer experience.
Nameof C++ - Nameof operator for modern C++, simply obtain the name of a variable, type, function, macro, and enum
matchit.cpp - match(it): A lightweight single-header pattern-matching library for C++17 with macro-free APIs.
tomlplusplus - Header-only TOML config file parser and serializer for C++17.
lvc - Collection of C++ containers extracted from LLVM
entt - Gaming meets modern C++ - a fast and reliable entity component system (ECS) and much more
mp-units - The quantities and units library for C++
robin-hood-hashing - Fast & memory efficient hashtable based on robin hood hashing for C++11/14/17/20
small_vector - Small small_vector