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