C++ Standard Library fill_n() Sample

Description

fill_n() fills the first N elements of a sequence with a specified value.

Declaration

	template <class Out, class Size, class T>
	    void fill_n(Out, Size, const T&);

Concept

The example program creates a vector of integers, and then fills the first 10 locations with the value 25, using an insertion iterator.

Special Notes:

fill_n() assigns rather than initializes.

Supported
Supported
Supported