# std::experimental::ranges::Range

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

Given an lvalue t of type std::remove_reference_t<T>, Range<T> is satisfied only if

## Official Specification Summary (cppreference)

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

template< class T >
concept bool Range =
    requires(T&& t) {
        ranges::begin(t); /* not necessarily equality-preserving (see below) */
        ranges::end(t);
    }; // (ranges TS)
```

Given an lvalue `t` of type `std::remove_reference_t<T>`, `Range<T>` is satisfied only if

- `[ranges::begin(t),` `ranges::end(t))` denotes a range; and
- both `ranges::begin(t)` and `ranges::end(t)` are amortized constant time and non-modifying.
- If `ranges::iterator_t<T>` satisfies `ForwardIterator`, `ranges::begin(t)` is equality preserving.

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