C++ Standard Library fill() Sample

Description

fill() assigns a specified value to elements of a sequence. The iterators delimiting the beginning and end of the sequence are specified.

Declaration

	template <class For, class T>
	    void fill(For, For, const T&);

Concept

The sample program creates a 10-long vector of integers, and then fills each vector element with the value 100.

Special Notes:

fill() assigns rather than initializes, and is not suitable for manipulating raw memory.

Supported
Supported
Supported