I have a little brain fart: I would like to delete all instances of the newline character '\n'in std::string. I would prefer to use STL instead of manual, multi-user for loops; the only problem is I forgot how ...
Will it for(...) { std::string::remove_if(...); } ;work? Can i use std::for_each(...,..., std::string::remove_if(...));? Or will you need something else?
source
share