make more clear function name
This commit is contained in:
@@ -14,8 +14,9 @@ inline std::vector<std::string> splitString(const std::string &str) {
|
||||
return words;
|
||||
}
|
||||
|
||||
inline void CastStringVectorToIntVector(const std::vector<std::string> &strVec,
|
||||
std::vector<int> &intVec) {
|
||||
inline void
|
||||
ConvertStringVectorToIntVector(const std::vector<std::string> &strVec,
|
||||
std::vector<int> &intVec) {
|
||||
std::transform(strVec.begin(), strVec.end(), std::back_inserter(intVec),
|
||||
[](const std::string &s) { return std::stoi(s); });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user