Namespaces
Variants

std::ranges::chunk_view<V>:: iterator

From cppreference.net
Ranges library
Range adaptors
std::ranges::chunk_view
Member functions
Classes for input_range s
Deduction guides
outer-iterator
outer-iterator ::value_type
inner-iterator
template < bool Const >
class /*iterator*/
(C++23부터)
( 설명 전용* )

chunk_view::begin 의 반환 타입, 그리고 chunk_view::end 의 반환 타입(기반 뷰 V common_range 인 경우).

V forward_range 를 모델로 할 때만 제공됩니다.

/*iterator*/ < true > 타입은 const 한정 오버로드에 의해 반환됩니다. /*iterator*/ < false > 타입은 non-const 한정 오버로드에 의해 반환됩니다.

목차

멤버 타입

멤버 타입 정의
Parent (private) const chunk_view 만약 Const true 인 경우, 그렇지 않으면 chunk_view .
( 설명 전용 멤버 타입* )
Base (private) const V 만약 Const true 인 경우, 그렇지 않으면 V .
( 설명 전용 멤버 타입* )
iterator_category std:: input_iterator_tag
iterator_concept
value_type decltype ( views:: take ( ranges:: subrange ( current_, end_ ) , n_ ) ) ; .
difference_type ranges:: range_difference_t < Base >

데이터 멤버

멤버 이름 정의
current_ (private) ranges:: iterator_t < Base > , 기본 시퀀스의 현재 청크 첫 번째 요소에 대한 반복자를 보유함 (즉, 청크의 시작).
( 설명 전용 멤버 객체* )
end_ (private) ranges:: sentinel_t < Base > , 기본 시퀀스의 끝에 대한 센티널을 보유함.
( 설명 전용 멤버 객체* )
n_ (private) ranges:: range_difference_t < Base > , 청크 내 초기 요소 수를 보유함 (마지막 청크는 더 작을 수 있음).
( 설명 전용 멤버 객체* )
missing_ (private) ranges:: range_difference_t < Base > , 일반적으로 ranges:: advance ( current_, n_, end_ ) ; 와 동일함.
( 설명 전용 멤버 객체* )

멤버 함수

반복자를 생성함
(public member function)
현재 요소에 대한 반복자를 반환함
(public member function)
요소에 접근함
(public member function)
인덱스로 요소에 접근함
(public member function)
기본 반복자를 전진시키거나 후퇴시킴
(public member function)

비멤버 함수

기본 반복자들을 비교합니다
(함수)
반복자 연산을 수행합니다
(함수)

예제

참고문헌

  • C++23 표준 (ISO/IEC 14882:2024):
  • 26.7.28.7 전방 범위를 위한 클래스 템플릿 chunk_view::iterator [range.chunk.fwd.iter]

참고 항목

웹페이지의 텍스트를 한국어로 번역합니다: HTML 태그나 속성은 번역하지 마십시오. 원래 형식을 유지하십시오. ,
,  태그 내부의 텍스트는 번역하지 마십시오.
C++ 관련 용어는 번역하지 마십시오. 정확성과 전문성이 요구됩니다.