how to check if a string is alphanumeric in c++ code example
Example: c++ check if string contains non alphanumeric
#include <algorithm>
any_of(str.begin(), str.end(), [](const char& c) -> bool { return !isalnum(c); });
#include <algorithm>
any_of(str.begin(), str.end(), [](const char& c) -> bool { return !isalnum(c); });