Monday, November 7, 2011

chomping with boost

Always convenient
    
#include <boost/algorithm/string.hpp>
...
boost::algorithm::trim_if(str,boost::algorithm::is_any_of(" \t\n"));

No comments:

Post a Comment