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

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

    youdao

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

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

    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

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

    So, different from the first example, we need to implement 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

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

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

    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

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

    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

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

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

    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

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

    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

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

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

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