If I use a pointer to an element in an std::vector, during reallocation of memmory, will my pointer point to an invalid location?
I have had no problems till now...Code:
std::vector<int> a(10, 0);
int *ptr = &a;
Can some one tell me a way to counteract this problem???