Heap allocations in string class in C++

后端 未结 0 1753
面向向阳花
面向向阳花 2020-12-03 01:14

In the following C++ code, there should be three heap allocations as in the swap() function one temporary string object is also created. Why there are only two

相关标签:
回答
  • 消灭零回复
提交回复
热议问题