std::fill_n
From cppreference.com
Defined in header <algorithm>
|
||
(1) | ||
template< class OutputIt, class Size, class T > OutputIt fill_n( OutputIt first, Size count, const T& value ); |
(constexpr since C++20) (until C++26) |
|
template< class OutputIt, class Size, class T = typename std::iterator_traits |
(since C++26) | |
(2) | ||
template< class ExecutionPolicy, class ForwardIt, class Size, class T > |
(since C++17) (until C++26) |
|
template< class ExecutionPolicy, class ForwardIt, class Size, |
(since C++26) | |
1) Assigns the given value to the first count elements in the range beginning at first if count > 0. Does nothing otherwise.
2) Same as (1), but executed according to policy.
This overload participates in overload resolution only if all following conditions are satisfied:
|