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

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

    youdao

  • 那些支持函数垃圾收集器语言通过C接口层封装有助于降低这个问题发生的概率。

    Programming languages that support destructors or have a garbage collector may mitigate this problem by making a wrapper over the C interface.

    youdao

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

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

    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

  • 对象接口——有对象意识的接口,对象创建删除过程中分别相应地调用函数函数

    Object pool interface — an object-aware interface that calls the constructor and destructors appropriately during object creation and deletion, respectively.

    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

  • 如果不使用这两个选项trycatch代码仍然可以执行并且系统执行throw语句时才会调用局部对象函数

    Without either of these options, the try and catch code can still execute, and the system does not call the destructors of local objects up to the throw statement.

    youdao

  • wxWidgets 确实一种功能强大的工具包但并不是所有人都愿意使用 C++函数内存管理等等。

    While wxWidgets is a powerful toolkit, not everybody wants to deal with C++ destructors, memory management, and all the rest.

    youdao

  • 管理函数函数中的异常

    Managing exceptions in constructors and destructors

    youdao

  • 因为没有一个函数

    Because it does not have a destructor.

    youdao

  • 继承层次关系应该定义函数性质函数即使这个函数任何的事情。

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

    youdao

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

    Should the exception in the destructor be ignored?

    youdao

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

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

    youdao

  • 展开期间经常执行函数

    Destructors are often executed during stack unwinding.

    youdao

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

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

    youdao

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

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

    youdao

  • 函数不能参数,不能有访问级别修饰符,不能被式调用。实例函数垃圾收集自动调用

    Destructors cannot have parameters, they cannot have accessibility modifiers, and they cannot be invoked explicitly. The destructor for an instance is invoked automatically during garbage collection.

    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

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

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

    youdao

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

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

    youdao

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

    A destructor is not limited only to relinquishing resources.

    youdao

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

    A destructor is not limited only to relinquishing resources.

    youdao

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

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

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