常見例句Allocate and deallocate memory space as needed. 需要時分配和收回存儲空間。Deallocate - Static member to release an IRP allocated with Allocate. 靜態(tài)釋放一個IRP。To deallocate an extent, the Database Engine makes sure that the GAM bit is set to 1 and the SGAM bit is set to 0. 若要釋放區(qū),數據庫引擎確保將GAM位設置為1,將SGAM位設置為0。You can use this opportunity to do some cleanup such as deallocate memory and so on. 你能利用這個機會做一些清理工作。例如:釋放內存等等。Using singletons makes the design more efficient because they remove the need to allocate and deallocate memory every time a state change is made. 使用單件使得這一設計更加高效,因為避免了在每一次狀態(tài)轉換的時候申請和釋放內存。First this is OK.But it has potential possibility to cause memory leak because you should remeber deallocate the memory through the pointer returned. 我想也是,不過我覺得這種方式不好吧,內存在函數內部分配,然后要求調用者釋放,這不好吧,有好的解決方法嗎? 返回 deallocate