Daily bit(e) of C++ | std::stack
Daily bit(e) of C++ #383, The LIFO container adapter: std::stack.
std::stack is a simple container adapter providing a stack/LIFO interface.
Besides mitigating the need for recursion, std::stack can be used to implement simple undo functionality.