Function RingBuffer.clear
Destroys all live elements while retaining the backing allocation.
void clear();
Effects
Leaves the buffer empty with unchanged capacity and invalidates all previously borrowed element references and segment slices.
Allocation
None.