fill_n

fill_n

template<class OutIt, class Size, class T>
    void fill_n(OutIt first, Size n, const T& x);

The template function evaluates *(first + N) = x once for each N in the range [0, n).