fill_n

The function fill_n is used to fill a number of elements with a specified value.

  template<class OutputIterator, 
  class Size, class T>
  void fill_n
  (OutputIterator first, Size n, const T& value);
  
Remarks

There is no return value.