fill
fill
template<class FwdIt, class T>
void fill(FwdIt first, FwdIt last, const T& x);
The template function evaluates *(first + N) = x
once for each N
in the range [0, last - first)
.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
fill
template<class FwdIt, class T>
void fill(FwdIt first, FwdIt last, const T& x);
The template function evaluates *(first + N) = x
once for each N
in the range [0, last - first)
.