If using a char*, I can initialize it to NULL and later check if it is set by doing a comparison. How to do the same thing for a std::string
char*
NULL
std::string
Use empty():
empty()
std::string s; if (s.empty()) // nothing in s