std::array::fill - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::array::fill

From cppreference.com
< cpp‎ | container‎ | array

[edit template]

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

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/container/array/fill&oldid=50438"