Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
std::remove_if is an STL algorithm to removed elements from a container.
std::remove_if does the following:
- std::remove_if overwrites values that must be removed by values that must not be removed with preserving the order. For example: removing '1' from '01112' generates '02112'
- std::remove_if returns an iterator to where the container would end would these values be removed. For example: after removing '1' from '01112', which generates '02112', returns an iterator pointing to the first '1'
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.
