A useful rule of thumb is that if a class needs a destructor, it will also need the assignment operator and a copy constructor.

 
  • 如果类需要析构函数,则它也需要赋值操作符和复制构造函数,这是一个有用的经验法则。
今日热词
目录 附录 查词历史