Function Vector.moveBack

Move of the last element in the vector and return it.

Vector.ElementType moveBack() scope;

Examples

auto vec = Vector!(int, 10).build(1, 2, 3);

assert(vec.moveBack == 3);
assert(vec == [1, 2, 0]);