I’ve been trying to remember this and it’s driving me crazy.
Basically, it’s like a small array, of let’s say size five, and as you add items it starts to fill up. When it’s full, and you add a new item, the oldest one (first added) is removed.
You can access the values by something like variable[0], variable[1] etc, where variable [0] is the oldest value, and variable 4 the newest.
Any ideas on what this is called? Is it a standard C++ type, or did I just see it somewhere as a custom class?
Boost Circular Buffer
http://www.boost.org/doc/libs/1_46_1/libs/circular_buffer/doc/circular_buffer.html
From the Boost docs: