Namespaces
Variants

std::ranges::enumerate_view<V>:: iterator

From cppreference.net
Ranges library
Range adaptors
template < bool Const >
class /*iterator*/
(C++23부터)
( 설명 전용* )

반환 타입은 enumerate_view::begin 의 경우와, 기본 뷰 V common_range 일 때 enumerate_view::end 의 경우입니다.

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

목차

멤버 타입

멤버 타입 정의
Base (private) const V 만약 Const true 인 경우, 그렇지 않으면 V .
( 설명 전용 멤버 타입* )
iterator_category std::input_iterator_tag
iterator_concept
difference_type ranges:: range_difference_t < Base >
value_type std:: tuple < difference_type, ranges:: range_value_t < Base >>
reference-type (private) std:: tuple < difference_type, ranges:: range_reference_t < Base >>
( 설명 전용 멤버 타입* )

데이터 멤버

멤버 이름 정의
current_ (private) ranges:: iterator_t < Base > 타입의 현재 요소에 대한 반복자
( 설명 전용 멤버 객체* )
pos_ (private) difference_type 타입의 현재 인덱스
( 설명 전용 멤버 객체* )

멤버 함수

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

비멤버 함수

기본 반복자를 비교함
(함수)
반복자 연산을 수행함
(함수)
(C++23)
기본 반복자를 역참조한 결과를 해당 rvalue 참조 타입으로 변환함
(함수)

예제

참조문헌

  • C++23 표준 (ISO/IEC 14882:2024):
  • 26.7.23.3 클래스 템플릿 enumerate_view::iterator [range.enumerate.iterator]