When I create a std::string
using the default constructor, is ANY memory allocated on the heap? I'm hoping the answer does not depend on the implementation and is standardized. Consider the following:
std::string myString;
Unfortunately, the answer is no according to N3290.
Table 63 Page 643 says:
data()
a non-null pointer that is copyable and can have 0 added to itsize()
0capacity()
an unspecified valueThe table is identical for C++03.