Cpp Std Erase Code Example


Example: c++ erase remove

std::vector<int> v = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}; v.erase(std::remove(v.begin(), v.end(), 5), v.end()); // v will be {0 1 2 3 4 6 7 8 9}

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable