#include
#include
std::string str = “Hello World”;
std::transform(str.begin(), str.end(),str.begin(), ::toupper);
Boost string algorithms:
#include
#include
std::string str = “Hello World”;
boost::to_upper(str);
std::string newstr = boost::to_upper_copy