c++ iterate over vector of pointers

C++
for (vector<int Type>:: iter = myVector.begin(); iter != myVector.end(); iter++)
   (*iter)->display();
Source

Also in C++: