Namespaces
Variants
Views
Actions

std::array::fill

From cppreference.com
< cpp‎ | container‎ | array
Revision as of 22:16, 2 November 2012 by P12bot (Talk | contribs)

Template:ddcl list begin <tr class="t-dcl ">

<td >
void fill( const T& value );
</td>

<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> Template:ddcl list end

Assigns the given value value to all elements in the container.

Parameters

value - the value to assign to the elements

Return value

(none)

Complexity

linear in the size of the container