Can I initialize an STL vector with 10 of the same integer in an initializer list? My attempts so far have failed me.
can you post what you are doing
int i = 100; vector vInts2 (10, i); vector::iterator iter; for(iter = vInts2.begin(); iter != vInts2.end(); ++iter) { cout << " i " << (*iter) << endl; }