The stack implementation simply maps the operations into appropriate calls of the container that is
used internally (Figure 12.2). You can use any sequence container class that provides the member
functions back(), push_back(), and pop_back(). For example, you could also use a vector or a
list as the container for the elements: