#include <boost/algorithm/string.hpp>
//
wstring str = L"1 2 3";
vector<wstring> v_out;
//
boost::split(v_out, str, boost::is_any_of(L" "), boost::token_compress_on);
// 需要注意的是 例如 str = L"1,2,"
// boost::token_compress_on v_out 的长度为2 且值为 L"1" L"2"
// boost::token_compress_off v_out 的长度为3 且值为 L"1" L"2" L""