# std::experimental::ranges::InputIterator

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

The InputIterator concept is a refinement of Iterator, adding the requirement that the referenced values can be read (via Readable) and the requirement that the iterator category tag be present.

## Official Specification Summary (cppreference)

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

template< class I >
concept bool InputIterator =
    Iterator<I> && Readable<I> &&
    requires { typename ranges::iterator_category_t<I>; } &&
    DerivedFrom<ranges::iterator_category_t<I>, ranges::input_iterator_tag>; // (ranges TS)
```

The `InputIterator` concept is a refinement of `Iterator`, adding the requirement that the referenced values can be read (via `Readable`) and the requirement that the iterator category tag be present.

### Notes

Unlike the input iterator requirements in the C++ standard, `InputIterator` in the Ranges TS does not require `EqualityComparable`.

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