Array.popFront

Advance to the next element in the array. The user must check that the array isn't empty, prior to calling this function.

Complexity: O(1).

struct Array(T)
@nogc nothrow pure @safe
void
popFront
()

Examples

auto stuff = [1, 2, 3];
auto a = Array!int(stuff);
size_t i = 0;
while (!a.empty)
{
    assert(a.front == stuff[i++]);
    a.popFront;
}
assert(a.empty);

Meta