#include <string>
#include <boost/algorithm/string.hpp>
#Include <vector>
std::vector<std::string> v;
boost::algorithm::split(v, some_string, boost::is_any_of(",")); //例えば,で区切る
結果はvにvectorで入る
More than 5 years have passed since last update.
#include <string>
#include <boost/algorithm/string.hpp>
#Include <vector>
std::vector<std::string> v;
boost::algorithm::split(v, some_string, boost::is_any_of(",")); //例えば,で区切る
結果はvにvectorで入る
Register as a new user and use Qiita more conveniently