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

    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

  • 因为没有一个析构函数

    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

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

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

    youdao

  • 只能使用析构函数。

    They are only used with classes.

    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

  • 如果容器保存对象,则容器析构的时候会自动清理这些对象。

    If the container stores objects, then it is automatically cleaned up during container destruction.

    youdao

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

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

    youdao

  • 方法类似的方式命名除了母体一个~(否定号)。

    A destructor is named in a similar manner, except that it has a ~ (tilde) followed by the parent's name.

    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

  • 因此,告诉如何删除恶意软件析构2009年,是免费的。

    So let me show you how to remove Malware Destructor 2009, for free.

    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

  • 放在单独功能调用析构函数拷贝造函数运算符需要的功能。

    Put the functionality you need in separate functions called by the destructor and the copy constructor and the assignment operator.

    youdao

  • 放在单独功能调用析构函数拷贝造函数运算符需要的功能。

    Put the functionality you need in separate functions called by the destructor and the copy constructor and the assignment operator.

    youdao

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

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

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