A
Andy
Hi,
I did not find documentation on this. I try the following naive
program,
#include <vector>
#include <iostream>
using namespace std;
int main()
{
vector<int> myvec;
cout <<"first pop_back \n";
myvec.pop_back();
cout <<"second pop_back \n";
myvec.pop_back();
return 0;
}
Comipled with gcc-4.0, it just print the strings, then stay for a while
and terminated.
Any insights here?
Thanks,
Andy
I did not find documentation on this. I try the following naive
program,
#include <vector>
#include <iostream>
using namespace std;
int main()
{
vector<int> myvec;
cout <<"first pop_back \n";
myvec.pop_back();
cout <<"second pop_back \n";
myvec.pop_back();
return 0;
}
Comipled with gcc-4.0, it just print the strings, then stay for a while
and terminated.
Any insights here?
Thanks,
Andy