std::string hello("Hello"); T1 space(" "); std::string world("World"); std::string exclamation("!"); // heap allocations were counted from here std::string str(hello + space + world + ' ' + exclamation + space + exclamation+'\n');