Namespaces
Variants

std::ranges:: iota_view<W, Bound>:: sentinel

From cppreference.net
Ranges library
Range adaptors
struct /*sentinel*/ ;
( 설명 전용* )

ranges:: iota_view < W, Bound > :: sentinel ranges:: iota_view < W, Bound > end() 가 반환하는 도달 가능한 sentinel들의 타입입니다.

목차

데이터 멤버

멤버 정의
Bound bound_ 센티널 값
( 설명 전용 멤버 객체* )

멤버 함수

std::ranges::iota_view:: sentinel :: sentinel

/*sentinel*/ ( ) = default ;
(1) (C++20 이후)
constexpr explicit /*sentinel*/ ( Bound bound ) ;
(2) (C++20 이후)
1) bound_ 를 값 초기화합니다.
2) bound_ bound 로 초기화합니다.

비멤버 함수

operator== (std::ranges::iota_view:: iterator , std::ranges::iota_view:: sentinel )

friend constexpr bool operator == ( const /*iterator*/ & x,
const /*sentinel*/ & y ) ;
(C++20 이후)

x. value_ == y. bound_ 을 반환합니다.

!= 연산자는 합성된 operator== 에서 생성됩니다.

이 함수는 일반적인 비한정 또는 한정 조회 에는 보이지 않으며, sentinel 이 인자의 연관 클래스일 때만 인자 종속 조회 를 통해 찾을 수 있습니다.

operator- (std::ranges::iota_view:: iterator , std::ranges::iota_view:: sentinel )

friend constexpr std:: iter_difference_t < W >

operator - ( const /*iterator*/ & x, const /*sentinel*/ & y )

requires std:: sized_sentinel_for < Bound, W > ;
(1) (since C++20)
friend constexpr std:: iter_difference_t < W >

operator - ( const /*sentinel*/ & x, const /*iterator*/ & y )

requires std:: sized_sentinel_for < Bound, W > ;
(2) (since C++20)
1) x.value_ - y.bound_ 를 반환합니다.
2) -(y.value_ - x.bound_) 를 반환합니다.

이 함수들은 일반적인 비한정 이름 검색 이나 한정 이름 검색 으로는 보이지 않으며, sentinel 이 인자들의 연관 클래스일 때만 인자 종속 이름 검색 에 의해 찾을 수 있습니다.

예제