3 ms·
I don't think that's true. The default constructor for std::string creates an empty string. See: https://www.cplusplus.com/reference/string/string/string/ https
by benchaney 4y ago
I don't think that's true. The default constructor for std::string creates an empty string. See: https://www.cplusplus.com/reference/string/string/string/ https://www.cplusplus.com/reference/string/string/string/
The semantics of c++ object initialization are such that a constructor will always be called.