It has to be iota(0, 10) after all, as Pavel pointed out. Thank you.
 

-----Ursprüngliche Nachricht-----
Von: Pavel Vazharov <freakpv@gmail.com>
Gesendet: Mo 23.10.2023 12:09
Betreff: Re: [std-proposals] for ( repeat_count )

Doesn't `iota(10)` mean that it will start from 10 and produce unbounded numbers?
Or I'm misunderstanding the documentation and the examples below (with the the iota_view and take_view) - https://en.cppreference.com/w/cpp/ranges/iota_view?