Boost C++ 库

...世界上最受推崇和设计精良的 C++ 库项目之一。 Herb SutterAndrei Alexandrescu,《C++ 编码规范

函数模板 trim_right_copy - Boost C++ 函数库
PrevUpHomeNext

函数模板 trim_right_copy

boost::algorithm::trim_right_copy — 右侧裁剪。

提要

// In header: <boost/algorithm/string/trim.hpp>


template<typename SequenceT> 
  SequenceT trim_right_copy(const SequenceT & Input, 
                            const std::locale & Loc = std::locale());

描述

移除输入字符串末尾的所有空格。结果是输入字符串的裁剪副本。

[Note] 注意

此函数提供强异常安全保证

参数

输入

一个输入序列

位置

用于 '空格' 分类的区域设置

返回

输入字符串的修剪副本


PrevUpHomeNext