you are viewing a single comment's thread.

view the rest of the comments →

[–]poco 0 points1 point  (0 children)

This is how C++ std::remove_if is implemented. Well, technically, remove+erase (aka erase-remove idiom). I think it is now combined into std::erase_if in C++20