Skip to content

Instantly share code, notes, and snippets.

@apbarrero
Created September 28, 2011 21:44
Show Gist options
  • Select an option

  • Save apbarrero/1249340 to your computer and use it in GitHub Desktop.

Select an option

Save apbarrero/1249340 to your computer and use it in GitHub Desktop.
For loop style
std::vector<CClass> MyVector;
for (std::vector<CClass>::const_iterator itElement = MyVector.begin(); itElement != MyVector.end(); ++itElement) {
// Do whatever you have to do with itElement
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment