...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::algorithm::trim_if — Trim.
template<typename SequenceT, typename PredicateT> void trim_if(SequenceT & Input, PredicateT IsSpace);