美文网首页
advance c++ (1)

advance c++ (1)

作者: Jeremyduan | 来源:发表于2017-12-16 19:09 被阅读0次
  • copy constructor
  • copy assignment operator
  • deconstructor
  • default constructor

the compiler will automatically generate for every class

/* Summary of disallowing functions
 * 
 * 1. c++ 11: f() = delete
 * 2. c++ 03: declare the function to be private, and not define it
 * 3. private destructor: stay out of stack 
 */ 
Foo(const Foo& rhs) = delete

相关文章

网友评论

      本文标题:advance c++ (1)

      本文链接:https://www.haomeiwen.com/subject/qfcrwxtx.html