vector3.cpp
292 Bytes
#include <iostream>
#include <vector> // for vector template definition
#include <iomanip>
using namespace std;
int
main ()
{
vector < int >Y;
for (int m = 0; m < 100; m++)
{
Y.insert (Y.begin (), m);
cout << setw (3) << m << setw (5) << Y.capacity () << endl;
}
}