Boost实现将字符串按格式解析到数组的功能

来源:互联网 发布:淘宝只有退货没有换货 编辑:程序博客网 时间:2024/06/05 09:32

Boost实现将字符串按格式解析到数组的功能(Split)


#include <boost/algorithm/string.hpp>


boost::algorithm::split(std::vector<std::string> &result, const std::string &data, boost::algorithm::is_array_of(const std::string &_separator));