Namespaces
Variants

std::ranges::cartesian_product_view<First, Vs...>:: iterator

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

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

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

목차

멤버 타입

멤버 정의
Parent (private) maybe-const  < Const, ranges:: cartesian_product_view >>
( 설명 전용 멤버 타입* )
iterator_category std:: input_iterator_tag
iterator_concept
value_type std:: tuple < ranges:: range_value_t < /*maybe-const*/ < Const, First >> ,
ranges:: range_value_t < /*maybe-const*/ < Const, Vs >> ... > ;
reference std:: tuple < ranges:: range_reference_t < /*maybe-const*/ < Const, First >> ,
ranges:: range_reference_t < /*maybe-const*/ < Const, Vs >> ... > ;
difference_type 구현 정의 부호 있는 정수형 타입 (아마도 가장 작은 타입), 모든 기반 범위의 최대 크기들의 곱을 저장하기에 충분히 넓은 타입이 존재하는 경우.

데이터 멤버

멤버 정의
Parent* parent_ (private) 부모 객체에 대한 포인터 cartesian_product_view
( 설명 전용 멤버 객체* )
current_ (private) 현재 기저 요소들에 대한 반복자의 튜플, 타입: std:: tuple < ranges:: iterator_t < /*maybe-const*/ < Const, First >> ,
ranges:: iterator_t < /*maybe-const*/ < Const, Vs >> ... >
( 설명 전용 멤버 객체* )

멤버 함수

반복자를 생성합니다
(public member function)
요소에 접근합니다
(public member function)
인덱스로 요소에 접근합니다
(public member function)
기본 반복자를 전진시키거나 후퇴시킵니다
(public member function)
반복자를 전진시킵니다
( 설명 전용 멤버 함수* )
반복자를 후퇴시킵니다
( 설명 전용 멤버 함수* )
두 반복자 사이의 거리를 반환합니다
( 설명 전용 멤버 함수* )

비멤버 함수

기본 반복자를 비교함
(함수)
반복자 연산을 수행함
(함수)
(C++23)
기본 반복자를 역참조한 결과를 해당 rvalue 참조 타입으로 캐스팅함
(함수)
(C++23)
기본으로 가리키는 요소들을 교환함
(함수)

예제

참조문헌

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

참고 항목

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