vector<unsigned int> x; vector<unsigned int>::iterator itr; unsigned int varF; ... .... // find and delete an element from a vector. itr = std::find(x.begin(), x.end(), varF); // <algorithm> if (itr != x.end()) x.erase(itr); //or x.erase(std::remove(x.begin(), x.end(), varF), x.end()); I want to convert this vector to a vector of pointers
vector<unsigned int*> x; How I can convert the above functionality for a vector of pointers?