check if string is alphanumeric 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); });