Is traversing std::stack possible in C++?
It is not possible to traverse using the following method.
Because there is no member end in std::stack.
std::stack<int> foo;
// ..
for (__typeof(foo.begin()) it = foo.begin(); it != foo.end(); it++)
{
// ...
}