It is unfortunate that std::stack doesn't expose iterators. Unacceptable.