L
Lieven
Consider:
std::vector<int> vec(100);
vector<int>::iterator it(vec.begin());
for(int i(0); i < 10000000; i++){
vec.push_back(rand());
}
It is possible that vec get's reallocated. My question is: to what will it
point? Does it get reallocated to?
std::vector<int> vec(100);
vector<int>::iterator it(vec.begin());
for(int i(0); i < 10000000; i++){
vec.push_back(rand());
}
It is possible that vec get's reallocated. My question is: to what will it
point? Does it get reallocated to?