Stack and Queue
Stack and Queue
- In STL, they are adapters, built on top of an underlying data type such as a vector or linked list.
- Adapter: a software component that changes the interface to another component
stack< vector<int> > stackOne;
stack< list<anObject *> > stackTwo;
queue< deque<double> > queueOne