#include
#include
#include
#include
#include // for reverse
using namespace std;
int main()
{
string s("abcdef");
deque deque1(s.begin(), s.end());
deque::iterator i;
for (i = deque1.begin(); i != deque1.end(); ++i)
cout << *i;
cout << "\n\n\n";
reverse(deque1.begin(), deque1.end());
for (i = deque1.begin(); i != deque1.end(); ++i)
cout << *i;
return 0;
}
/*
abcdef
fedcba
*/