Boost 1.58 has just been released, and the Container library has a small_vector class based on LLVM SmallVector .
There is also a static_vector that cannot exceed the originally specified size. Both containers have only a header.
The facebook folly library also contains some amazing containers.
It has a small_vector that can be customized using a template parameter to act like boost static or small . It can also be configured to use small integer types for its internal bookkeeping, which, provided that they are facebook, is not surprising :)
Work has been done on creating a cross-platform library, so Windows / MSVC support should land someday ...
onqtam Apr 17 '15 at 10:47 2015-04-17 10:47
source share