Collaboration diagram for Copying:
Copying | |
(OLBidirectionalIterator *) | + copyBackwardFrom:to:destination: |
Copy elements. | |
(OLForwardIterator *) | + copyFrom:to:destination: |
Copy elements. |
Simple algorithms for copying elements from one range to another.
+ (OLBidirectionalIterator*) copyBackwardFrom: | (OLBidirectionalIterator *) | first | ||
to: | (OLBidirectionalIterator *) | last | ||
destination: | (OLBidirectionalIterator *) | dest | ||
Copy elements.
The range [first, last)
is traversed from the end to the beginning, and each element is assigned to its corresponding position in the sequence suggested by dest. That is, dest represents the position one beyond the last element of the target range. An iterator pointing to the first element of the target range is returned.
[first, last)
and [result, dest)
where result is the iterator returned by this message.If OpenStep is present the returned object will be autoreleased before being returned.
first | the first in the range of elements to copy | |
last | one position beyond the last in the range of elements to copy | |
dest | the iterator one position beyond the end of the destination range |
+ (OLForwardIterator*) copyFrom: | (OLForwardIterator *) | first | ||
to: | (OLForwardIterator *) | last | ||
destination: | (OLForwardIterator *) | dest | ||
Copy elements.
The range [first, last)
is traversed from the beginning to the end, and each element is assigned to its corresponding position in the sequence suggested by dest. An iterator pointing to the last element of the target range is returned.
[first, last)
and [dest, result)
where result is the iterator returned by this message.If OpenStep is present the returned object will be autoreleased before being returned.
first | the first in the range of elements to copy | |
last | one position beyond the last in the range of elements to copy | |
dest | the iterator at the beginning of the destination range |
|