Whats the most efficient way of removing a \'newline\' from a std::string?
The code removes all newlines from the string str.
str
O(N) implementation best served without comments on SO and with comments in production.
unsigned shift=0; for (unsigned i=0; i