move_sentinel

move_sentinel (이동 센티널)

std::move_sentinelmove_iterator와 짝을 이루는 센티널(sentinel) 어댑터예요. 반복자와 센티널을 상수 시간에 비교할 수 있게 해요.

출처: cppreference

본문

std::move_sentinel은 센티널을 move_iterator에 맞게 감싸요.

template< class S >
class move_sentinel;

iter_move와 함께 사용해 이동만 하는 범위 연산을 돕는 데 쓰여요.

더 알아보기 (Learn more)

cppreference