Next : , Previous : Replace, Top : Table of Contents


Fill

void fill (ForwardIterator first, ForwardIterator last, const T& value) Function
OutputIterator fill_n (OutputIterator first, Size n, const T& value) Function

template 
void fill(ForwardIterator first, ForwardIterator last, const T& value);

template 
OutputIterator fill_n(OutputIterator first, Size n, const T& value);

fill assigns value through all the iterators in the range [first, last) or [first, first + n). fill_n returns first + n. Exactly last - first (or n) assignments are done.


 

Top