Comparison of vector, array, and fixed capacity vector Comparison of vector, array, and fixed capacity vector

A Fixed Capacity Vector in C++: Memory Layout

The first post in a series on implementing a FixedCapacityVector – a container that fills the gap between std::array and std::vector. We start with the raw storage: a byte buffer, alignment, and accessing it as typed memory.

June 23, 2026 · 6 min · Fabian Koehler