Below is an example with std::deque
for forward looping, using "enhanced for loop":
int a[] = { 0, 1, 2, 3, 4, 5 };
std::deque<int> dq(a, a+6);
for(auto i : dq)
std::cout << i << ", ";
What is the correct syntax (if possible) of "enhanced for loop" to iterate in reverse for a given STL container?