Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ check if string contains non alphanumeric

#include <algorithm>

any_of(str.begin(), str.end(), [](const char& c) -> bool { return !isalnum(c); });
 
PREVIOUS NEXT
Tagged: #check #string #alphanumeric
ADD COMMENT
Topic
Name
2+2 =