std::counted_iterator Defined in header<iterator> template<std::input_or_output_iteratorI> classcounted_iterator; (since C++20) std::counted_iteratoris an iterator adaptor which behaves exactly like the underlying iterator, except that it keeps track of the distance to the end of its range. ...
Defined in header <iterator> template< std::input_iterator I > requires /* see below */ struct iterator_traits<std::counted_iterator<I>> : std::iterator_traits<I> { using pointer = std::conditional_t<std::contiguous_iterator<I>, std::add_pointer_t<std::iter_reference_t<I>>, ...