How to check if a std::string is set or not? January 29, 2023 by Tarik Use empty(): std::string s; if (s.empty()) // nothing in s