Copy-and-swap idiom vs. calling copy assignment operator in copy constructor

后端 未结 0 1649
傲寒
傲寒 2021-01-07 04:18

I was recently implementing the copy constructor and copy assignment operator for a class that manages a dynamically allocated object, and learnt about the copy-and-swap idi

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