Vector.insertBack

Inserts value to the front or back of the container. stuff can be a value convertible to T or a range of objects convertible to T. The stable version behaves the same, but guarantees that ranges iterating over the container are never invalidated.

struct Vector(T, ALLOC = ThreadMem)
pragma(inline, true)
size_t
insertBack
(
Stuff
)
(
auto ref Stuff stuff
)

Return Value

Type: size_t

The number of elements inserted

Complexity: O(m * log(n)), where m is the number of elements in stuff

Meta