Skip to content

Instantly share code, notes, and snippets.

@MartinBspheroid
Created January 25, 2014 13:25
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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