std:: move_sentinel
From cppreference.net
C++
Iterator library
| Iterator concepts | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Iterator primitives | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Algorithm concepts and utilities | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Indirect callable concepts | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Common algorithm requirements | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Utilities | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Iterator adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::move_sentinel
|
헤더 파일에 정의됨
<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)
|
기본 센티넬
( 설명 전용 멤버 객체* ) |
비멤버 함수
|
(C++20)
|
기본 반복자와 기본 센티널을 비교함
(함수 템플릿) |
|
(C++20)
|
기본 반복자와 기본 센티널 사이의 거리를 계산함
(함수 템플릿) |
예제
|
이 섹션은 불완전합니다
이유: 예제가 없음 |
참고 항목
|
(C++11)
|
역참조 시 rvalue를 반환하는 반복자 어댑터
(클래스 템플릿) |