go top

destructor function

  • 析构函数

网络释义

  析构函数

析构函数(destructor function) 是一种特殊的类成员函数,它与构造函数的功能相反,在对象被撤消时, 自动执行一些例如释放内存空间等工作。

基于40个网页-相关网页

短语

destructor member function 析构成员函数

双语例句

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

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

    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

  • In the constructor function, a new trace file is opened into which the profiling address trace will be written; within the destructor function, the trace file is closed (see Listing 3).

    在constructor函数中,会打开一个新的跟踪文件,分析数据的地址跟踪就是写入这个文件的;在destructor函数中,会关闭这个跟踪文件(参见清单3)。

    youdao

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

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

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