A hypothetical iota_n
std::iota_n(first, count, value)
can be replaced by a one liner.
std::generate_n(first, count, [v=value]()mutable{return v++;})
I prefer this to have a lingering function that is not in the standard. Having said that, I think a std::iota_n should be in the standard.