HI,
I have a problem about list::sort() in STL (I use Visual C++ 6.0).
Here is a simple example I test, which does not work.
#include <iostream>
#includer<list>
using namespace std;
int main()
{
list<long> L;
for (long i=1;i<=479250; i++)
L.push_back(i);
cout<< L.size()<<endl; // give 479250
L.sort();
cout<< L.size() << endl; // give 20498;???
return 0;
}
Anyone can give me suggestion? Thanks,
ucb