Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool SearchServer::IsValidWord(const string& word) {
- // A valid word must not contain special characters
- return none_of(word.begin(), word.end(), [](char c) {
- return c >= '\0' && c < ' ';
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment