因?yàn)?/c>這是由垃圾回收器決定的。
If it considers an object eligible for destruction, it calls the destructor (if any) and reclaims the memory used to store the object.
如果垃圾回收器認(rèn)為某個對象符合析構(gòu),則調(diào)用析構(gòu)函數(shù)(如果有)并回收用來存儲此對象的內(nèi)存。
When the lock object goes out of scope and is destroyed, the object's destructor calls Unlock for you, releasing the resource.
當(dāng)鎖定對象超出范圍并被銷毀時,該對象的析構(gòu)函數(shù)調(diào)用Unlock以釋放資源。
The destructor is called just before your component is destroyed by garbage collection and its memory is reclaimed.
在垃圾回收銷毀組件并回收其內(nèi)存之前調(diào)用析構(gòu)函數(shù)。
Similarly, a subclass destructor must call its superclass destructor after it has completed its own resource reclamation.
類似地,子類析構(gòu)函數(shù)在它完成其資源釋放之后,也要調(diào)用基類的析構(gòu)函數(shù)。
The constructor and destructor of the queue class are responsible for the creation and destruction of the mutex, as shown in Listing 1.
隊(duì)列類的構(gòu)造函數(shù)和析構(gòu)函數(shù)負(fù)責(zé)創(chuàng)建和銷毀互斥鎖,見清單1。
object to release resources and perform other cleanup operations before its destructor is called.
物件在呼叫其解構(gòu)函式之前,釋放資源并執(zhí)行其他清除作業(yè)。
A destructor is named in a similar manner, except that it has a ~ (tilde) followed by the parent's name.
析構(gòu)方法按類似的方式命名,除了它的母體名前有一個~(否定號)。
A. A matrix class in which the actual matrix is allocated dynamically within the constructor and is deleted within its destructor.
動態(tài)分配,對象的建立是利用構(gòu)造函數(shù),刪除是利用析構(gòu)函數(shù)。
A brutal Pit Lord and servant of Mannoroth the Destructor, Magtheridon found his way to Draenor after its cataclysm.
瑪瑟里頓是破壞者瑪諾羅斯的仆人--一個殘忍的深淵領(lǐng)主,瑪瑟里頓在災(zāi)難之后發(fā)現(xiàn)了德拉諾。
ConclusionThe CT is the diagnosis fungi the importance means of nasosinusitis, particularly erupt bone substance destructor of diagnosis.
結(jié)論CT是診斷真菌性鼻竇炎的重要手段,尤其是并發(fā)骨質(zhì)破壞者的診斷。
To release resources and perform other clean-up operations before its destructor is called.
在調(diào)用其析構(gòu)函數(shù)之前釋放資源并執(zhí)行其他清理操作。
Also enable the Named Return Value optimization , which eliminates the copy constructor and destructor of a stack based return value .
也支持命名返回值優(yōu)化,它消除了基于堆棧的返回值的復(fù)制構(gòu)造函數(shù)和析構(gòu)函數(shù)。
Og also enables the Named Return Value optimization, which eliminates the copy constructor and destructor of a stack based return value.
Og還會啟用命名的返回值優(yōu)化,此優(yōu)化可消除基于堆棧的返回值的復(fù)制構(gòu)造函數(shù)和析構(gòu)函數(shù)。
To see what happens when a Cardgame object is destroyed, view the destructor for the Cardgame class.
若要明白在Cardgame對象銷毀時會發(fā)生什么,請查看Cardgame類的析構(gòu)函數(shù)。
The other way to say it is, never define a global (static global) instance of a class whose constructor or destructor may throw exceptions.
換一種說法就是永遠(yuǎn)都不要為那些其構(gòu)造函數(shù)和析構(gòu)函數(shù)可能拋出異常的類定義全局(靜態(tài)全局)實(shí)例。
Local handles are held on a stack and are deleted when the appropriate destructor is called.
本地句柄。本地句柄在棧上,并且當(dāng)指定的析構(gòu)函數(shù)被調(diào)用時刪除。
When the handle scope's destructor is called all handles created within that scope are removed from the stack.
當(dāng)句柄范圍的析構(gòu)函數(shù)被調(diào)用時,所有在那個范圍中創(chuàng)建的句柄都將被從棧中移除。
First, the destructor of the object that's being deleted is called.
首先,調(diào)用將要被刪除的對象的析構(gòu)函數(shù)。
This destructor would have to be called specifically before unsetting the parent class reference.
這種解構(gòu)器必須在解除父類引用之前進(jìn)行調(diào)用。
CONSTRUCTOR AND DESTRUCTOR Let's discuss the implementation of the thumbnail class, starting with the constructor and destructor.
讓我們從構(gòu)造函數(shù)和析構(gòu)函數(shù)開始來討論略縮圖類的實(shí)現(xiàn)。
A return type should not be set for a UML operation representing either a constructor or a destructor.
不應(yīng)該為表示構(gòu)造方法或析構(gòu)方法的UML操作設(shè)置返回類型。
This destructor is what our Managed Extensions user programs invoke either directly or through an application of the delete expression.
托管擴(kuò)展用戶程序將直接調(diào)用此析構(gòu)函數(shù),或通過應(yīng)用delete表達(dá)式進(jìn)行調(diào)用。
If the BIO is embedded in a class, this would be used in the class' destructor.
如果將BIO嵌入于一個類中,那么應(yīng)該在類的析構(gòu)函數(shù)中使用這個調(diào)用。
You tried to modify a method, property, indexer, operator, constructor, destructor, or event containing a stackalloc operator.
您試圖修改包含stackalloc運(yùn)算符的方法、屬性、索引器、運(yùn)算符、構(gòu)造函數(shù)、析構(gòu)函數(shù)或事件。
Destructors for local objects are run; resources allocated by class-type objects ordinarily are freed by their destructor.
運(yùn)行局部對象的析構(gòu)函數(shù),由類類型對象分配的資源通常由它們的析構(gòu)函數(shù)釋放。
This section discusses modeling the constructor, destructor, and copy constructor for a C++ class.
這個部分討論了為一個C++類建模構(gòu)造函數(shù),分析構(gòu)造函數(shù),以及拷貝構(gòu)造函數(shù)。
Hook's destructor checks if the hook is in the well-known default state. If not, an assertion is raised.
鉤子的析構(gòu)函數(shù)檢查鉤子是否處于缺省狀態(tài)。如否,則引發(fā)斷言。
If an exception occurs, the destructor cannot be called.
如果發(fā)生了例外狀況,解構(gòu)函式無法被呼叫。
In Listing 24, the constructor of F is called before F2; likewise for the destructor.
在清單24中,先調(diào)用F的構(gòu)造函數(shù),然后是F2的;對于銷毀函數(shù)也是這樣。
Secondly, within the class destructor, we release the resource acquired when the object was created.
其次,在類析構(gòu)函數(shù)內(nèi),釋放創(chuàng)建對象時獲得的資源。
When the destructor is called, the garbage collector is invoked to process the queue.
調(diào)用析構(gòu)函數(shù)時,將調(diào)用垃圾回收器來處理該隊(duì)列。
Object. By implementing a destructor you can perform cleanup just before your component is removed from memory.
通過實(shí)現(xiàn)析構(gòu)函數(shù),可以在將組件從內(nèi)存移除前執(zhí)行清除操作。
Is the object destructor, but it should not be used unless you really, really need it.
是對象析構(gòu)器,但是除非您確實(shí)非常非常需要,否則不應(yīng)該使用它。
The resource-managing class should be designed so that the constructor acquires the resource and the destructor frees it.
應(yīng)該設(shè)計資源管理類,以便構(gòu)造函數(shù)分配資源而析構(gòu)函數(shù)釋放資源。
Specifies whether the class destructor is virtual.
指定類析構(gòu)函數(shù)是否是虛的。
However, in the sand and glycerol, all populations of Ditylenchus destructor could not survive at low temperature.
試驗(yàn)發(fā)現(xiàn)在細(xì)沙和不同甘油濃度條件下,所有線蟲群體在低溫處理下均未查到活蟲。
A client block is a special type of memory block used by MFC programs for objects that require a destructor.
“客戶端塊”是由MFC程序用于需要析構(gòu)函數(shù)的對象的特殊類型內(nèi)存塊。
When a class contains a destructor, an entry is created in the Finalize queue.
如果類包含析構(gòu)函數(shù),Finalize隊(duì)列中則會創(chuàng)建一個項(xiàng)。