std::remove_if (c++)

The following code removes all spaces from a string by shifting all non-space characters to the left and then erasing the extra. This is an example of erase-remove idiom - cppreference.com

Written on April 11, 2020, Last update on April 11, 2020
c++