64,643
社区成员
发帖
与我相关
我的任务
分享
int main()
{
std::string str = "123;1234;435;64646";
std::vector<std::string> strvec;
std::vector<int> intvec;
boost::split(strvec, str, boost::is_any_of(";"));
std::for_each(strvec.begin(), strvec.end(), intvec.push_back(atol(boost::bind(&std::vector<std::string>::value_type, boost::lambda::_1)(strvec))));
return 0;
}