• 管理函数析构函数中的异常

    Managing exceptions in constructors and destructors

    youdao

  • 因此可以析构函数安全地使用断言

    Thus, the assertions can be used safely in destructors, too.

    youdao

  • 可能析构函数抛出一个异常

    It is possible for the destructor to throw an exception.

    youdao

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

    Should the exception in the destructor be ignored?

    youdao

  • 我们需要添加一个析构函数

    We also need to add a destructor to the class.

    youdao

  • 展开期间经常执行构函数

    Destructors are often executed during stack unwinding.

    youdao

  • 程序退出调用构函数

    Destructors are also called when the program exits.

    youdao

  • 因为没有一个析构函数

    Because it does not have a destructor.

    youdao

  • 一个析构函数对象超出作用域称为

    Is a destructor called when an object goes out of scope?

    youdao

  • 另外析构函数不仅仅用来释放资源

    A destructor is not limited only to relinquishing resources.

    youdao

  • 无法继承重载析构函数

    Destructors cannot be inherited or overloaded.

    youdao

  • 首先调用将要删除对象析构函数

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

    youdao

  • 只能使用析构函数

    They are only used with classes.

    youdao

  • 使用析构函数

    Empty destructors should not be used.

    youdao

  • 如果存在构函数,则重写终结器

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

    youdao

  • 允许定义一个函数对像崩溃的时候运行

    Allows defining a destructor function that runs when an object is destroyed.

    youdao

  • 函数结束时候,对象析构函数就会调用

    When the function end, the constructor of the object will be called.

    youdao

  • 函数构函数面向对象程序设计中的难点

    The construction function and the destruction function are difficult parts in object-oriented programming design.

    youdao

  • 队列函数析构函数负责创建销毁互斥锁清单1

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

    youdao

  • 因此第一例子不同我们需要实现一个析构函数

    So, different from the first example, we need to implement a destructor.

    youdao

  • 对于实现构函数释放非内存资源对象来说,最常见问题

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

    youdao

  • 析构函数不同,函数内部所做事情经常抛出异常

    Unlike destructors, it is often the case that something done inside a constructor might throw an exception.

    youdao

  • 没有注意是,对象构函数调用后引起很大麻烦

    No pay attention to this, the situation in which only the object destructor is called can make great deal of troubles.

    youdao

  • 尽管调用构函数,但是调用数组各个对象函数

    The constructors for the individual objects in the array are not invoked, although the destructors are.

    youdao

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

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

    youdao

  • 范围构函数被调用时,所有那个范围中创建的句都将被移除

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

    youdao

  • 范围构函数被调用时,所有那个范围中创建的句都将被移除

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

    youdao

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

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

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