Input range type.
Output range type.
Source input range.
Target output range.
target range, whose front element is the one past the last element copied.
Precondition: target should be large enough to accept all source elements.
import std.algorithm.comparison : equal; const int[2] source = [1, 2]; int[2] target = [3, 4]; copy(source[], target[]); assert(equal(source[], target[]));
Copies the source range into the target range.