Returns the first element and advances the range.
If range has lvalue elements, then $(D_PSYMBOL getAndPopFront) returns by reference, otherwise the returned element is copied.
Input range type.
Input range.
Front range element.
int[3] array = [1, 2, 3]; auto slice = array[]; assert(getAndPopFront(slice) == 1); assert(slice.length == 2);
$(D_PSYMBOL getAndPopBack).
See Implementation
Returns the first element and advances the range.
If range has lvalue elements, then $(D_PSYMBOL getAndPopFront) returns by reference, otherwise the returned element is copied.