C++ Standard Library reverse() Sample

Description

reverse() reverses a sequence of elements such that the first becomes the last, etc. The elements are reversed in place.

Declaration

	template <class Bi>
	    void reverse(Bi, Bi);

Concept

The sample program sets up a vector of characters, and then reverses them in place. Note that a vector of characters expressed as a string literal would not work here, because such a literal is of type const char [].

Supported
Supported
Supported