Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

std::experimental::ranges::InputIterator

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.

NotebookLM
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.

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.