
On Mon, Oct 10, 2011 at 10:18 AM, Matt Calabrese <rivorus@gmail.com> wrote:
On Sun, Oct 9, 2011 at 1:59 PM, Andrew Hundt <athundt@gmail.com> wrote:
On Sun, Aug 14, 2011 at 5:55 AM, Andrew Hundt <athundt@gmail.com> wrote:
I've implemented a small companion class to boost.array that functions like a stack allocated vector with fixed capacity. The motivation for this class came when I was using boost.array in an interprocess library, when I realized that I actually desired an adjustable size boost.array, without the complexity of the vector class in the interprocess library. The result is StaticVector, which is boost.array directly modified with a size in front of the array, and added facilities to match std::vector.
The Implementation is available at: https://github.com/ahundt/Boost.StaticVector
I believe there is interest -- in fact, there's already such a library in the review queue. It's Thorsten Ottosen's AutoBuffer library.
I had thought that was slightly different. I may be misremembering, but I had thought StaticVector has a statically-determined maximum size, while AutoBuffer is something like a variant< StaticVector, std::vector >... - Jeff