Namespaces
Variants
Views
Actions

std::array<T,N>::fill

From cppreference.com
< cpp‎ | container‎ | array
void fill( const T& value );
(since C++11)
(until C++20)
constexpr void fill( const T& value );
(since C++20)

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.