|
|
|
|
for (auto it = st.begin(); it != st.end(); it++) *it = ::toupper(*it);
for( char& c : str ) c = ::toupper(c) ;
for( char& c : str ) c = std::toupper(c) ; // #include <cctype>
<ctype.h> (deprecated) behaves as if each name from <cctype> is placed in global namespace http://en.cppreference.com/w/cpp/header |