convert all strings in vector to lowercase or uppercase c++ code example
Example: convert all strings in vector to lowercase or uppercase c++
for(std::string &s : stringVector){
std::transform(s.begin(), s.end(), s.begin(),
[](char c){ return std::toupper(c); }); // for lowercase change "toupper" -> "tolower"
}