Namespaces
Variants

std::ranges::cartesian_product_view<First, Vs...>::iterator<Const>::operator[]

cppreference.net에서
 
 
Ranges 라이브러리
범위 어댑터
 
 
constexpr reference operator[]( difference_type n ) const
    requires /*cartesian-product-is-random-access*/<Const, First, Vs...>;
(C++23부터)

지정된 상대 위치의 요소를 반환합니다. 다음과 동일: return *((*this) + n);.

매개변수

n - 현재 위치 기준 상대 위치

반환값

현재 위치로부터 변위 n 만큼 떨어진 요소.

예제

참고 항목

(C++23)
요소에 접근합니다
(public member function)