`
mylove2060
  • 浏览: 330763 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

Boost - 函数-boost C++中split用法

阅读更多

Author:QQ174554431


#include <boost/algorithm/string.hpp>
	string in_path = "test1,test2,test3,test4,test5";
	std::vector<std::string> m_currentPath;
	boost::algorithm::split(m_currentPath, in_path, boost::algorithm::is_any_of(","));

	for(size_t i = 0;i<m_currentPath.size();i++)
	{
		std::cout<<m_currentPath[i]<<std::endl;
	}
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics