The copy constructor is used explicitly when we define a new object and initialize it from an object of the same type.

  • 当定义一个新对象并用一个同类型的对象对它进行初始化时,将显式使用复制构造函数。
目录 查词历史