Share via


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).