管理构造函数和析构函数中的异常
类,构造函数和析构函数,类的指针。
构造函数和析构函数也有一点与它们相关的损失。
Constructors and destructors also have a slight penalty associated with them.
为什么需要支持单参数的构造函数和析构函数呀?
T need supply only a single-argument constructor and a destructor.
构造函数和析构函数是面向对象程序设计中的难点。
The construction function and the destruction function are difficult parts in object-oriented programming design.
队列类的构造函数和析构函数负责创建和销毁互斥锁,见清单1。
The constructor and destructor of the queue class are responsible for the creation and destruction of the mutex, as shown in Listing 1.
对象池接口——有对象意识的接口,在对象创建和删除过程中分别相应地调用构造函数和析构函数。
Object pool interface — an object-aware interface that calls the constructor and destructors appropriately during object creation and deletion, respectively.
换一种说法就是永远都不要为那些其构造函数和析构函数可能抛出异常的类定义全局(静态全局)实例。
The other way to say it is, never define a global (static global) instance of a class whose constructor or destructor may throw exceptions.
类的成员包括在类中声明的所有成员,以及在该类的继承层次结构中的所有类中声明的所有成员(构造函数和析构函数除外)。
A class's members include all the members declared in the class, along with all members (except constructors and destructors) declared in all classes in its inheritance hierarchy.
放在单独的功能调用析构函数和拷贝构造函数和赋值运算符你所需要的功能。
Put the functionality you need in separate functions called by the destructor and the copy constructor and the assignment operator.
为了管理具有指针成员的类,必须定义三个复制控制成员:复制构造函数、赋值操作符和析构函数。
To manage a class with pointer members, we must define all three copy-control members: the copy constructor, assignment operator, and the destructor.
将输出语句添加到构造函数、析构函数和复制构造函数,以查看在运行程序时命名返回值优化的效果。
Add output statements to the constructor, destructor and copy constructor to see the effect of the Named Return Value optimization when you run the program.
理解并掌握构造函数、析构函数、拷贝构造函数、默认构造函数和缺省参数的构造函数的含义、定义方法以及在对象的构造和撤消中的作用。
Understand and master the constructor, destructor, copy constructor, default constructor and default constructor parameters, to define methods and objects of the structure and the role of withdrawal.
用VC6的Debug的功能跟踪构造函数、析构函数和成员函数的执行顺序。
The function of using VC6 Debug trace constructor, destructor and member functions are executed.
用VC6的Debug的功能跟踪构造函数、析构函数和成员函数的执行顺序。
The function of using VC6 Debug trace constructor, destructor and member functions are executed.
应用推荐