How would it matter if my C++ code (as shown below) has a string initialized as an empty string :
std::string myStr = \"\";
....some code to optionally popul
Best:
std::string subCondition;
This creates an empty string.
This:
std::string myStr = "";
does a copy initialization - creates a temporary string from "", and then uses the copy constructor to create myStr.
Bonus:
std::string myStr("");
does a direct initialization and uses the string(const char*) constructor.
To check if a string is empty, just use empty().