February 4th, 2014, 07:44 AM
STL stack queue
In the Standart Template Library I am stading stack and queues.
One way to instantiate is creating a stack that uses an underlying container , in this case vector,
Can anyone give me an example about how to use this?
I mean how can I use the function members of the container vector in the next code?
What is the difference between a simply stack of integers and the stack of integers containes in a vector?
using namespace std;
stack<int,vector<int>> mystack; //vector ???????
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!