Namespaces
Variants

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

From cppreference.net
Ranges library
Range adaptors
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)