Why is there a "erase–remove idiom" for std::remove, std::remove_if with containers?

Subscribers:
4,130
Published on ● Video Link: https://www.youtube.com/watch?v=LuSipErFUII



Duration: 3:15
12 views
0


Why is there a "erase–remove idiom" for std::remove, std::remove_if with containers?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA |
Thanks to all those great people for their contributions!

(stackoverflow.com/users/1079430/bri-bri)Bri Bri |
(stackoverflow.com/users/734069/nicol-bolas)Nicol Bolas |
(stackoverflow.com/users/9513184/unmitigated)Unmitigated |
A special thanks goes out to the (https://stackoverflow.com/questions/74857690/why-is-there-a-erase-remove-idiom-for-stdremove-stdremove-if-with-contain)Stackexchange community |

I wish you all a wonderful day! Stay safe :)

c++ stl







Tags:
c++
stl