and copy constructor 和复制构造函数
The noncopyable class definition presents no surprises, as the copy constructor and operator= are declared private.
noncopyable 类定义没有什么令人感到新奇的地方,因为 copy constructor 和 operator= 声明为 private。
The only other thing to note in Listing 17 is that the definitions for the copy constructor and operator= methods are not provided.
清单 17 中要注意的另一点是,未提供 copy constructor 和 operator= 方法的定义。
In the first case, you are essentially declaring a private copy constructor and then not providing any implementation.
在第一种情况下,你基本上是声明一个私有拷贝构造函数,然后没有提供任何实现。
应用推荐