Contents

insert(moving:at:)

Moves the elements of a fully initialized buffer into this array, starting at the specified position, and leaving the buffer uninitialized.

Declaration

mutating func insert(moving items: UnsafeMutableBufferPointer<Element>, at index: Int)

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 elements, then this reallocates storage to extend its capacity, using a geometric growth rate.