I am writing a piece of software, and It require me to handle data I get from a webpage with libcurl. When I get the data, for some reason it has extra line breaks in it. I
The remove_copy_if standard algorithm would be very appropriate for your case.