# std::ranges::zip_view<Views...>::iterator<Const>::operator[]

> C++ Atlas: `cppatlas.com/w/cpp/ranges/zip_view/iterator/operator_at` | Source: https://en.cppreference.com/w/cpp/ranges/zip_view/iterator/operator_at | Domain: Ranges | Standards: C++23

Obtains a std::tuple that consists of underlying pointed-to elements at given offset relative to current location.

## Official Specification Summary (cppreference)

```cpp
constexpr auto operator[]( difference_type n ) const
    requires /*all-random-access*/<Const, Views...>; // (since C++23)
```

Obtains a `std::tuple` that consists of underlying pointed-to elements at given offset relative to current location.

Equivalent to:

```cpp
return /*tuple-transform*/([&]<class I>(I& i) -> decltype(auto) {
           return i[iter_difference_t<I>(n)];
       }, current_);
```

### Parameters

- `n` - position relative to current location

### Return value

The obtained tuple-like element.

### Example

> Note: This section is incomplete Reason: no example

---
Attribution: content from https://en.cppreference.com/w/cpp/ranges/zip_view/iterator/operator_at (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.