small_vector
A fully featured single header library implementing a vector container with a small buffer optimization. (by gharveymn)
small_vector
Small small_vector (by KonanM)
small_vector | small_vector | |
---|---|---|
1 | 2 | |
35 | 29 | |
- | - | |
6.6 | 0.0 | |
3 months ago | almost 4 years ago | |
C++ | C++ | |
MIT License | The Unlicense |
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.
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 2022-09-10.
-
I made an #include-less version of std::vector, supporting resize_and_overwrite()
I have a bit silly implementation of small vector using a custom allocator for std::vector https://github.com/KonanM/small_vector
-
std::forward_list vs std::vector compiler optimizations
For just a small experiment you could give my minimal small vector implementation a try. https://github.com/KonanM/small_vector/blob/master/include/small_vector/small_vector.h
What are some alternatives?
When comparing small_vector and small_vector you can also consider the following projects:
lvc - Collection of C++ containers extracted from LLVM
less - `#include`-less implementation of `std::vector`
mp-units - The quantities and units library for C++
svector - Compact SVO optimized vector for C++17 or higher
matchit.cpp - match(it): A lightweight single-header pattern-matching library for C++17 with macro-free APIs.
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.
Simple-Utility