Created
December 1, 2016 06:01
-
-
Save saucecode/67b3d674ae8e64e1b815e7aaf4a783f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
std::vector<projectile_t*> projectiles; | |
// ... | |
projectiles.erase( | |
std::remove_if(projectiles.begin(), projectiles.end(), | |
[](projectile_t *p){ return p->life <= 0.0; }), | |
projectiles.end() | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment