convert all characters in string to uppercase c++

#include <iostream>
#include <cctype>
#include <string>

int main() {
    std::string str = "hello, world!";
    for (char &c : str) {
        c = std::toupper(c);
    }
    std::cout << str << std::endl;
    return 0;
}