Skip to content

Latest commit

 

History

History
5 lines (3 loc) · 302 Bytes

exercise_13_50.md

File metadata and controls

5 lines (3 loc) · 302 Bytes

练习13.50:在你的String类的移动操作中添加打印语句,并重新运行13.6.1节(第473页)的练习13.48程序,它使用了一个vector,观察什么时候会避免拷贝。


当重新分配空间时会避免调用拷贝构造函数,而使用移动构造函数。