Skip to content

Instantly share code, notes, and snippets.

@MartinBspheroid
Created January 25, 2014 13:25
Show Gist options
  • Save MartinBspheroid/8616324 to your computer and use it in GitHub Desktop.
Save MartinBspheroid/8616324 to your computer and use it in GitHub Desktop.
Vector Array Manager 2 - C++11 compatible
auto i = std::begin(inv);
while (i != std::end(inv)) {
// do some stuff
if (blah)
i = inv.erase(i);
else
++i;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment