14 inline bool snums(
const std::string& a_string,
15 std::istringstream& a_iss,std::vector<std::string>& a_tmp,
16 const std::string& a_sep,
17 std::vector<T>& a_values,
bool a_clear =
true) {
18 if(a_clear) a_values.clear();
19 words(a_string,a_sep,
false,a_tmp);
25 if(a_iss.fail()) {a_values.clear();
return false;}
26 a_values.push_back(
value);
32 inline bool snums(
const std::string& a_string,
const std::string& a_sep,std::vector<T>& a_values,
bool a_clear =
true) {
33 std::istringstream iss;
34 std::vector<std::string>
words;
35 return snums(a_string,iss,
words,a_sep,a_values,a_clear);