salut bein je suis débutant en stl et j'ai eu ce code j'arrive pas à comprendre ce qu'il fait merci
#include <iostream.h>
#include <iomanip.h>
#include <vector>
using namespace std;
int main()
{
vector<int> iVec;
vector<int>::size_type indice1 = 12345, indice2;
long i;
cout << "iVec.size()\tiVec.capacity()\n";
for (i = 0L; i < 1000L; i++)
{
indice2 = iVec.capacity();
if (indice2 != indice1)
{
cout << setw(8) << iVec.size() << " "<< setw(8) << indice2 << endl;
indice1 = indice2;
}
iVec.push_back(234);
}
return (0);
}