3 ms·
Talking about un-guessable, misleading function names, C++ std::remove. I would never have guessed what it does exactly. (It moves elements that match the fil
by reddit_clone 17d ago
Talking about un-guessable, misleading function names,
C++ std::remove.
I would never have guessed what it does exactly. (It moves elements that match the filter to the front, and moves the end-marker forward. Leaves all the elements in the collection. You need to erase them yourself. )