Container-based version of the <algorithm> std::fill_n() function to fill the first N elements in a container with some value.
Declared in <absl/algorithm/container.h>
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;
| Name | Description |
|---|---|
| c | The container to fill. |
| n | The number of elements to fill. |
| value | The value assigned to each element. |