Moves instances from initialized source memory into the uninitialized memory referenced by this pointer, leaving the source memory uninitialized and the memory referenced by this pointer initialized.
- Xcode 8.0+
- Swift Standard Library
A pointer to the values to copy. The memory region
source..<(source + count)must be initialized. The memory regions referenced by
sourceand this pointer may overlap.
The number of instances to move from
sourceto this pointer’s memory.
countmust not be negative.
The region of memory starting at this pointer and covering
count instances of the pointer’s
Pointee type must be uninitialized or
Pointee must be a trivial type. After calling
move, the region is initialized and the memory region
source..<(source + count) is uninitialized.