June 16th, 2003, 08:09 PM
| Originally posted by shim |
The documentation of STL says that 'queue' class provides simpler interface by encapsulating 'list' class. i.e. its push() and pop() functions internally calls push_front() etc functions of list class.
We only have to supply the integer (or the type whose list is created).
So then are you saying that you should have written your declaration as:
In Google'ing on 'STL queue', I found this code fragment:
queue<int, list<int> > myQueue(myList);
Would that queue declaration cover what you are trying to do?
Last edited by dwise1_aol : June 16th, 2003 at 08:22 PM.