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.
value | - | the value to assign to the elements |
(none).
Linear in the size of the container.
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/container/array/fill