There’s a TCircularBuffer container:
They are a memory ring of fixed size capacity where new data overwrite the oldest.