다음을 통해 공유


<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.

설명

템플릿 함수는 [0, _First 범위의 N 각 *(_Dest + N) = move(*(_Last + N))) 를 평가합니다. - _First), 가장 낮은 값에서 시작하는 N 의 엄격하게 증가하는 값입니다. It then returns _Dest + N. If _Destand _First designate regions of storage, _Dest must not be in the range [_First, _Last).

요구 사항

헤더: <algorithm>

네임스페이스: std

참고 항목

참조

<algorithm>

표준 템플릿 라이브러리