Namespaces
Variants

std:: move_sentinel

From cppreference.net
Iterator library
Iterator concepts
Iterator primitives
Algorithm concepts and utilities
Indirect callable concepts
Common algorithm requirements
(C++20)
(C++20)
(C++20)
Utilities
(C++20)
Iterator adaptors
Range access
(C++11) (C++14)
(C++14) (C++14)
(C++11) (C++14)
(C++14) (C++14)
(C++17) (C++20)
(C++17)
(C++17)
헤더 파일에 정의됨 <iterator>
template < std:: semiregular S >
class move_sentinel ;
(C++20부터)

std::move_sentinel std::move_iterator 와 함께 범위를 표시하는 데 사용되는 센티넬 어댑터입니다.

목차

템플릿 매개변수

S - 기본 감시자(sentinel)의 타입

멤버 함수

새로운 move_sentinel 을 생성합니다
(public member function)
move_sentinel 의 내용을 다른 move_sentinel 에 할당합니다
(public member function)
기본 센티널의 복사본을 반환합니다
(public member function)

멤버 객체

멤버 이름 정의
last (private) 기본 센티넬
( 설명 전용 멤버 객체* )

비멤버 함수

기본 반복자와 기본 센티널을 비교함
(함수 템플릿)
기본 반복자와 기본 센티널 사이의 거리를 계산함
(함수 템플릿)

예제

참고 항목

역참조 시 rvalue를 반환하는 반복자 어댑터
(클래스 템플릿)