Range-v3
Range algorithms, views, and actions for the Standard Library
ranges::views::counted_fn Struct Reference

Public Member Functions

template<typename I >
requires input_or_output_iterator<I> && (!random_access_iterator<I>)
counted_view< I > operator() (I it, iter_difference_t< I > n) const
 
template<typename I >
requires random_access_iterator<I>
subrange< I > operator() (I it, iter_difference_t< I > n) const
 

Related Functions

(Note that these are not member functions.)

constexpr counted_fn counted {}