• Because it does not have a destructor.

    因为它没有一个析构函数。

    youdao

  • The constructor and destructor methods of this object do the necessary setup and cleanup.

    这个对象的constructor和destructor方法执行必需的设置和清除工作。

    youdao

  • This is mostly a problem with objects that implement a destructor to free non-memory resources.

    对于实现了析构函数释放非内存资源的对象来说,这是最常见的问题。

    youdao

  • This destructor would have to be called specifically before unsetting the parent class reference.

    这种解构器必须在解除父类引用之前进行调用。

    youdao

  • When the handle scope's destructor is called all handles created within that scope are removed from the stack.

    当句柄范围的析构函数被调用时,所有在那个范围中创建的句柄都将被从栈中移除。

    youdao

  • A class can only have one destructor.

    一个类只能有一个析构函数。

    youdao

  • A call is made to a destructor of incorrect type.

    对错误类型的析构函数进行了调用。

    youdao

  • Should the exception in the destructor be ignored?

    应该忽略析构函数中的异常吗?

    youdao

  • A destructor does not take modifiers or have parameters.

    析构函数既没有修饰符,也没有参数。

    youdao

  • If an exception occurs, the destructor cannot be called.

    如果出现异常,则无法调用析构函数。

    youdao

  • A destructor is not limited only to relinquishing resources.

    另外析构函数也不仅仅是用来释放资源。

    youdao

  • Although a destructor is a method, it cannot have parameters.

    尽管析构函数是一种方法,但它不能有参数。

    youdao

  • First, the destructor of the object that's being deleted is called.

    首先,调用将要被删除的对象的析构函数。

    youdao

  • If a destructor is present, rewrite that to be the class finalizer.

    如果存在析构函数,则将其重写为类终结器。

    youdao

  • For example, a new slot cannot be requested on a destructor or finalizer.

    例如,无法在析构函数或终结器上请求一个新的槽。

    youdao

  • If the destructor is empty, this simply results in a loss of performance.

    如果析构函数为空,只会导致性能降低。

    youdao

  • When the destructor is called, the garbage collector is invoked to process the queue.

    调用析构函数时,将调用垃圾回收器来处理该队列。

    youdao

  • A struct may not declare a default constructor (a constructor without parameters) or a destructor.

    结构不能声明默认构造函数(没有参数的构造函数)或析构函数。

    youdao

  • The programmer has no control over when the destructor is called because this is determined by the garbage collector.

    程序员无法控制何时调用析构函数,因为这是由垃圾回收器决定的。

    youdao

  • The root class of an inheritance hierarchy should define a virtual destructor even if the destructor has no work to do.

    继承层次关系的根类应该定义虚函数性质的析构函数,即使这个析构函数不做任何的事情。

    youdao

  • I would assume they would simply call the base-class destructor, then deallocate the memory (for the entire derived class).

    我假设他们将简单地调用基类析构函数,然后释放内存(对于整个派生类)。

    youdao

  • The constructor and destructor of the queue class are responsible for the creation and destruction of the mutex, as shown in Listing 1.

    队列类的构造函数和析构函数负责创建和销毁互斥锁,见清单1。

    youdao

  • The other way to say it is, never define a global (static global) instance of a class whose constructor or destructor may throw exceptions.

    换一种说法就是永远都不要为那些其构造函数和析构函数可能抛出异常的类定义全局(静态全局)实例。

    youdao

  • To create your constructor and destructor, declare two functions, then apply the constructor and destructor function attributes to them.

    要创建constructor和destructor函数,则需要声明两个函数,然后对这两个函数应用constructor和destructor函数属性。

    youdao

  • If it considers an object eligible for destruction, it calls the destructor (if any) and reclaims the memory used to store the object.

    如果它将物件视为符合解构资格,便会呼叫解构函式(如果存在),并且回收用来储存该物件的记忆体。

    youdao

  • The constructor function is invoked immediately prior to main being called; and the destructor function is called when your application exits.

    constructor函数是在调用main函数之前调用的,而destructor 函数则是在应用程序退出时调用的。

    youdao

  • To manage a class with pointer members, we must define all three copy-control members: the copy constructor, assignment operator, and the destructor.

    为了管理具有指针成员的类,必须定义三个复制控制成员:复制构造函数、赋值操作符和析构函数。

    youdao

  • To manage a class with pointer members, we must define all three copy-control members: the copy constructor, assignment operator, and the destructor.

    为了管理具有指针成员的类,必须定义三个复制控制成员:复制构造函数、赋值操作符和析构函数。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定