[#absl-c_fill_n] = xref:absl.adoc[absl]::c_fill_n :relfileprefix: ../ :mrdocs: Container‐based version of the <algorithm> `std::fill_n()` function to fill the first N elements in a container with some value. == Synopsis Declared in `<absl/algorithm/container.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename C, typename Size, typename T> constexpr void c_fill_n( C&& c, Size n, T const& value) requires container_algorithm_internal::IsPermissibleDestinationRange<C>::value; ---- == Parameters [cols="1,4"] |=== | Name| Description | *c* | The container to fill. | *n* | The number of elements to fill. | *value* | The value assigned to each element. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#