1
boost分割函數是否需要在分割之前複製源字符串?boost :: split如何工作?
對於示例 -
const char *c = "S1 S2 S3";
std::vector<std::string> v;
boost::split(v, c, boost::is_any_of(" "));
boost分割函數是否需要在分割之前複製源字符串?boost :: split如何工作?
對於示例 -
const char *c = "S1 S2 S3";
std::vector<std::string> v;
boost::split(v, c, boost::is_any_of(" "));
線索在`const`! – 2010-12-22 11:21:32