Empty string: Difference between revisions

m
Line 457:
// we could also use the following
if (str.length() == 0) { ... }
if (str == "") { ... }</lang>
 
// make a std::string empty
Line 472:
// create empty string as default parameter
void func( std::string& s = {} ); // {} generated default std:string instance
</lang>
 
=={{header|C sharp}}==