Checking for empty string in C++ alternatives [closed] July 30, 2023 by Tarik You can also use empty if(s.empty())