C++ Standard Library reverse_copy() Sample

Description

reverse_copy() reverses the elements in its input sequence, copying the reversed elements to a new output sequence. The input sequence is left unchanged.

Declaration

	template <class Bi, class Out>
	    Out reverse_copy(Bi, Bi, Out);

Concept

The example sets up a vector of integers, and then makes a reversed copy into a vector<int> structure.

Supported
Supported
Supported