There is a function std::rotate() in <algorithm> (but you have to
set the last element yourself). Here is an example using
rotate with std::vector ... it also works with an array or CArray,
\but the call will be slightly different:
HI cilu.... I'm implementing a MFC DLL and I have vectors... i'm using VisualStudio 2008... so thanks to Philip Nicoletti for the std::rotate() hint...
When you prefixed your title with [MFC] I made the assumption you talk about MFC containers, that don't feature a "vector". How could we figure that you mean std::vector when you didn't mention that at all? You should ask the questions correctly, without ambiguities.