inline void trim_right_if(SequenceT& Input) { Input.erase( trim_end( Input.begin(), Input.end() ), Input.end() ); }
inline void trim_left_if(SequenceT& Input, PredicateT IsSpace) { Input.erase( ::boost::begin(Input), ::boost::algorithm::detail::trim_begin( ::boost::begin(Input), ::boost::end(Input), IsSpace)); }
inline void trim_left_if(SequenceT& Input) { Input.erase( Input.begin(), trim_begin( Input.begin(), Input.end() ) ); }
inline void trim_right_if(SequenceT& Input, PredicateT IsSpace) { Input.erase( ::mars_boost::algorithm::detail::trim_end( ::mars_boost::begin(Input), ::mars_boost::end(Input), IsSpace ), ::mars_boost::end(Input) ); }