CircularBuffer.dup

Makes a deep(er) duplicate of the container.

struct CircularBuffer(T, Flag!"dynamic" dynamic = No.dynamic, size_t originalSize = 16)
dup
()
if (
originalSize > 1
)

Return Value

Type: auto

A copy of the current container with the internal buffer explicitly .duped.