Circular buffer: Difference between revisions

Content deleted Content added
Add banner {{Cleanup bare URLs}}. After at least 7 passes by @Citation bot since 20220821, this article still has 1 untagged bare URL ref
Tag: Reverted
Line 37:
:[[Image:Circular buffer - X789ABX.svg|250px]]
 
== UsesUseseeee ==
The useful property of a circular buffer is that it does not need to have its elements shuffled around when one is consumed. (If a non-circular buffer were used then it would be necessary to shift all elements when one is consumed.) In other words, the circular buffer is well-suited as a [[FIFO (computing and electronics)|FIFO]] (''first in, first out'') buffer while a standard, non-circular buffer is well suited as a [[LIFO (computing)|LIFO]] (''last in, first out'') buffer.