fn() arrayCopyForwardCopies a range of objects into another range of objects starting from the first element.
Copies a range of objects into another range of objects starting from the first element.
Defined in | <seqan/basic.h> |
---|---|
Signature |
void arrayCopyForward(sourceBegin, sourceEnd, target);
|
Parameters
sourceEnd
|
Iterator behind the last element of the source array. sourceEnd must have the same type as sourceBegin. |
---|---|
sourceBegin
|
Iterator to the first element of the source array. |
target
|
Iterator to the first element of the target array. The target capacity should be at least as long as the source range. |
Detailed Description
Be careful if source and target range overlap, because in this case some source elements could be accidently overwritten before they are copied.
If there is no need for the source elements to persist, consider to use arrayMoveForward instead to improve performance.
Data Races
Thread safety unknown!