std::array::fill

From cppreference.com
void fill( const T& value );
(since C++11)

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

[edit] Parameters

value - the value to assign to the elements

[edit] Return value

(none)

[edit] Complexity

linear in the size of the container