fill_n function template — Fills a counted range with copies of a value
template<typename OutIter, typename Size, typename T>
void fill_n(OutIter first, Size n, const T& value);
The fill_n
function
template assigns value
to
successive items in the destination range, starting at first
and assigning exactly n
items.
The Size
template parameter
must be convertible to an integral type.