Seredenko-V

IsValidWord

Aug 2nd, 2022
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.22 KB | None | 0 0
  1. bool SearchServer::IsValidWord(const string& word) {
  2.     // A valid word must not contain special characters
  3.     return none_of(word.begin(), word.end(), [](char c) {
  4.         return c >= '\0' && c < ' ';
  5.         });
  6. }
Advertisement
Add Comment
Please, Sign In to add comment