|
From: Marcos C. <ca...@un...> - 2002-11-28 18:11:42
|
Hi!
I have a little problem with Dev in STL library. The problem is in
priority_queue with declaration of function object for relational test.
The source code is:
#include <iostream>
#include <queue>
using namespace std;
int main()
{
typedef priority_queue< int, less<int> > IntPQueue; // HERE!!!!
IntPQueue ipqueue;
ipqueue.push (31);
ipqueue.push (87);
ipqueue.push (13);
ipqueue.push (29);
while (!ipqueue.empty())
{
cout << ipqueue.top() << endl;
ipqueue.pop();
}
return 0;
}
What is doing?
Thanks,
Marcos
|