Function StaticRingBuffer.popFront

Removes and destroys the front element.

void popFront();

Preconditions

The buffer is not empty.

Complexity

O(1).

Example

StaticRingBuffer!(int, 2) buffer;
assert(buffer.tryPushBack(1));
assert(buffer.tryPushBack(2));
buffer.popFront();
assert(buffer.front == 2);