...世界上最受推崇和设计精良的 C++ 库项目之一。 — Herb Sutter 和 Andrei Alexandrescu,《C++ 编码规范
...世界上最受推崇和设计精良的 C++ 库项目之一。
boost::algorithm::trim_left — 左侧去除空格。
// In header: <boost/algorithm/string/trim.hpp> template<typename SequenceT> void trim_left(SequenceT & Input, const std::locale & Loc = std::locale());
移除输入字符串开头的所有空格。输入序列将被原地修改。
参数
输入
一个输入序列
位置
用于 '空格' 分类的区域设置