Export (0) Print
Expand All

<alg> move

Move elements associated with a specified range.

template<class InputIterator, class OutputIterator>
    OutputIterator move(
        InputIterator _First, 
        InputIterator _Last,
        OutputIterator _Dest
  );

_First

An input iterator that indicates where to start the range of elements to move.

_Last

An input iterator that indicates the end of a range of elements to move.

_Dest

The output iterator that is to contain the moved elements.

Returns an output iterator to the first element that was not moved.

The template function evaluates *(_Dest + N) = move(*(_First + N))) once for each N in the range [0, _Last - _First), for strictly increasing values of N starting with the lowest value. It then returns _Dest + N. If _Destand _First designate regions of storage, _Dest must not be in the range [_First, _Last).

Header: <algorithm>

Namespace: std

Show:
© 2014 Microsoft