什么是三法则? - What is The Rule of Three?

问题:

  • What does copying an object mean? 复制对象是什么意思?
  • What are the copy constructor and the copy assignment operator ? 复制构造函数复制赋值运算符是什么?
  • When do I need to declare them myself? 我何时须要本身声明?
  • How can I prevent my objects from being copied? 如何防止对象被复制?

解决方案:

参考一: https://stackoom.com/question/HVVy/什么是三法则
参考二: https://oldbug.net/q/HVVy/What-is-The-Rule-of-Three
相关文章
相关标签/搜索