|
fill_nfunction template
<algorithm> template < class OutputIterator, class Size, class T > void fill_n ( OutputIterator first, Size n, const T& value ); Fill sequence with value Sets value to the first n elements in the sequence pointed by first.The behavior of this function template is equivalent to:
Parameters
Return valuenoneExample
Output:
ComplexityLinear: Performs n assignment operations.See also
|