move_iterator

move_iterator (이동 반복자)

std::move_iterator는 역참조 시 요소를 rvalue로 돌려줘 이동을 유도하는 반복자 어댑터예요.

출처: cppreference

본문

std::move_iterator*itrvalue 참조로 반환해 이동을 유도해요.

template< class Iter >
class move_iterator;

std::copy 대신 std::move를 할 때처럼 요소를 이동시킬 때 사용해요.

더 알아보기 (Learn more)

cppreference