# std::experimental::ranges::iterator_t, std::experimental::ranges::sentinel_t

> C++ Atlas: `cppatlas.com/w/cpp/experimental/ranges/range/iterator_t` | Source: https://en.cppreference.com/w/cpp/experimental/ranges/range/iterator_t | Domain: Technical specifications

Obtain the iterator and sentinel types of a range T.

## Official Specification Summary (cppreference)

```cpp
// Defined in header <experimental/ranges/range>

template< class T >
using iterator_t = decltype(ranges::begin(std::declval<T&>())); // (1) (ranges TS)

template< class T >
using sentinel_t = decltype(ranges::end(std::declval<T&>())); // (2) (ranges TS)
```

Obtain the iterator and sentinel types of a range `T`.

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