...ition)形式是Initialization(RAII), 尤其是为被称作占据稀有资源的垃圾回收类型确定性终止化(deterministic finalization)提供一个自动化的机制; 与C++拷贝构造函数和拷贝赋值操作符相关的深度拷贝语义形式,但它不能扩展到值类型;
基于1个网页-相关网页
How does it support deterministic finalization?
它是如何实现确定性终结的。
Deterministic finalization is not part of the.
确定性的终结过程不是。
Not only is it difficult to code them correctly, but the timing of finalization is not deterministic, and there is no guarantee that finalizers will ever even run.
终结器不仅难以编写正确,终结的定时也是不确定的,并且不能保证终结器最终会运行。
应用推荐