Replaces this pointer’s initialized memory with the specified number of instances from the given pointer’s memory.
- Xcode 8.0+
- Swift Standard Library
A pointer to at least
countinitialized instances of type
Pointee. The memory regions referenced by
sourceand this pointer may overlap.
The number of instances to copy from the memory referenced by
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 initialized or
Pointee must be a trivial type. After calling
assign(from:, the region is initialized.