C++ Standard Library rotate() Sample

Description

rotate() considers its element sequence to be circular, and rotates it such that the specified middle element is placed where the first element used to be.

Declaration

	template <class For, class For, class For>
	    void rotate(For, For, For);

Concept

The example program sets up a vector of strings, and rotates it one position to the left. The result that is displayed is:

	orange
	peach
	apple

Supported
Supported
Supported