Vector.moveBack

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

struct Vector
scope
moveBack
()
()

Examples

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

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

Meta