append(moving:)
Moves the elements of a buffer to the end of this array, leaving the buffer uninitialized.
Declaration
mutating func append(moving items: UnsafeMutableBufferPointer<Element>)Parameters
- items:
A fully initialized buffer whose contents to move into the array.
Discussion
If the array does not have sufficient capacity to hold all items in the buffer, then this reallocates the array’s storage to grow its capacity, using a geometric growth rate.