| 167 | */ |
| 168 | template<typename OutputIteratorT, typename RangeT, typename PredicateT> |
| 169 | inline OutputIteratorT trim_right_copy_if( |
| 170 | OutputIteratorT Output, |
| 171 | const RangeT& Input, |
| 172 | PredicateT IsSpace ) |
| 173 | { |
| 174 | iterator_range<BOOST_STRING_TYPENAME range_const_iterator<RangeT>::type> lit_range(::boost::as_literal(Input)); |
| 175 | |
| 176 | std::copy( |
| 177 | ::boost::begin(lit_range), |
| 178 | ::boost::algorithm::detail::trim_end( |
| 179 | ::boost::begin(lit_range), |
| 180 | ::boost::end(lit_range), |
| 181 | IsSpace ), |
| 182 | Output ); |
| 183 | |
| 184 | return Output; |
| 185 | } |
| 186 | |
| 187 | //! Right trim - parametric |
| 188 | /*! |
no test coverage detected