什么是C ++中的静态析构函数,以及如何实现? [英] What are Static destructors in c++ and how to implement that?
本文介绍了什么是C ++中的静态析构函数,以及如何实现?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
谁能知道c ++中的静态析构函数的概念.
在什么情况下使用这些方法以及如何实现这些方法.
请指导我.
预先感谢.
Hi Everyone,
Can anybody knows the concept of Static destructors in c++.
n what scenario these are being used and how to implement that.
Please guide me.
Thanks in advance.
推荐答案
没有静态"析构函数.
最近的东西一个静态"析构函数将类似于将一个对象与对象管理器组合在一起(在ACE中实现),请参见: ^ ].人们通常在想到 [
The nearest thing to a "static" destructor would be something like a singleton combined with an object manager - as implemented in ACE - see: ACE__Singleton[^]. This, or something like it, is what people usually are looking for when they think about "c++ static destructor"[^] .
Regards
Espen Harlinn
这篇关于什么是C ++中的静态析构函数,以及如何实现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文