Boost:CircularBuffer
lastmod 2026-11-10created 2016-12-302 edits
Boost.Circular Buffer is a Boost C++ library that provides a fixed-size circular buffer with an STL container interface. When the buffer is full, it overwrites the oldest element, which makes it suitable for keeping only the most recent N items. It provides circular_buffer and circular_buffer_space_optimized, which grows its capacity as needed.