check string is upper in c++ code example Example: c++ check if string contains uppercase #include <algorithm> any_of(str.begin(), str.end(), isupper)