LoginSignup
6
5

More than 5 years have passed since last update.

boost::algorithm::splitで文字列を区切り文字で区切る

Last updated at Posted at 2013-04-10
#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で入る

6
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
5