|
项目描述: |
An object of this class is able to tell if it's "alive" (if it was properly created and initialized). It checks if the object's address points to something accessible (will not raise a Segmentation Fault) and if the constructor was called (assuring that the object's content is not garbage). This last test is not 100% correct (just 0.99999% correct), which should be enough for most purposes.
这个类的对象可以判断它是否是“活动”的(如果它被正确的创建和初始化)。它检查对象的地址是否指向可以访问的地址(不会引起段错误),它的构造函数是否被调用(确保对象的内容不是无用的)。最新的测试完全正确,足可以满足大多数目的。
来源: http://www.programmersheaven.com/zone2/cat72/30887.htm |
类别: |
|
发布者:
cbd002
|
|
最新发布源码包 |
软件包 |
版本号 |
日期 |
本地下载 |
30887 |
 1.0  |
2004-03-12 |
下载 |
|
|